I'm having a problem to remove the stats gained from an upgrade once it's researched. Is there a way to do so via triggers or do i have to create a "anti upgrade" that removes all stats gained?
You can use the "Add upgrade level for player" and select a negative valute, so it adds for an example -1 to the wished player. That will result in a negative upgrade valute IF you're upgrades usues the "Operation - Add" function. I believe it will also work with "Operation - Substract" which will have the opposite effect if the valute added in the trigger is negative.
But it does not reset upgrades that uses "Operation - Set to".
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm having a problem to remove the stats gained from an upgrade once it's researched. Is there a way to do so via triggers or do i have to create a "anti upgrade" that removes all stats gained?
Nevermind i figured it out :)
You can use the "Add upgrade level for player" and select a negative valute, so it adds for an example -1 to the wished player. That will result in a negative upgrade valute IF you're upgrades usues the "Operation - Add" function. I believe it will also work with "Operation - Substract" which will have the opposite effect if the valute added in the trigger is negative.
But it does not reset upgrades that uses "Operation - Set to".