Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> item amount variable
Watfordj
post Jun 4 2011, 05:41 PM
Post #1


Level 5
Group Icon

Group: Member
Posts: 68
Type: Mapper
RM Skill: Intermediate




Does aynoe know how to set a variable to the amount of an item you have?
Go to the top of the page
 
+Quote Post
   
RzrBladeMontage
post Jun 4 2011, 07:02 PM
Post #2


"Hey.. would you say... I became a Hero?" - Zack Fair
Group Icon

Group: Revolutionary
Posts: 773
Type: Event Designer
RM Skill: Advanced




What RPG Maker are you using? If you're using XP, it's pretty simple. In your event go to the first page of your event commands, and click on "Control Variables," then under "Variable" find the one you're trying to set to the item amount, and under "operation" click "set" and under "Operand" click the dot next to "item" and in the drop down box click on what item you want to set the variable to.

Simple as that!


__________________________





Go to the top of the page
 
+Quote Post
   
Watfordj
post Jun 13 2011, 09:09 PM
Post #3


Level 5
Group Icon

Group: Member
Posts: 68
Type: Mapper
RM Skill: Intermediate




QUOTE (RzrBladeMontage @ Jun 4 2011, 11:02 PM) *
What RPG Maker are you using? If you're using XP, it's pretty simple. In your event go to the first page of your event commands, and click on "Control Variables," then under "Variable" find the one you're trying to set to the item amount, and under "operation" click "set" and under "Operand" click the dot next to "item" and in the drop down box click on what item you want to set the variable to.

Simple as that!


How do you do it in VX?
Go to the top of the page
 
+Quote Post
   
masterofrotten
post Jun 13 2011, 09:27 PM
Post #4


Level 3
Group Icon

Group: Member
Posts: 43
Type: None
RM Skill: Beginner




If I'm not mistaken when you do control variables check the set button and then if you look down at operand check item

so same way


__________________________
From the poisonous vile swamps of Black Marsh resides a creature so horrid so tremendously disgusting his only known alias is
The Master of Rotten

CLICK, You know you want to
Go to the top of the page
 
+Quote Post
   
Pharonix
post Jun 17 2011, 04:59 PM
Post #5


Eventer. Gamer. Writer.
Group Icon

Group: Revolutionary
Posts: 155
Type: Event Designer
RM Skill: Intermediate
Rev Points: 25




in order to check how many items a player has and set it to a
variable,
you must fix lines 748 - 752 of GameInterpreter - you have to do this or it throws an error.

748: when 3 # Item
749: value = $game_party.item_number($data_items[@params[4]])
750: actor = $game_actors[@parameters[1]]
actor = $game_actors[@params[4]]if actor != nil
THESE ABOVE LINES ARE WRONG


CHANGE IT TO THE BELOW LINES
change line 750.
instead of: actor = $game_actors[@parameters[1]]
change it to: when 4 # Actor

then jump to line 841 and change the code to:
when 3 # Mul
$game_variables *= value

I would like to send Thanks to Xeyla from RPG Revolution Forums for telling me this a long time ago
when I was making an item synthesis event.

Then you can use
control variable - item in inventory
then use the new variable to track the item.

Let me know if this helps


__________________________

CURRENT WORKS
DEMON BLADE - RPGVXA
SHINIGAMI - ~12 Pages - 3 chapters complete, 1 in progress.
---------------------------------
OTHER WORKS
INCANTA-corrupted.
INCANTA REDUX - RPGVX - On Hold
---------------------------------
LITERARY WORKS

Longer Works
ANGEL OF DEATH - Short Story ~ 4 Pages.
SHINIGAMI - ~12 Pages - 3 chapters complete, 1 in progress.
DEMON BLADE - Book/Novel?- 34 pages - On Hold.
FERAL - Short Story, Length: 6 pages], 2nd person Narrative. -R3 Writing Competition #2 - First-Place
DARKSPAWN - Book - 3 Pages On Hold
RELGEA CHRONICLE - Book - 118 pages
DRAKENGHOUL - book - 36 handwritten pages

Poems
I KNOW - Poem - 30 Lines

Song Lyrics
End of Days - Song- 44 Lines
Kids Killing Kids - Song - 94 Lines




-If you want this sig in another language, move to a country that speaks it.-

-Lv 13 Thread Killer




My R3 Writing Corner



My Wordpress


Relgea Chronicle

X-M-O Story Quoting.
QUOTE (X-M-O @ Jun 19 2012, 02:45 AM) *
QUOTE (Pharonix)
so what's going on in this thread?

QUOTE (kayden997)
Redd's back and the first thing he does is...

QUOTE (Pharonix)
pick my mom up in 15
...*sigh*

QUOTE (kayden997)
You know it's legit!

QUOTE (Pharonix)
Then again, I wrecked the last one...........

QUOTE (Tsutanai)
Oh ok you can have a pink frosted sprinkled doughnut

QUOTE (Pharonix)
I hate not having a car......
I miss my Alero...

QUOTE (Tsutanai)
you suck >:(


Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th June 2013 - 07:38 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker