• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Problem with this trigger? Help please

Status
Not open for further replies.
Level 13
Joined
Jun 3, 2011
Messages
1,058
Hi i want to give xp and potion to all players but it didn't work for some reason can someone check this? thanks
  • The new beggining Talk alchemist
    • Events
      • Unit - A unit comes within 256.00 of Alchemist 0030 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Quest - Mark AAA_Quest_Req[6] as Completed
      • Game - Display to (All players) for 30.00 seconds the text: The second thing in...
      • Sound - Play QuestLog <gen>
      • Quest - Create a quest requirement for AAA_Quest[2] with the description Talk to the Alchemi...
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Add 85 to (Picked player) Current gold
          • Hero - Add 150 experience to (Picked unit), Hide level-up graphics
          • Hero - Create Healing potion level 1 and give it to (Picked unit)
      • Set AAA_Quest_Req[6] = (Last created quest requirement)
      • Trigger - Turn off (This trigger)
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
It should be like this;
  • Actions
    • Player Group - Pick every player in (All players) and do (Actions)
      • Loop - Actions
        • Player - Add 85 to (Picked player) Current gold
    • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Picked unit) is A Hero) Equal to True
          • Then - Actions
            • Hero - Add 150 experience to (Picked unit), Hide level-up graphics
            • Hero - Create Healing potion level 1 and give it to (Picked unit)
          • Else - Actions
 
Status
Not open for further replies.
Top