Creating a timed effect...not working :(

Beta4

Veteran
Veteran
Joined
May 15, 2015
Messages
72
Reaction score
1
First Language
English
Primarily Uses
So my problem i was trying to solve, I thought I would do it fairly easy..... not so much :(   So I created an event that allows the players to change lets call it the lighting from light to dark. Well I can get that working. I wanted to create it that after lets say 3 minutes it would turn it back to light. I call it by a "common event" after it changes from light to dark, i give it a timer of 3 minutes. then i use a conditional statement that if its <= 0 mins and 0 seconds, it calls out a control variable, lets call it "lights on = on" then i have another event thats suppose to autorun as soon as the timer reaches 0 min and 0 seconds by then changing it back to light... it never reaches that far, now if i take out the "conditional branch timer statement" in the "common event" and just put "lights on = on" it will trigger that event and makes it dark again. So that's my problem, it works without the conditional branch timer statement but not when its in there... I thought it would be that easy to do...guess not, is there perhaps a setting I need to toggle to get it to work? any help would be fine. Thanks.
 

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,933
Reaction score
1,326
First Language
English
Primarily Uses
RMMV
A simpler way to do this is too have a separate parallel event with two Conditional Branches. In the first branch condition activate the timer and put this: "< 4:00". When the timer starts, this branch will activate. Inside the first Branch make a second one and set the timer condition to 0. And inside that branch you can put your common event. Now the event will activate when the timer starts and when it hits 0 it will run whatever is inside the second branch. 
 

Beta4

Veteran
Veteran
Joined
May 15, 2015
Messages
72
Reaction score
1
First Language
English
Primarily Uses
Ok i tired that, i also put a dialog box that says, light have been turned on, but it keeps repeating that over and over. any ways to stop that from happening, ive tried exit event but still doesnt work
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,418
Reaction score
7,709
First Language
German
Primarily Uses
RMMV
most probably you did something wrong in your event, and we need to see how you made that code to be able to find your mistake.


Can you post screenshots of the event pages you have so far?


And parallel events need to be switches off, exit event processing only aborts the current processing, but parallels loop and start again after that.
 

Beta4

Veteran
Veteran
Joined
May 15, 2015
Messages
72
Reaction score
1
First Language
English
Primarily Uses
I actually figured it out thank you very much, but i do have a questions about the timer, is there a way to hide the timer so it doesn't clue the player when the time will expire, i would like that element of surprise to it. Thanks again. :)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,193
Members
137,772
Latest member
Kirakirna
Top