• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Attribute bonus from charged items

Status
Not open for further replies.
Level 2
Joined
May 25, 2008
Messages
10
i want an item that gets a charge everytime the hero kills a unit and gets 1 point to all stats per charge... can someone help?
 
Level 5
Joined
Apr 22, 2008
Messages
139
For the item gaining the charge use:

Events
Unit - A unit Dies
Conditions
((Killing unit) has an item of type -Item-) Equal to True
Actions
Item - Set charges remaining in (Item carried by (Killing unit) of type -Item-) to ((Charges remaining in (Item carried by (Killing unit) of type -Item-)) + 1)

and for the item's activation use:

Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to -Item-
Actions
Hero - Modify Strength of (Hero manipulating item): Add 1
Hero - Modify Agility of (Hero manipulating item): Add 1
Hero - Modify Intelligence of (Hero manipulating item): Add 1

youll have to limit the item to 1 per hero tho, or itll mess things up
 
Level 2
Joined
May 25, 2008
Messages
10
doesn't work i have
Ring of Immortality
Ereignisse
Einheit - A unit Stirbt
Bedingungen
((Item carried by (Killing unit) of type |cffff0000Ring of Immortalitty|r) is owned) Gleich True
Aktionen
Gegenstand - Set charges remaining in (Item carried by (Killing unit) of type |cffff0000Ring of Immortalitty|r) to ((Charges remaining in (Item carried by (Killing unit) of type |cffff0000Ring of Immortalitty|r)) + 1)

Ring of Immortality 2
Ereignisse
Einheit - A unit Benutzt einen Gegenstand
Bedingungen
(Item-type of (Item being manipulated)) Gleich |cffff0000Ring of Immortalitty|r
Aktionen
Held - Modify Kraft of (Hero manipulating item): Hinzufügen 1
Held - Modify Beweglichkeit of (Hero manipulating item): Hinzufügen 1
Held - Modify Intelligenz of (Hero manipulating item): Hinzufügen 1

and by the way.. whats the BB for GUI?
 
Level 4
Joined
Apr 5, 2008
Messages
70
You have to do it out of an useable item e.g. health portion.
Than change the item ability to an nothing doing dummy ability e.g. warstomp without damage and stun.
Rename the item and change its icon to whatever you want and set the starting charge to 1.
Than your trigger should work if you change item at condition.
 
Level 18
Joined
Feb 28, 2009
Messages
1,970
Second trigger is wrong. Event: Unit dies
Condition: Killing unit has an item of type ... equal to true.
Actions: as he said and also add
Item - Set charges remaining in (Item carried by (Killing unit) of type -Item-) to ((Charges remaining in (Item carried by (Killing unit) of type -Item-)) - 1)
 
Level 5
Joined
Apr 22, 2008
Messages
139
but wont activating a charged item automatically remove a charge? or does it work different when the item has no set effect? unless im wrong, that will cause 2 charges to be removed on each activation
 
Level 2
Joined
May 25, 2008
Messages
10
nonono i meant it different
i dont want a tome i just want an item that passively gives 1 to all stats an charges on kill
 
Level 5
Joined
Apr 22, 2008
Messages
139
in that case y do charges?* just have it so that when the hero has the item, any kills will result in +1 all stats:

Events
Unit - A unit Dies
Conditions
((Killing unit) has an item of type -Item-) Equal to True
Actions
Hero - Modify Strength of (Hero manipulating item): Add 1
Hero - Modify Agility of (Hero manipulating item): Add 1
Hero - Modify Intelligence of (Hero manipulating item): Add 1

...unless you mean an item like Scepter of the Seas (level 0) that will still remain after all the charges have been used
 
Level 2
Joined
May 25, 2008
Messages
10
but also... i want the item to be dropped on death :D so i think in your way the hero won't lose the new attributes when he loses the item and also if another hero picks up the item he has to get the additional stats
 
Status
Not open for further replies.
Top