- Joined
- May 4, 2010
- Messages
- 614
i have a problem with my quest i can get it and compleat it but player 2 cant i dont know why here is the trigger
+ rep to whoever helps me
-
Kill Spider Quest Setup
-
Events
- Unit - A unit comes within 100.00 of Bob (Male) 0049 <gen>
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- KillSpiderQuestString[(Player number of (Owner of (Triggering unit)))] Equal to notstarted
-
Then - Actions
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: Kill the spiders Qu...
- Quest - Create a Required quest titled (Kill The Spiders + (( + ((Name of (Owner of (Triggering unit))) + )))) with the description Those Spiders keep ..., using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
- Set KillSpidersQuest[(Player number of (Owner of (Triggering unit)))] = (Last created quest)
- Set QuestSpiderCount[(Player number of (Owner of (Triggering unit)))] = 0
- Set KillSpiderQuestString[(Player number of (Owner of (Triggering unit)))] = started
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- KillSpiderQuestString[(Player number of (Owner of (Triggering unit)))] Equal to done
-
Then - Actions
- Hero - Add 300 experience to (Triggering unit), Show level-up graphics
- Player - Add 200 to (Owner of (Triggering unit)) Current gold
- Quest - Destroy KillSpidersQuest[(Player number of (Owner of (Triggering unit)))]
- Set KillSpiderQuestString[(Player number of (Owner of (Triggering unit)))] = notstarted
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: Quest Completed
-
Else - Actions
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: You already have th...
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Kill Spider Quest
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Spider
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- KillSpiderQuestString[(Player number of (Owner of (Killing unit)))] Equal to started
-
Then - Actions
- Set QuestSpiderCount[(Player number of (Owner of (Killing Unit)))] = (QuestSpiderCount[(Player number of (Owner of (Killing Unit)))] + 1)
- Game - Display to (Player group((Owner of (Killing unit)))) the text: ((String(QuestSpiderCount[(Player number of (Owner of (Killing Unit)))])) + /5)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- QuestSpiderCount[(Player number of (Owner of (Killing)))] Greater than or equal to 5
-
Then - Actions
- Set KillSpiderQuestString[(Player number of (Owner of (Killing unit)))] = done
- Quest - Mark KillSpidersQuest[(Player number of (Owner of (Killing unit)))] as Completed
- Quest - Display to (Player group((Owner of (Killing unit)))) the Quest Completed message: Come back to me now
- Set QuestSpiderCount[(Player number of (Owner of (Killing Unit)))] = 0
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
+ rep to whoever helps me
Last edited: