• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Waiting time reducer

Status
Not open for further replies.
Level 1
Joined
Jul 21, 2021
Messages
1
hi , english is not my first language !
i would like to be able to reduce timer via an uprgade .
like when i kill a boss it appear again 60 sec later , via an upgrade research it goes like 60-5 ( i thought i could do it via interg variable ) but well XD
 
Level 21
Joined
Mar 29, 2020
Messages
1,237
one way you could do that is just switch triggers. (this solution only makes sense if this is something that you can only upgrade once or twice, otherwise there are probably more efficient ways to do it).

what I mean is - have a trigger with no event that revives the boss and whatever actions necessary. then have a few separate periodic triggers for the different time intervals (every 60 seconds, every 55 seconds etc.) that activate the first trigger you made. at the beginning have the 60 second one active, and then when the player gets the upgrade - turn off the 60 second periodic trigger and turn on the 55 second periodic trigger.

this is one possible way to do it, not necessarily the best way...
 
Status
Not open for further replies.
Top