• 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 system help

Status
Not open for further replies.
Level 2
Joined
Jul 4, 2009
Messages
7
I need help with my map.:confused:
I have MULTIPLE units that can have items with attachments. So, how can i create item system that allows only one helm, one plate, one shield and one weapon? I know those artifact=weapons etc.
All tutorials are only for 1 unit/hero......:sad:
Please guys, help me!
 
Level 3
Joined
Oct 9, 2008
Messages
61
Use arrays like:
  • Hero Create
    • Events
      • Unit - A unit enters PaladinRegion <gen>
    • Conditions
      • (Unit-type of (Entering unit)) Equal to Wisp
    • Actions
      • Unit - Create 1 Paladin for (Owner of (Entering unit)) at (Center of SpawnRegion <gen>) facing Default building facing degrees
      • Set Heroes[(Player number of (Owner of (Entering unit)))] = (Last created unit)
  • Attach
    • Events
    • Conditions
    • Actions
      • Special Effect - Create a special effect attached to the right+hand of Heroes[1] using YourWeapon
      • Special Effect - Create a special effect attached to the right+hand of Heroes[2] using YourWeapon
      • Special Effect - Create a special effect attached to the right+hand of Heroes[3] using YourWeapon
      • Special Effect - Create a special effect attached to the right+hand of Heroes[4] using YourWeapon
(You create arrays by clicking on the little "array" button at the variable creation menu.)
 
Level 9
Joined
Dec 21, 2006
Messages
490
you need 2 triggers. one for the attachments and one for blocking a 2nd helm, shield etc.
first trigger is easy,i guess you know how to do so.
2nd isn't really hard. all items must be categorized. one way to do so is to make all items of one class (helm) and put it in one item-class-folder like "perishable". another way is to give all helms the custom value 1, all shields the custom value 2 etc (advantage is, you could also use the number for the inventory position and the checking trigger is easier)
 
Status
Not open for further replies.
Top