Kim_Shyuen

DAYDREAMER乁( ◔ ౪◔)「
Veteran
Joined
Oct 19, 2015
Messages
101
Reaction score
289
First Language
Chinese
Primarily Uses
RMVXA
Hi guys!
I tried to made a system which item is given to the player based on the value stored in a variable.
for example:
when variableX >=50, obtain[flower red]+1, [flower blue]-1;
when variableX >=30, obtain[flower blue]+1, [flower red]-1 etc

Here's the event page
1632631924789.png

Everything works fine but when I re-open main menu for several times, the item will add-on automatically until x99, but I only need x1 for the specific item
How should I solve this? Thanks in advance!
 

uglywolf

Veteran
Veteran
Joined
Nov 9, 2015
Messages
60
Reaction score
71
First Language
Malay
Primarily Uses
RMMV
Can you screenshot your switch and variable settings?
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
970
Reaction score
432
First Language
english
Primarily Uses
RMMV
i can't read that but it looks like your using a common event with a switch,
which means the 'trigger' is set to autorun or parallel.
(guessing parallel since you can open the menu again after)
and it doesn't look like the common event is turning that switch off. meaning the event is looping constantly until it gets turned off.
 

Kim_Shyuen

DAYDREAMER乁( ◔ ౪◔)「
Veteran
Joined
Oct 19, 2015
Messages
101
Reaction score
289
First Language
Chinese
Primarily Uses
RMVXA
@Tiamat-86 I'm using common parallel event with a switch. Yeah that switch is the main problem
I've figured it out, thank you so much!!
 

Latest Threads

Latest Profile Posts

I just don't know why, but it's funny.
5.gif
Ugh. The one time I forget to save every hour or so is also the day my computer crashes. That's life!
Even though I spent 100's of dollars on my game already. I think I might just have to give it away for free. Since I haven't heard back from people if I could use some of their graphics. Even from a global mod here. Maybe I can make a donation thing.
you know, some days you get resentful that game dev is even considered a "fun job" and other days it's like, welp, time to roll up my sleeves and code these molotov cocktails
If you suck at playing trumpets, that is probably why.

Forum statistics

Threads
115,964
Messages
1,094,434
Members
151,234
Latest member
sousou123232
Top