Epicgamers
New Member
- Reaction score
- 5
How to make CLASS |HERO| Requirements for Items?
How to make class requirements for items?
i mean like ur hero need to be equal to: Archer too take/buy the item.
Thanks
Here is the code for 'Level requirements for items' Maybie its easier to make it from there on?
-BTW THIS LEVEL REQUIREMENTS CODE IS BY GUY FROM THE FIRST POST BELOW ME>< =]
How to make class requirements for items?
i mean like ur hero need to be equal to: Archer too take/buy the item.
Thanks
Here is the code for 'Level requirements for items' Maybie its easier to make it from there on?
-BTW THIS LEVEL REQUIREMENTS CODE IS BY GUY FROM THE FIRST POST BELOW ME>< =]
Code:
Required Level
Events
Unit - A unit Acquires an item
Conditions
Actions
-------- ---- ---- ---- ---- ---- ---- ---- REQUIRED LEVEL 2 ---- ---- ---- ---- ---- ---- ---- -------- // I recommend you use this if you want all required level trigger in only one trigger
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Hero manipulating item) is A Hero) Equal to True // This makes sure that only heroes cannot wield the items and no required level is needed for non-hero units
(Level of (Hero manipulating item)) Less than 2 // This is the required level of your item
Or - Any (Conditions) are true // In here you put the item that requires the hero to be level 2 or more to get the item
Conditions
(Item-type of (Item being manipulated)) Equal to |CFF91C877Ring of Regeneration|r
(Item-type of (Item being manipulated)) Equal to |CFF91C877Periapt of Vitality|r
(Item-type of (Item being manipulated)) Equal to |CFF91C877Pendant of Energy|r
(Item-type of (Item being manipulated)) Equal to |CFF91C877Mask of Death|r
(Item-type of (Item being manipulated)) Equal to |CFFFDC689Staff of Wisdom|r
(Item-type of (Item being manipulated)) Equal to |CFFFDC689Gloves of Speed|r
(Item-type of (Item being manipulated)) Equal to |CFFFDC689Axe of Power|r
Then - Actions
Hero - Drop (Item being manipulated) from (Hero manipulating item)
Floating Text - Create floating text that reads (Required level of + ((Name of (Item being manipulated)) + is 2)) above (Hero manipulating item) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 2.50 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
Floating Text - Set the velocity of (Last created floating text) to 90.00 towards 90.00 degrees
Else - Actions