Main Menu
  • Welcome to The RPG Maker Resource Kit.

[REQUEST] Storing Total Items Held in a variable script

Started by Malcolm1234, March 11, 2009, 02:12:35 AM

0 Members and 1 Guest are viewing this topic.

Does anyone know how to make a script where your total items held in your inventory would be stored as a variable?

Please Help
0 (0%)
Please Help
1 (16.7%)
There's no need to make this a poll.
3 (50%)
I should read the rules
2 (33.3%)

Total Members Voted: 6

Malcolm1234

I looked around several other threads, tried it myself, but I just cant get it right, I'm semi-new to scripting. Could anyone please help me?  :)

shaz

The Control Variables event command will let you store the quantity of a certain item into a variable.

The equivalent in a script is $game_party.item_number[1] where 1 is the item number listed in the database.

Is this what you want?  I'm not sure I'm interpreting your request correctly.
Always remember you're unique.
Just like everybody else.

Falcon

http://rmrk.net/index.php/topic,20694.0.html
Strike 1, next time read the rules.

This sounds like a request, so I'm moving it.

Nessiah

Can't this be done in Variables?
Like event:
Set Variable Potions to Item>Potion>Amt. Held


modern algebra

I think he wants to add up all items. So, if he has 2 potions and 2 High Potions, he wants it to return 4.

In any case, it can be done simply by doing what you say and adding all other items.

tSwitch

Quote from: Nessiah on March 11, 2009, 10:49:30 AM
Can't this be done in Variables?
Like event:
Set Variable Potions to Item>Potion>Amt. Held
Quote from: Modern Algebra on March 11, 2009, 01:07:56 PM
I think he wants to add up all items. So, if he has 2 potions and 2 High Potions, he wants it to return 4.

In any case, it can be done simply by doing what you say and adding all other items.

problem solved?
further questions?


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon