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

Swapping out units

Status
Not open for further replies.
Level 1
Joined
Feb 27, 2011
Messages
3
Hi guys!
I was wondering if there's a way to swap out a unit without having to completely redo the triggers it's associated with. I have 96....
I used the default bunker, and so far I haven't been able to figure out how to do much unit editing, it's much different than wc3 editor :p.
Thanks in advance!
 

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,289
If you mean data, then change the identifier for the current data to something else and then put its old identifier as the identifier of the data you want the trigger to use instead.
If you made the trigger using script, you probably declared a single constant to cover all references for the data, changing that will instantly change all places that use it.

If you mean replacing units (which loses all variable references to it), then you may wish to have only 1 or 2 variables instead which are easy to update.
 
Status
Not open for further replies.
Top