- Joined
- Aug 27, 2019
- Messages
- 44
I am creating one of most common mission objectives for a campaign. I want to create quest where player needs to kill all enemy structures.
My trigger is not working at the moment I am not exactly sure what is wrong.
I believe there is many ways to do this trigger but I will show what I have at the moment.
We were also talking about same kind of quest in this thread: [General] - Triggers, Quest: Kill 10 Footman
My trigger is not working at the moment I am not exactly sure what is wrong.
I believe there is many ways to do this trigger but I will show what I have at the moment.
-
Count enemy structures
-
Events
-
Time - Elapsed game time is 0.00 seconds
-
-
Conditions
-
Actions
-
Set I_Structures = (Number of units in (Units owned by Player 6 (Orange) matching (((Triggering unit) is A structure) Equal to True)))
-
-
-
Create quest
-
Events
-
Time - Elapsed game time is 5.00 seconds
-
-
Conditions
-
Actions
-
Quest - Create a Required quest titled Destroy enemies with the description Complete all main q..., using icon path ReplaceableTextures\CommandButtons\BTNHumanBarracks.blp
-
Set Q_Destroy = (Last created quest)
-
Quest - Create a quest requirement for Q_Destroy with the description Destroy all enemy s...
-
Set QR_Destroy = (Last created quest requirement)
-
Quest - Display to (All players) the Quest Discovered message: |cffffcc00MAIN QUES...
-
-
-
Enemy structure dies
-
Events
-
Unit - A unit owned by Player 6 (Orange) Dies
-
-
Conditions
-
((Triggering unit) is A structure) Equal to True
-
-
Actions
-
Set I_Structures = -1
-
If (I_Structures Equal to 0) then do (Trigger - Run Victory <gen> (checking conditions)) else do (Do nothing)
-
-
We were also talking about same kind of quest in this thread: [General] - Triggers, Quest: Kill 10 Footman
Last edited: