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

[General] Help with Items o.o and others

Status
Not open for further replies.
Level 3
Joined
Jun 22, 2012
Messages
28
How do i make items only usable by melee
Like in rpg theres usable by classes and melee and range types
How do you make an item do that?

And How do you sop the Event When The Unit spawns? course i don't want thousands of units at o_O my Netural Camp
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
You can use mine :D

  • Thief Restriction
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to SaveLoad_Item[16]
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Hero manipulating item)) Equal to Clown
          • (Unit-type of (Hero manipulating item)) Equal to Assassin
          • (Unit-type of (Hero manipulating item)) Equal to Jester
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Hero manipulating item)
          • Game - Display to (All players) the text: Item not suitable f...
        • Else - Actions


(Item-type of (Item being manipulated)) Equal to SaveLoad_Item[16]
This means the SaveLoad_Item[16] is just a item array from my items
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
You can use mine :D

  • Thief Restriction
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to SaveLoad_Item[16]
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Hero manipulating item)) Equal to Clown
          • (Unit-type of (Hero manipulating item)) Equal to Assassin
          • (Unit-type of (Hero manipulating item)) Equal to Jester
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Hero manipulating item)
          • Game - Display to (All players) the text: Item not suitable f...
        • Else - Actions


(Item-type of (Item being manipulated)) Equal to SaveLoad_Item[16]
This means the SaveLoad_Item[16] is just a item array from my items

item type array i guess and not item array :p
 
Stop making units spawn :
Event :
Every X Seconds of game-time
Condition :
Unit in (Region Name) is less than Y
Action :
Create Z (Unit Type) at (Region Name) facing default building degrees

That way the trigger will always check if the unit in the region is less than Y

Dictionary :
X = Game-Time
Y = amount of unit in region
Z = amount of unit created
 
Status
Not open for further replies.
Top