When the objective is created, right after it, you should use a set variable action. Set the objective variable to last created objective.
Also instead of a timer, I would just use a unit death event, and set it to the zerg that you want dead. If it is a preplaced zerg on the map, you can do it straight in the event itself.
Also instead of a timer, I would just use a unit death event, and set it to the zerg that you want dead. If it is a preplaced zerg on the map, you can do it straight in the event itself.
StarCraft II unit events use special unit reference objects. These can be updated dynamically. after the event has been added to a trigger.
I recommend posting the full trigger. This can be done by selecting all elements in the GUI trigger window (ctrl+A) and then clicking on the root node (trigger name) and choosing to copy as text. It can then be passed inside code tags for a vaguely readable representation of the GUI). Alternatively you could upload the map to a cloud storage solution such as DropBox and then public link it in the post so people can see the trigger by looking at the map.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
hi,
i have 1 marine and he must kill 1 zerg how to create the objective for that ?
I have created the primary objective and i see it in my map but when i kill the zerg nothing happen the objective is not completed !
i have an objective for player1
i have a variable objective (objective)=no objective --- i'm trying to change to last objective but nothing change
i have a timer who verify every second if condition (zerg is alive=false) action set last objective completed
How to fix that ?
When the objective is created, right after it, you should use a set variable action. Set the objective variable to last created objective.
Also instead of a timer, I would just use a unit death event, and set it to the zerg that you want dead. If it is a preplaced zerg on the map, you can do it straight in the event itself.
StarCraft II unit events use special unit reference objects. These can be updated dynamically. after the event has been added to a trigger.
I recommend posting the full trigger. This can be done by selecting all elements in the GUI trigger window (ctrl+A) and then clicking on the root node (trigger name) and choosing to copy as text. It can then be passed inside code tags for a vaguely readable representation of the GUI). Alternatively you could upload the map to a cloud storage solution such as DropBox and then public link it in the post so people can see the trigger by looking at the map.