Majesty Gold HD

Majesty Gold HD

Customize Majesty!
Create and upload new Quests and Mods for Majesty HD!
Help with Timer
I'm trying to figure out what the best way to build a timer is.

I need to store the time as it passes so it can be compared against a specified time,
then, once that specified time is reached, to switch from one set of events to another.

Example:

time1 = time that has passed since quest start
time2 = set time (60000)

if ( time1 < time2 )
spawn tree
if ( time1 >= time2 )
spawn bear

Thank you.
< >
Showing 1-1 of 1 comments
VikesRule 40 1 Feb, 2021 @ 5:25pm 
I would just use a thread interval with the quest flags. Something like, quest_flag_1 is false at start and so triggers event 1 to happen, then when the VictoryCondition2 (or whichever one you choose) thread interval reaches 60000, set the quest_flag_1 to true, and then have it trigger the second event going forward.

< >
Showing 1-1 of 1 comments
Per page: 1530 50