parallel event timer with action button triggerd animation

Hi! I am new to RPG Maker MV so I hope the way I describe my question is somehow helpful.


I followed a tutorial by Pandora Gaming Network called "Kindle the Flame." The tutorial creates a "survival / cooking / alchemy based system" using the TERRAX LIGHTNING plugin.

I followed the steps in the tutorial and got everything working in my game. However, the thing I can not wrap my head around is how to make the camp fire's in the tutorial extinguish after a certain time.

I played around with switches, variables and timers but I could not find a way to do what i intended.

The event that create the fire is triggered by the "action button." Also, the animation of the flame is controlled by this event.
I had the idea to use a timer and a parallel process to stop the fire animation in the event but that did not work. After the timer went off, nothing happened.

I attached pictures of the script I got from the tutorial. Also, here's the code I tried for the timer (using the SRD TimerUpgrade Plugin):

In the camp fire event(Trigger: Action button) I added .. <---- this event is basically what you see in the attached images
◆Plugin Command:SetTimer 0 5 0 0
.. when the fire is lit.
and ...
◆Plugin Command:AddTimer 0 5 0 0
when the fire is kindled.

In another event (conditions: none, trigger: parallel)
◆If:Timer ≤ 0 min 1 sec
◆Text:None, Window, Bottom
:Text:test - this should display when the timer in event 'fire' runs out.
◆Text:None, Window, Bottom
:Text:you did not make it!
◆
:End

I also tried the Plugin Command SetExpireCommonEvent [id] but that did not work either.

So, I thought maybe someone either has an idea why the timer is not working, or maybe some one has a better idea how to alter the script from the tutorial (attachment) so that the fires go out after a couple of seconds.

Thanks in advance!

Lucasio
One problem is that you can't change another event's self switch. You'll either need a plugin for that, or use a variable instead.


I'm not familiar with this plugin, so forgive me if I get it wrong, but I think the event that turns on the fire should have something like this:
  • Plugin Command: SetTimer 0 5 0 0
  • Plugin Command: SetExpireCommonEvent [id of the common event that puts out the fire]
The common event should have its trigger set to 'None'.
Thank you Jules, I will it with the Common Event!

Original thread: https://forums.rpgmakerweb.com/threads/parallel-event-timer-with-action-button-triggerd-animation.86784/