[General] Individual upgrade on attack 1 and 2

Level 13
Joined
Sep 11, 2013
Messages
467
Greetings!

I have many units with attack 1 (ground, etc) and attack 2 (air only).
1741939474811.png


I wonder if there is a way when I use an upgrade for all those units/buildings to increase the attack 1 (ground, etc) with 10 damage/upgrade and at the same time attack 2 (air only) must be increased only with half of the value 5 damage/same upgrade.:peasant-confused:

The help will be appreciated!
 

Rheiko

Spell Reviewer
Level 26
Joined
Aug 27, 2013
Messages
4,214
Make two separate upgrades for each attack (you can differentiate their damage increase value from here).
Use trigger to detect when the player upgrades, then upgrade the other one through trigger.
I think something like this should work:
  • Events
    • Unit - A unit Finishes research
  • Conditions
    • (Researched tech-type) Equal to Upgrade for Attack 1
  • Actions
    • Player - Set the current research level of Upgrade for Attack 2 to (Current research level of Upgrade for Attack 1 for (Triggering player)) for (Triggering player)
 
Top