• 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.

[Trigger] Changing creep life dynamically

Status
Not open for further replies.
Level 1
Joined
Mar 10, 2008
Messages
4
Hello.

I'm working on a project, and I need a way to change creep life dynamically.
:fp: Set creep life to variable * 10
Something like that. Is it possible?

Regards,
Anders
 
Level 1
Joined
Mar 10, 2008
Messages
4
Before anyone but GhostWolf siad something, I Just manually set the max hp to 5000 and set the health relativly.. but it dosn't look very good. Do tomes work on non-heroes ?
 
Level 1
Joined
Mar 10, 2008
Messages
4
How do I make a regular unit use an ability using triggers? I can't seem to find it, and right now I'm probably making a laugh of myself.
 
Level 22
Joined
Feb 26, 2008
Messages
892
Use an ability?
Well, make sure the unit has the ability first.
Then check the appropriate Issue Order Targeting a Point/Unit/With No Target trigger action under the Unit action. They're down at the bottom of the list.
If you're dealing with a custom ability, order the unit to use the ability off of which that ability was based.
 
Level 19
Joined
Sep 4, 2007
Messages
2,826
Or!
Just give them an inventory ability for a moment
Add the power up items
Remove the inventory ability.
Simple process.

The add/remove abilities can be found in the Unit list in action triggers.
The add items in inventory can be found at Hero list in action triggers.
 
Level 1
Joined
Mar 10, 2008
Messages
4
For some reason, I can't get it working. Would ny of you mind making an example map? :witch_doc_sad:
 
Level 9
Joined
Oct 17, 2007
Messages
547
Well there is one other way its simpler than those 2:
-Make a upgrade that increase HP by increments
-Give the units that you want to modify HP that upgrade.
-Make a trigger that upgrade it when you want.

Make sure the upgrade doesn't show up on the unit only the bonus.
Any problems with that?
 
Status
Not open for further replies.
Top