RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Variable question...

Started by darthatron, February 02, 2007, 01:23:00 PM

0 Members and 1 Guest are viewing this topic.

darthatron

Ok, lets say I wanted Variable_1 = (number of certain item)...

how would I do that? is it even possible? because I cant work it out with events...

Thanks in advance!

modern algebra

Why do you need to count the items?

Blizzard

Use the "Call script" event command and type:

$game_variables[X] = $game_party.item_number(Y)

X is the variable ID and Y is the ID of the item. You can also check weapons and armors:

$game_variables[X] = $game_party.weapon_number(Y)

$game_variables[X] = $game_party.armor_number(Y)
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

darthatron

Thankyou very much Blizzard! I need it because you use need 5 Iron Bars to make Iron Armor, and stuff like that.