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,048
Reaction score
13,684
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

Once again working on a game I'm not sure I'm going to sell or even publish
That feel when you're awake past midnight and suddenly you're one year older :ninja:
I miss collaborations, but I don't know how to find someone to make face parts just to share them with others, and even though I don't like writing or music, I can't trust anyone with writing on my game because it has themes that are easy to mess up, and music needs a clear tone and scenes.
People donating to me for my upcoming birthday so I can pay my team a little. Such angels, I'm so happy. T uT I smile so much my face hurts. Good souls in this world.
Playing Ragnarok Online again is very nostalgic. The last time I played it was 20 years ago, when I was ten-twelve old.
My first mmorpg.^^

Forum statistics

Threads
105,571
Messages
1,014,722
Members
137,245
Latest member
dashstop
Top