• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Tome of damage

Status
Not open for further replies.
Level 7
Joined
May 11, 2010
Messages
278
  • Trigger
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Tome of Strength
    • Actions
      • Hero - Modify Strength of (Hero manipulating item): Add 10
Make sure the Tome of Strength has "Perishable - True" and "Use automatically when aquired - True". That will consume the tome as soon as you pick it up, and the trigger will permanently increase the base strength of your hero.

Alternatively, if you want it to remain in your inventory and the bonus to be lost when it leaves your inventory, set perishable and use automatically to false and add this trigger:
  • Trigger 2
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Tome of Experience
    • Actions
      • Hero - Modify Strength of (Hero manipulating item): Subtract 10
 
Last edited:
Level 8
Joined
Feb 3, 2013
Messages
277
Make an ability based on Item Damage Bonus, and give it many levels.

When the tome is picked up, if the hero doesn't have this ability, give it to them. If they already have the ability, increase its level by one.

This is a good way to go about this, but just know that it will cause a short lag if the item hasn't been preloaded at initialization. So I suggest in the beginning of map init, have a dummy unit buy this item and remove the unit afterwards.

EDIT: I misunderstood OP's post, use upgrades and have the owning player's damage upgrade increase for the buying unit.
 
Status
Not open for further replies.
Top