Upgrade Condition

sensesxfailx

New Member
Reaction score
0
Hello, im having quite a problem im trying to make a trigger that set's up variables blah blah blah but what i need is that i use the event unit finishes an upgrade but in condition's i cant quite seem to find a condition to tell what upgrade is finished. The the upgrade that finishes is the upgrade to keep from the town hall.
 
Oooh...

I read your post wrong :p

What you need to use is unit-type comparison, and check if it is the upgraded form. eg:

Code:
upgrade lvl 1
    Events
        Unit - A unit Finishes an upgrade
    Conditions
        (Unit-type of (Triggering unit)) Equal to Keep
    Actions
        Do whatever you want
 
Does anyone find this whole scenario a touch confusing?
I was having the same exact problem and I was using the same exact steps shown above minus one critical difference
Instead I was using:
Code:
upgrade lvl 1
    Events
        Unit - A unit Finishes an upgrade
    Conditions
        (Unit-type of (Triggering unit)) Equal to [B]Town Hall[/B]
    Actions
        Do whatever you want

Why isn't it the Town Hall that is the triggering unit. The Town Hall is upgrading, and the upgrade is "upgrade to Keep"
I was using the wrong triggering unit, and scratching my head the whole time wondering if a building upgrade is what "unit begins and upgrade" actually meant.
Anyway, this completely threw me off.
I hope this helps someone in some way.
Thanks guys for setting me strait too!
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top