🏆 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!
I can't for the life of me figure out how to add a unit that is currently in the players selection, be replaced and then the replaced unit is added back to the selection.
Well then, take this situation as an example;
1. A Footman is trained from the Barracks
2. There is an upgrade at that Barracks, Upgrades your Footman into Knights
3. When you have finished that upgrade...
Untitled Trigger 002
Events
Unit - A unit Finishes research
Conditions
(Researched tech-type) Equal to KnightsUpgrade
Actions
Set ResearchBoolean[(Player number of (Triggering player))] = True
This will set a Boolean (array) for that Player, so that the game can "recognize" that player has went through that research/upgrade
4. You should do this next;
Untitled Trigger 002
Events
Unit - A unit Finishes training a unit
Conditions
(Unit-type of (Triggering unit)) Equal to Footman
ResearchBoolean[(Player number of (Triggering player))] Equal to True
Actions
Unit - Replace (Triggering unit) with a Knight using The old unit's relative life and mana
This will assure you that if you have already research the upgrade, it will replace newly trained units (namely Footman) to a Knight.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.