• 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.

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