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

TheRastaGeek

Villager
Member
Joined
Sep 26, 2020
Messages
7
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
39,971
Reaction score
13,604
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
7
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 Posts

Latest Profile Posts


Finally! I've been puzzling over why it wasn't working for two days now. Turns out all of my calculations were correct, I just forgot to give some events hitboxes. :kaoswt: Now my randomly generated maps check for collision errors, and move stuff around in real time if they finds any. :LZSexcite:
Ami
--- OP Candy ---

Kids: Trick Or Treat!
Hero: Alright,here's the Candies (Give A Bunch Of Candy).
Kids: Thank you,Mister! (Running)
Hero: How cute they are…
F.Archer: Did you give them a OP Candy,accidently?
Hero: Huh?
Halloween, a day where kids are encouraged to take candy from strangers.
Stream will be live shortly with a session of the Interactive Text Adventure! Feel free to drop by!
Took a break from spriting dinosaurs to carve a dinosaur pumpkin.

Forum statistics

Threads
104,670
Messages
1,007,977
Members
136,159
Latest member
tomtam
Top