RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Variable question...

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 88
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!

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Most Mature Member2011 Favourite Staff Member2011 Best Use of Avatar and Signature Space2011 Best Veteran2011 Best RPG Maker User (Scripting)2010 Best RPG Maker User (Scripting)2010 Most Mature Member
Why do you need to count the items?

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
Use the "Call script" event command and type:

Code: [Select]
$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:

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

Code: [Select]
$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!

**
Rep: +0/-0Level 88
Thankyou very much Blizzard! I need it because you use need 5 Iron Bars to make Iron Armor, and stuff like that.