[Trigger] Need help with quest

Level 4
Joined
Oct 30, 2009
Messages
34
Ok, I know basics about quests but, I am trying to make the quest when completed add 25 exp to all players heroes and 50 gold to all players. Here is what I have so far:

  • CheckonFarmerJoe
    • Events
      • Unit - Human Militia 0034 <gen> Is attacked
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • (Owner of (Attacking unit)) Not equal to Player 11 (Dark Green)
      • (Owner of (Attacking unit)) Not equal to Player 12 (Brown)
    • Actions
      • Unit - Order (Attacking unit) to Stop
      • Game - Display to (All players) the text: |cffffcc00Militia ...
      • Wait 2.00 seconds
      • Game - Display to (All players) the text: |c000000ffNew Quest...
      • Quest - Create a Optional quest titled Farmer Joe with the description Go into Valkwin For..., using icon path ReplaceableTextures\CommandButtons\BTNVillagerMan.blp
      • Set QuestOP[1] = (Last created quest)
      • Trigger - Turn off (This trigger)
      • Trigger - Turn on FarmerJoe1 <gen>
And then:

  • FarmerJoe1
    • Events
      • Unit - A unit enters FarmerJoe <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • (Owner of (Triggering unit)) Not equal to Player 11 (Dark Green)
    • Actions
      • Quest - Display to (All players) the Quest Update message: It seems there has ...
      • Trigger - Turn on FarmerJoe2 <gen>
      • Trigger - Turn off (This trigger)
And then it ends with: (This is where i am trying to add the rewards)

  • FarmerJoe2
    • Events
      • Unit - Human Militia 0034 <gen> Is attacked
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • (Owner of (Triggering unit)) Not equal to Player 11 (Dark Green)
    • Actions
      • Unit - Order (Attacking unit) to Stop
      • Game - Display to (All players) the text: |cffffcc00Militia G...
      • Quest - Display to (All players) the Quest Completed message: |c000000ffQuest Fin...
      • Quest - Mark QuestOP[1] as Completed
      • Player - Add 50 to (Player((Number of players in (All players controlled by a User player)))) Current gold
Any help is much appreciated! Thank you in advanced.
 
Top