I encounter problems with the f****** timer lol, i am not skilled in scripting (neither in english lol i am french)
i try many scripts but i reach only 2 results
no effect
or unlimited display of the timer ending message.
the script ou produce no effect is :
SCN MalouBetmanTimerScript
float BetmanTimer
float fQuestDelayTime
begin GameMode
if getstage MalouBetmanQst == 20
set fQuestDelayTime to 0.001
set BetmanTimer to 15
if BetmanTimer > 0
set BetmanTimer to (BetmanTimer - getSecondsPassed)
else
ShowMessage MalouBetmanGetMoney
Setstage MalouBetmanQst 25
endif
endif
end
this is a quest script. Actually my problem is to create a timer wich starts when I give to Betman 200 caps. i want it to disable before and i want it to restart, because player can make another bet after the first has ended (allow multiple stages quest). i want it to start at quest stage 20 and i want it to stop and RESET at quest stage 25.
I have try another method, i have attached the script on a trigger, i have disable the trigger and make a trigger.enable at my stage 20 but with this method, the message display infinite times. I have try a "doOnce" thing too, i am lost.
Can someone help me please. i am newbie at scripting but i learn and understand well.
Thank you for reading. :flamethrower: