Jump to content
  • 0

Timer


Weylon Santana

Question

It's ok. I've been trying to make an timer. For a speed mission. The waiting time can be accessed in some cities within a certain time. An amount of time remaining would be warned in the chat. The problem is that it does not work.

It's simple, but it does not work.

1 - Try to make a global event and by the script '' talk and wait, talk and wait ''.
Did not work
2 - I tried the script as a common event and a global event to start it.
Did not work
3 - As conditionals I used the basic "conditional branching - mission in progress - I chose the mission - in any task" and left an autorun, but it did not work.
4 - I tried to create a switch to turn it on. But it did not work.

I feel trapped. Someone help?
Below pics of my last attempt - PS = The editor is in Portuguese, but you can get an idea.

 

f909de72a373b7f2a06efd2776cdba55.png

6dbb74197b0e1f7780e120421f262368.png

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

I personally would make a loop using conditional branches and labels.

 

E.g.

Player variable = 0

Label

Wait 1000ms

Add 1 to player variable

Condition: has quest completed?

  Goto label 2

Condition: is player variable < 300

  Goto label

Output msg  "time ran out"

Exit

Label 2

Output msg "quest completed in time"

Exit

Link to comment
Share on other sites

  • 0
17 hours ago, Kibbelz said:

I personally would make a loop using conditional branches and labels.

 

E.g.

Player variable = 0

Label

Wait 1000ms

Add 1 to player variable

Condition: has quest completed?

  Goto label 2

Condition: is player variable < 300

  Goto label

Output msg  "time ran out"

Exit

Label 2

Output msg "quest completed in time"

Exit

I understood. This timer is yours. I thought about using same variables, and I do it in a decreasing way.


The event defines an amount of time, for example 180.


A common event always stays in autorun for "if the timer variable is greater than 0" -> waits for 1000ms and Retire 1.

 

conditional branches, on the same page I used to tell the player.

 

if "timer" is equal to 180 - add text to chatbox - player channel - 3 minutes remain.

 

if timer is equal to 120 - add text to chatbox - player channel - 2 minutes left

and so it goes.

 

is the tip here for anyone reading this topic.

 

I appreciate your help. @Kibbelz Thx ^-^

Link to comment
Share on other sites

×
×
  • Create New...