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,062
Reaction score
13,687
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

So I'm practicing ITC with a spirit box, and decide to try to contact my deceased soulmate. It actually gave me multiple identifiers. Me, still a bit skeptical, asked aloud "Fine but does he still love me?" and the box spoke and printed the word "Forever" at the same time. Been a mess of tears since. :kaocry:
Been scratching away at my game and making progress, but just had a revelation. I'm working in full screen and adjusting all my pictures accordingly, but will they resize if someone's screen is smaller?? I hope this doesn't turn out to be a problem later.
Why is there so much month left at the end of money? D=
Hello humans! How goes your day in this journey of living? I hope it is good, for I am human like you, and I am feeling great! Worship the altar.

Forum statistics

Threads
105,628
Messages
1,015,076
Members
137,288
Latest member
GmOcean
Top