How do I refer to a "upgraded unit"?

Matsume

New Member
Reaction score
0
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 consider a upgrade to be a construction .So i cant use the trigger above to order the upgraded unit(Barracks is a upgrade of the local guard) to train 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.
 

Hellohihi

New Member
Reaction score
42
You'll be better off with this?

And it works, i tested it, and uses it in my map.

Trigger:
  • Events
    • Unit - A unit Finishes an upgrade
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Footman
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • Unit - Remove (Triggering unit) from the game
      • Unit - Create 1 Knight for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
      • Custom script: call RemoveLocation (udg_TempPoint)
 

cowmenace

New Member
Reaction score
22
I thought that the upgrades it refers to are those upgrades used on units, not upgrades for buildings...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top