- Joined
- Apr 5, 2013
- Messages
- 30
I made a quest trigger
-
The basic spys must di
-
Events
- Unit - |cffffcc00Basic Questgiver Skypper|r 0023 <gen> Sells an item (from shop)
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Sold Item)) Equal to The basic spys must die!
-
Then - Actions
- Game - Display to (All players) the text: The basic spys must...
- Set Player = (Owner of (Buying unit))
- Quest - Create a Required quest titled The basic spys must... with the description I need you to kill ..., using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
- Quest - Disable (Last created quest)
- Custom script: if GetLocalPlayer() == udg_Player then
- Quest - Enable (Last created quest)
- Custom script: endif
- Trigger - Turn on Kill Counter <gen>
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Kill Counter
-
Events
- Unit - A unit Dies
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Triggering unit) Equal to Rifleman 0022 <gen>
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Set RiflemenCounter = (RiflemenCounter + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RiflemenCounter Equal to 1
-
Then - Actions
- Quest - Change the description of QuestReq1 to Riflemen slain 1/5
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RiflemenCounter Equal to 2
-
Then - Actions
- Quest - Change the description of QuestReq1 to Riflemen slain 2/5
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RiflemenCounter Equal to 3
-
Then - Actions
- Quest - Change the description of QuestReq1 to Riflemen slain 3/5
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RiflemenCounter Equal to 4
-
Then - Actions
- Quest - Change the description of QuestReq1 to Riflemen slain 4/5
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RiflemenCounter Equal to 5
-
Then - Actions
- Quest - Change the description of QuestReq1 to Riflemen slain 5/5
- Quest - Mark Quest as Completed
- Quest - Change the description of Quest to They wont be a prob...
- Quest - Create a quest requirement for Quest with the description Return back to Basi...
- Set QuestReq2 = (Last created quest requirement)
- Quest - Flash the quest dialog button
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
-
Events