• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How to refer to a "upgraded unit" ???

Status
Not open for further replies.
Level 1
Joined
Jun 25, 2009
Messages
3
Hi, im finishing my first map and i got a problem.
the map uses trigers to order constructed units to train units automatically.
Example :
Event :
Unit - A unit Finishes construction
Conditions :
(Unit-type of (Constructed structure)) Equal to Local Guard
Actions :
Unit - Order (Constructed structure) to train/upgrade to a Militia

This is simple and its working fine.

But my problem is that the world editor does not seems to consider a upgrade to be a construction .So i cant use the trigger above to order a upgraded unit(Barracks, for example, is a upgrade of the local guard) to order training another unit.
I want to know what can i use to refer to the new upgraded unit. Because in the editor there's no such thing like a "Event Response - Last Upgraded Unit". And "Event Response - Constructed Structure" does not work.
Help would be appreciated.
Sorry about my english, im brazilian and learned on my own. (I think)

Thx anyway.
 
  • Trigger1
  • Events
    • Unit - A unit Finishes construction
  • Conditions
    • (Unit-type of (Constructed structure)) Equal to Local Guard
  • Actions
    • Set Unit1 = (Constructed Structure)
    • Unit - Order (Unit1) to train/upgrade to a Militia
    • Trigger - Turn on (Trigger2 <gen>)
  • Trigger2
  • Events
    • Unit - A unit finishes an upgrade
  • Conditions
    • (Researching unit) Equal to Unit1
  • Actions
    • ...
 
Status
Not open for further replies.
Top