• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Item Life

Status
Not open for further replies.
Level 9
Joined
Aug 1, 2008
Messages
453
Is there a way of setting the life of a item to the maximum life of the item when a unit acquires it?

EXAMPLE

A item has 10000 life and a unit attacks it and it has 1000 life left. But when a unit acquires it, the items life goes back to 1000. +rep if helped.
 
Level 5
Joined
Nov 3, 2007
Messages
113
Yea sure, Make the following tirgger:

Events: Unit - A unit Acquires an item

Conditions: (Item-class of (Item carried by (Picked unit) of type Tome of Experience)) Equal to Powerup

Actions: Item - Set life of (Item carried by (Picked unit) of type Tome of Experience) to 110000.00

Just changed the picked unit to triggering unit and voila
 
Status
Not open for further replies.
Top