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

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 64
Joined
Jan 18, 2005
Messages
27,202
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