Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Timer Not Working as Intended

Status
Not open for further replies.

Trumully

Cyborg Kiwi
Okay, so I am making an event where that if you don't select a choice within 10 seconds, it will automatically select a choice for you. But, it doesn't seem to be working.
Here is my event: Screen Shot 2015-11-05 at 7.03.04 am.png
So, I've made a conditional branch for 'if timer < 0 jump to label: silence', but it doesn't want to jump to the label. Anything I'm doing wrong here?
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
I hate the built in timer lol. You should make a variable timer just to debug your issue ro see if it's the timer causing problems or something else in the event. Once I get to computer I will see what I can do.
 

Status Gear Entertainment

Praised Adventurer
Remember that when you run commands in a single page everything is read through from top to bottom and it will keep doing this based on what you set it too like parallel or player action. So what we're looking at is that you set the timer and then immediately right after checked to see if the timer was at 0 or not. Once it reads this it doesn't go back until the event is ran through again.

What you would have to do instead is most likely set up a separate event that is turned on when the timer starts and parallel it to check for the timer, once it does that it needs to turn a switch on / variable set and go back to your original event here and have another page that is turned on with that switch / variable and auto run the command. If you're wanting to make the choice random then I'd suggest variable over switch as a variable is simply a switch with more options. At least this is how I would do it.

Edit: Looks like Eivl found a way to do it on a single page. o///o Label jump it back to check because like I said, your commands are ran through once unless told otherwise.
 
Last edited:

Trumully

Cyborg Kiwi
looks like your never goes inside your if statement, look at mine

I'm trying to do this but with choices.
I want it so that if you don't select a choice within 10 seconds, I want it to go to a default choice and cancel the choice selection, but it isn't working. Sorry if I wasn't specific.
 

eivl

Local Hero
Xy$
0.00
Yeah, but you have a time check that will never be run. Send me the complete code and i can help you more.
[doublepost=1446670279,1446669937][/doublepost]
 

Arythorn

Towns Guard
Xy$
0.00
I am having a similar Problem, MV should have a Option under the Timer to create a "Upon End of Timer" branch. Here is my Code, the problematic part I have underlined. (This is a timed Inn that will kick you out after a certain time until the Pass item is acquired - just to clarify :D)

◆If:Pass is ON
◆Text:People3(4), Transparent, Bottom
:Text:Greetings, To enter you must pay our
:Text:customary-
:Text:
:Text:
◆Text:People3(4), Transparent, Bottom
:Text:Oh! I see you have an Inn Pass! Jolly Good.
:Text:Please do proceed, Pardon Me, madam...
◆Set Movement Route:This Event (Wait)
:Set Movement Route:◇Move Up
:Set Movement Route:◇Move Right
:Set Movement Route:◇Turn Left

:Else
◆Text:None, Transparent, Bottom
:Text:Greetings, To enter, you must pay our customary fee of
:Text:25G! If you want a Pass, Please speak with the merchant
:Text:upstairs!
◆Show Choices:Pay 25G, Leave (Transparent, Right, -, -)
:When Pay 25G
◆Change Gold:- 50
◆Set Movement Route:This Event (Wait)
:Set Movement Route:◇Move Up
:Set Movement Route:◇Move Right
:Set Movement Route:◇Turn Left
◆Control Timer:Start, 5 min 0 sec
◆Label:Timer
◆If:Timer ≤ 0 min 0 sec
◆Jump to Label:End Timer

:End
◆Label:End Timer
◆Text:People3(4), Transparent, Bottom
:Text:RIGHT, TIMES UP! GET OUT OF THE BUILDING!
◆Transfer Player:Oakenshore Town (24,9) (Direction: Down)

:When Leave
◆Set Movement Route:Player (Wait)
:Set Movement Route:◇Move Down

:End

:End

Thanks in Advance,
BeeTree02 :)
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
Please no Hi-jacking and or necro-posting other people's topic, it is against the forum rules, if you would like an answer to your question to create a new topic. I have locked this topic from further discussion.
 
Status
Not open for further replies.
Top