How to Set a Variable value equal to number of different item ?

TheRastaGeek

Villager
Member
Joined
Sep 26, 2020
Messages
11
Reaction score
0
First Language
French
Primarily Uses
RMXP
hello

I want to set a variable value equal to total number of multiple items so i did this:

Control Variables: [0030: posséder chapeau] += [number of Armor 14]
Control Variables: [0030: posséder chapeau] += [number of Armor 15]

I dont know if I am on the right track but if it's the case then by having #1 [Item 14] and #1 [item 15], the variable should be equal to 2 ? But whatever I try, I see the variable reaching "unreasonable" values.

Maybe I 'm completely wrong with my reasoning, so someone could point me on the right track please?
fsf.pngfsfs.png
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,075
Reaction score
13,691
First Language
English
Primarily Uses
RMMV
Are you resetting the variable to 0 at the start?

Or do it as:

Control Variables: [0030: posséder chapeau] = [number of Armor 14] (not +=)
Control Variables: [0030: posséder chapeau] += [number of Armor 15]
 

TheRastaGeek

Villager
Member
Joined
Sep 26, 2020
Messages
11
Reaction score
0
First Language
French
Primarily Uses
RMXP
Or do it as:

Control Variables: [0030: posséder chapeau] = [number of Armor 14] (not +=)
Control Variables: [0030: posséder chapeau] += [number of Armor 15]
Finally, Oh thank you so much you are an angel, i love you 3x1000 :wub
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

I think I've created a monster.
...and I love it. <3
Today represents my one year anniversary of throwing out the tile map. :LZSexcite: One year ago my game looked like...


And now for those that don't know, it looks like..


What a year, what a year indeed. RIP Tile Map, nobody misses you. :LZSwink:
There is now a demo released for [Beyond the Mirror]! Check the team recruitment thread to learn more!
'Tis the season to see shipping prices and go 'Yikes'.

Forum statistics

Threads
105,696
Messages
1,015,678
Members
137,379
Latest member
ytviews123
Top