just a quick question: Whats the best way to reset every single upgrade and tech, including weapon/armor upgrades, passive abilities and active abilities?
Here is why i need it: I have a micro map and i want to have the rounds in random order. There are rounds which have upgrades like stim,blink, roach speed etc and there are rounds without upgrades.
So to have them in random order i need to have them all resetted after every round and enable the needed upgrades when a new round is starting.
Or are there any other possibilities to do this? (sure i could disable all upgrades which were enabled in a round but thats alot of triggers :( )
You only need 1 trigger. Don't have an event trigger that trigger though. Call it "Reset Upgrades"
In that trigger, You create actions to disable abilities for any unit and any player. You also have armor and weapon upgrades for each, set to 0. Maybe use Integers for upgrades and set the integer to 0.
When the round finishes, have "Run trigger "Reset Upgrades" and wait until it finishes."
For each time you want to give a unit an ability, you enable it.
Yes it's a bit of work but it's pretty easy. It's not like you will have over 100 actions in the reset trigger.
I ran into this issue during a map I was working on earlier. You actually have two options. First (and by far easiest for anything with only a few upgrades) just manually use the "set upgrade level" action to reset all the upgrades to 0. What I did for this map was the following: Every time any upgrade is researched, it's saved into a big upgrade variable array. The reset upgrade trigger then runs through this array in a loop and clears all the upgrades inside it. :D
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
To post a comment, please login or register a new account.
Hello mapsters,
just a quick question: Whats the best way to reset every single upgrade and tech, including weapon/armor upgrades, passive abilities and active abilities?
Here is why i need it: I have a micro map and i want to have the rounds in random order. There are rounds which have upgrades like stim,blink, roach speed etc and there are rounds without upgrades. So to have them in random order i need to have them all resetted after every round and enable the needed upgrades when a new round is starting.
Or are there any other possibilities to do this? (sure i could disable all upgrades which were enabled in a round but thats alot of triggers :( )
Thanks in advance, ReY
You only need 1 trigger. Don't have an event trigger that trigger though. Call it "Reset Upgrades"
In that trigger, You create actions to disable abilities for any unit and any player. You also have armor and weapon upgrades for each, set to 0. Maybe use Integers for upgrades and set the integer to 0.
When the round finishes, have "Run trigger "Reset Upgrades" and wait until it finishes."
For each time you want to give a unit an ability, you enable it.
Yes it's a bit of work but it's pretty easy. It's not like you will have over 100 actions in the reset trigger.
I ran into this issue during a map I was working on earlier. You actually have two options. First (and by far easiest for anything with only a few upgrades) just manually use the "set upgrade level" action to reset all the upgrades to 0. What I did for this map was the following: Every time any upgrade is researched, it's saved into a big upgrade variable array. The reset upgrade trigger then runs through this array in a loop and clears all the upgrades inside it. :D