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,030
Reaction score
13,669
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

rux
Just 80% of my motivation on game making lmao, anyone got tips on how to not be unmotivated?
I've signed up for a job training program for people with Asperger's Syndrome. I went to a "test run" today so they could see how well I did with simple jobs, and I amazed them. Most new people do it in 30+ minutes, while I finished in a mere 15 minutes. Gives me time to work on a screenplay for Studio MDHR...
People,I have seen that Someone from China/Chile and London is doing a Vaccine Against COVID-19.
Doing anything that yield good result in the long run is like sowing seeds. With proper care, they will grow and bear fruits. I'm excited for tomorrow. :D

Forum statistics

Threads
105,455
Messages
1,013,842
Members
137,105
Latest member
twilightprincess
Top