• 🏆 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!

[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
891
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