• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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