• 🏆 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!

[Trigger] Why does not this working?

Status
Not open for further replies.
Level 2
Joined
Feb 28, 2008
Messages
6
Whats wrong with this? +rep

  • Item Requires Level 2
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
      • (Item-type of (Item being manipulated)) Equal to |cff00ff00Copper Battle Axe|r
      • (Item-type of (Item being manipulated)) Equal to |cff00ff00Adept's Gloves|r
      • (Item-type of (Item being manipulated)) Equal to |cff00ff00Bloodspattered Gloves of Power|r
      • (Item-type of (Item being manipulated)) Equal to |cff00ff00Bloodspattered Gloves of Strength|r
      • (Item-type of (Item being manipulated)) Equal to |cff00ff00Embossed Leather Gloves|r
      • (Item-type of (Item being manipulated)) Equal to |cff00ff00Embossed Mail Girdle of the Bear|r
      • (Item-type of (Item being manipulated)) Equal to |cff00ff00Embossed Mail Girdle of the Boar|r
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of (Picked unit)) Less than 2
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Hero manipulating item)
          • Game - Display to (Player group((Owner of (Triggering unit)))) for 5.00 seconds the text: |cCFFF0202You need ...
        • Else - Actions
          • Do nothing
 
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,240
Do the condtions look like that in your editor? There's a difference between

  • Conditions
  • Or - Any (Conditions) are true
    • Conditions
  • (Item-type of (Item being manipulated)) Equal to |cff00ff00Copper Battle Axe|r
  • (Item-type of (Item being manipulated)) Equal to |cff00ff00Adept's Gloves|r
  • (Item-type of (Item being manipulated)) Equal to |cff00ff00Bloodspattered Gloves of Power|r
  • ...
and

  • Conditions
  • Or - Any (Conditions) are true
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to |cff00ff00Copper Battle Axe|r
      • (Item-type of (Item being manipulated)) Equal to |cff00ff00Adept's Gloves|r
      • (Item-type of (Item being manipulated)) Equal to |cff00ff00Bloodspattered Gloves of Power|r
      • ...
The latter is correct.
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 087
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Level of (Triggering unit)) Less than 2
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-type of (Item being manipulated)) Equal to Crown of Kings +5
          • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
    • Actions
      • Hero - Drop (Item being manipulated) from (Triggering unit)
      • Set Temp_Player_Group = (Player group((Triggering player)))
      • Game - Display to Temp_Player_Group the text: Drop
      • Custom script: call DestroyForce(udg_Temp_Player_Group)
 
Level 12
Joined
May 30, 2009
Messages
829
  • Untitled Trigger 087
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Level of (Triggering unit)) Less than 2
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-type of (Item being manipulated)) Equal to Crown of Kings +5
          • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
    • Actions
      • Hero - Drop (Item being manipulated) from (Triggering unit)
      • Set Temp_Player_Group = (Player group((Triggering player)))
      • Game - Display to Temp_Player_Group the text: Drop
      • Custom script: call DestroyForce(udg_Temp_Player_Group)
Can't get any easier than Maker posting the triggers for you. Maybe he could even post the map for you. :hohum:

P.S. "Do Nothing" does absolutely nothing (duh), so don't ever place it in your triggers, since the game has to calculate a completely useless action that does nothing.
 
Level 2
Joined
Feb 28, 2008
Messages
6
thx alot for the trigger "Maker", its working properly now. +rep for helpfull people
 
Status
Not open for further replies.
Top