Common Events only running once per game

superisk

Villager
Member
Joined
Aug 14, 2020
Messages
10
Reaction score
3
First Language
english
Primarily Uses
RMMV
Hi everyone,

I have a parallel Common Event that triggers when a character consumes a specific item in open play, and it runs perfectly, however, I would like this to run only the first time this item is consumed. I have tried using the Common Event itself to change the switch to off, but this doesn't work because it's not triggered by the switch, it's triggered by the consumption of the item...

At this point the only solution i can think of is to make 2 copies of the same item, the first one you pick up is linked to the Common Event, and then all subsequent pick ups is the version of the item that isn't linked to the Common Event...

As always, any help is much appreciated!
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,529
Reaction score
3,679
First Language
Java's Crypt
Primarily Uses
RMMZ
Add a conditional branch inside the common event; If the switch is ON, then do nothing. If the switch is off, trigger than effect and turn the switch on.
 

superisk

Villager
Member
Joined
Aug 14, 2020
Messages
10
Reaction score
3
First Language
english
Primarily Uses
RMMV
Add a conditional branch inside the common event; If the switch is ON, then do nothing. If the switch is off, trigger than effect and turn the switch on.
Perfect, did not think of that. Thanks v much!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,906
Reaction score
7,447
First Language
German
Primarily Uses
RMMV
how are you structuring this?
Items can call common events that have no trigger, and paralel events are triggered by switches, not items.

It sounds as if you're calling a parallel common event - and that would be exactly why it doesn't work as intended, because parallel events should not be called at all.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Stream will be live shortly with some Darkest Dungeon! Feel free to drop by!
Made a HUGE (YYOOOOJJ) Update to Monstructs and moving towards a Steam Early Access release!
A skill type called: "Rumagic". The intention is Magic with Rum(that pirates drink)
Does it sound strange in English?
So I'm having issues with my steam account... so I can't use MZ right now, so I can't work on my game until its solved, so it be harder to be ready for 31... guess I'll get ice cream :kaopride:
Motivation! Inspiration! There you are. I was worried you guys weren't going to show up today. Let's get this thing going!

Forum statistics

Threads
104,219
Messages
1,004,759
Members
135,725
Latest member
Sark1017
Top