Item Classes.

hasslarn

New Member
Reaction score
20
Hello i need help creating item classes.

By that i mean so that some heroes cant wear Sheilds , a type of armor etc etc.

Does anyone know how to do this?
 

X-maul

AKA: Demtrod
Reaction score
201
You might be able to do so that some sheilds are consumeables and other shields are powerups - then one class cant wear consumebles and another cant wear powerups
 

hasslarn

New Member
Reaction score
20
You might be able to do so that some sheilds are consumeables and other shields are powerups - then one class cant wear consumebles and another cant wear powerups

You mean by the normal item classes? , ive already used them for diffrent weapons like Daggers,2h sword , normal sword etc etc.

i have seen a jass version of this where u only need the items id and what type of item it is and it will stop people from picking up wrong weapons.
 

Necrach

You can change this now in User CP.
Reaction score
62
You could classify the heroes by giving them dummy abilities and then create create triggers like this
Trigger:
  • item
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of WizardClassification for (Hero manipulating item)) Greater than or equal to 1
          • Or - Any (Conditions) are true
            • Conditions
              • (Item-class of (Item being manipulated)) Equal to Shield
              • (Item-class of (Item being manipulated)) Equal to Heavy weapon
              • (Item-class of (Item being manipulated)) Equal to Armor
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Hero manipulating item)
        • Else - Actions

etc

EDIT: Aha, you are already using item classes. Then I suggest using costum values on the items (and maybe on the heroes too?)
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top