• 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] Making units "Grow Up"

Status
Not open for further replies.
Level 2
Joined
Sep 21, 2007
Messages
17
I have a trigger that creates a unit when another unit casts a spell on itself. I want to have the created unit to be replaced by another unit in 40 seconds. How do I do that?
 
Level 12
Joined
Feb 1, 2007
Messages
1,092
I am not going to use trigger tags or clean my leaks. This is just for the basic idea of the trigger so you know.

Event-A Unit Starts the Effects of an Ability
Condition-Ability=Grow
Actions:
Custom Script-local unit udg_Grower
Set Grower=(Triggering Unit)
Wait (40) Seconds
Replace (Caster) with (Growed up Unit)

You have a variable there and its Grower, a unit type, then you have my attempt to make it a local variable so it wont change each time Grow is cast, and then Growd up Unit is just the unit that replaces the one that cast the spell. Heres the tut about locals because I am almost positive I got mine wrong http://www.hiveworkshop.com/forums/showthread.php?t=34393
 
Level 2
Joined
Sep 21, 2007
Messages
17
waaaaaaiiiit.. stupid stupid question lol. Sorry, on pain medication right now, I wasn't thinking lol
 
Level 8
Joined
May 26, 2007
Messages
214
I am not going to use trigger tags or clean my leaks. This is just for the basic idea of the trigger so you know.

Event-A Unit Starts the Effects of an Ability
Condition-Ability=Grow
Actions:
Custom Script-local unit udg_Grower
Set Grower=(Triggering Unit)
Wait (40) Seconds
Replace (Caster) with (Growed up Unit)

You have a variable there and its Grower, a unit type, then you have my attempt to make it a local variable so it wont change each time Grow is cast, and then Growd up Unit is just the unit that replaces the one that cast the spell. Heres the tut about locals because I am almost positive I got mine wrong http://www.hiveworkshop.com/forums/showthread.php?t=34393

I know im going off topic, but +rep for the Multi-Instanceable GUI Function, makes it alot easier for me. Thanks!
 
Level 7
Joined
Oct 6, 2006
Messages
293
growing up

I have an unfinished rpg map where i went through this problem and solved it buy a simple trigger that increases scaling size by 5%. It was a wolf pet with inventory that if it ate a meat item it would grow in size and stats would increase where once its size was a certain amount it turned on a trigger that gave it the ablility to be mounted like the current way nightelves mount.

If u want to see the trigger just reply back cuz ill have to do some digging for it, i started it like 5years ago.
 
Status
Not open for further replies.
Top