But i can edit it in the data editor. Odd. Anyways, I try to find a different field for my purpose, maybe it works.
EDIT: I somehow solved it now. Created a seperate unit for each stackable upgrade and made the different upgrades increment the appropriate "upgrade-unit's" armor value. Then I simply set the <d ref=> to the armor value and it worked. Problem is if you hit an upgrade button the tooltip doesnt change unless you refresh it by moving over the button again.
Yeah, the proof that the strings are right is that the UI command works properly. It has the same strings like the Set Value command so this shouldn't be the problem imo. My intention is to display the current upgrade level on the button, so I use an unimportant field for incrementing the technology counter. Then I create a <d ref=> in the buttons description for the race field since there's no field that returns the actual technology count.
@Zantai: Go
But i can edit it in the data editor. Odd. Anyways, I try to find a different field for my purpose, maybe it works.
EDIT: I somehow solved it now. Created a seperate unit for each stackable upgrade and made the different upgrades increment the appropriate "upgrade-unit's" armor value. Then I simply set the <d ref=> to the armor value and it worked. Problem is if you hit an upgrade button the tooltip doesnt change unless you refresh it by moving over the button again.
No trigger needed anymore. Thanks for the help :)
@TheAlmaity: Go
Yeah, the proof that the strings are right is that the UI command works properly. It has the same strings like the Set Value command so this shouldn't be the problem imo. My intention is to display the current upgrade level on the button, so I use an unimportant field for incrementing the technology counter. Then I create a <d ref=> in the buttons description for the race field since there's no field that returns the actual technology count.
What's wrong with that? I basically just want the trigger to edit the "Race" field for the particular upgrade and player when this upgrade is used.
Getting the value is not the problem (the UI command works fine)... it's just that I cannot change this value somehow.