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

Item restriction Help

Status
Not open for further replies.
Level 13
Joined
Jun 3, 2011
Messages
1,058
  • Event
    • Unit - A unit Acquires an Item
  • Condition
    • (Item type of ( Item beging manipulated)) Equal to Save_Load_Item[16] (this is the number of my item
  • Action
    • If (All Condition are True) then do (Then Actions) else do (else action)
      • if - conditions
        • Or - Any (Conditions) are true
          • (Unit Type of (Hero manipulating item)) Not equal to Clown
          • (Unit Type of (Hero manipulating item)) Not equal to Assassin
    • Then - Actions
      • Hero - Drop (Item begin manipulated) from (hero manipulating Item)
    • Else - Actions
      • Game - Display to (All players) the text: Item not suitable to your class
Help please what's wrong with this trigger?
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
remove this

  • Or - Any (Conditions) are true
and put this in the Then Actions

  • Game - Display to (All players) the text: Item not suitable to your
should look like this

  • Events
    • Unit - A unit Acquires an Item
  • Conditions
    • (Item type of ( Item beging manipulated)) Equal to Save_Load_Item[16]
  • Actions
    • If (All Condition are True) then do (Then Actions) else do (else action)
      • If - Conditions
        • (Unit Type of (Hero manipulating item)) Not equal to Clown
        • (Unit Type of (Hero manipulating item)) Not equal to Assassin
      • Then - Actions
        • Hero - Drop (Item begin manipulated) from (hero manipulating Item)
        • Game - Display to (All players) the text: Item not suitable to your class
      • Else - Actions
if that's not the problem, you need to be more pacific, the question is unclear. what part of it doesn't work ?

EDIT : do you mean that only classes other than Clowns and Assassins are able to acquire this item ?
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
Help please what's wrong with this trigger?

remove this

  • Or - Any (Conditions) are true
and put this in the Then Actions

  • Game - Display to (All players) the text: Item not suitable to your
should look like this

  • Events
    • Unit - A unit Acquires an Item
  • Conditions
    • (Item type of ( Item beging manipulated)) Equal to Save_Load_Item[16] (this is the number of my item
  • Actions
    • If (All Condition are True) then do (Then Actions) else do (else action)
      • If - Conditions
        • (Unit Type of (Hero manipulating item)) Not equal to Clown
        • (Unit Type of (Hero manipulating item)) Not equal to Assassin
      • Then - Actions
        • Hero - Drop (Item begin manipulated) from (hero manipulating Item)
        • Game - Display to (All players) the text: Item not suitable to your class
      • Else - Actions
if that's not the problem, you need to be more specific, the question is unclear. what part of it doesn't work ?

For example i right click the blade then it automatically drops from me even if im in that class
 
Status
Not open for further replies.
Top