item system help

Status
Not open for further replies.

BloodClud

B

BloodClud

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!
 
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.)
 
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.
Back
Top