[General] Unit Begins Upgrade Issue

Status
Not open for further replies.
Level 13
Joined
Sep 25, 2013
Messages
717
Hello, In my map your make structures by upgrading circles of power to buildings. The circles of power are invulnerable. I want to make it so when you begin upgrading them to buildings they become vulnerable. Also, if you cancel the upgrade they become invulnerable again.

  • Trigger 1
    • Events
      • Unit - A unit Begins an upgrade
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Tower Plot (1)
    • Actions
      • Unit - Make (Triggering unit) Vulnerable
  • Trigger 2
    • Events
      • Unit - A unit Cancels an upgrade
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Tower Plot (1)
    • Actions
      • Unit - Make (Triggering unit) Invulnerable
This system isn't working. The upgrading building remains invulnerable. Any help is appreciated, thank you :)
 
Level 7
Joined
Nov 19, 2015
Messages
283
Make the circle of power a normal building. Give it the invulnerable ability. Trigger add/remove the ability.

Its targeting is probably still invulnerable in the object editor thats why it doesn't work
 
Level 13
Joined
Sep 25, 2013
Messages
717
It was a good idea, i tried what you said but it didn't work. Yeah, it is a structure with the invulnerable ability.

  • Trigger 1
    • Events
      • Unit - A unit Begins an upgrade
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Tower Plot (1)
    • Actions
      • Unit - Remove Invulnerable (Neutral) from (Triggering unit)
 
When using the Unit - A unit Begins an upgrade event, triggering unit refers to the unit it is upgrading to, not the previous.

Change the condition of Tower Plot (1) to the structure it is upgrading to and you should be fine.

Also, as kingkwong said, use the Add/Remove ability function.

EDIT: Wait a minute... I just realized something. Why not just give the Tower Plot the invulnerable ability and then just not give the structures it upgrades to the invulnerable ability? xD
 
Last edited:
Level 7
Joined
Nov 19, 2015
Messages
283
Killcide has the answer

When a trigger doesn't work always use a check to see if the trigger is actually firing off.

Eg. Game - display message (name of triggering unit)
or
If level of invulnerability for triggering unit >= 1 then show message
 
Status
Not open for further replies.
Top