U
Unregistered
Guest
In my map I have a system where at a certain number of points certain units scale up and I also have these heroes respawning. but some times people end up getting 2 2nd level heroes or a 1st and 2nd level hero and I dont know why, and this only sometimes happens. Strangest of all I cant find any major error in the triggers. These are my triggers
To allow first level respawn:
Condition:Always
Action: Set switch 1
1st level respawn:
Conditions: player commands 0 level 1, comannds 0 level 2 heroes, and switch 1 is set
Action:subtract 400 minerals, wait 10000 milliseconds, Create 1 level 1 hero at location for player, preserve trigger
1st to second level upgrade
Condition: If player accumulates at least 4000 gas
Actions: Clear switch 1, kill all level 1, create 1 level 2 at location, and set switch 2
2nd level respawn:
Conditions: Player commands 0 level 2, 0 level 3, switch 2 is set
Actions: subtract 400 minerals, wait 10000 milliseconds, create 1 level 2 hero at loc. for player, preserve trigger
2nd to 3rd level upgrade
condition: If player accumulates at least 10000 gas
Actions: clear switch 2, kill all level 2, create 1 level 3 at location, set switch 3
3rd level respawn:
Conditions: Player commands 0 level 3 and switch 3 is set
Actions: subtract 400 minerals, wait 10000 milliseconds, create 1 level 3 hero at loc. for player, preserve trigger
To allow first level respawn:
Condition:Always
Action: Set switch 1
1st level respawn:
Conditions: player commands 0 level 1, comannds 0 level 2 heroes, and switch 1 is set
Action:subtract 400 minerals, wait 10000 milliseconds, Create 1 level 1 hero at location for player, preserve trigger
1st to second level upgrade
Condition: If player accumulates at least 4000 gas
Actions: Clear switch 1, kill all level 1, create 1 level 2 at location, and set switch 2
2nd level respawn:
Conditions: Player commands 0 level 2, 0 level 3, switch 2 is set
Actions: subtract 400 minerals, wait 10000 milliseconds, create 1 level 2 hero at loc. for player, preserve trigger
2nd to 3rd level upgrade
condition: If player accumulates at least 10000 gas
Actions: clear switch 2, kill all level 2, create 1 level 3 at location, set switch 3
3rd level respawn:
Conditions: Player commands 0 level 3 and switch 3 is set
Actions: subtract 400 minerals, wait 10000 milliseconds, create 1 level 3 hero at loc. for player, preserve trigger