Ummm... what do you need to edit the race field for? It doesnt have any impact on the game afaik.
Also, did you make sure everything has the right name? You have to check the data editor in raw data view to get the proper strings. Not sure, might even be case sensitive...
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.
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.
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.
Ummm... what do you need to edit the race field for? It doesnt have any impact on the game afaik.
Also, did you make sure everything has the right name? You have to check the data editor in raw data view to get the proper strings. Not sure, might even be case sensitive...
@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.
It seems that the race field is read-only and you cannot edit it with the catalog.
@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 :)
You can edit it in the editor. However, certain data cannot have their catalog edited once the game is launched (primarily behaviors).
Glad your issue has been resolved.