I have a map where options picked at the start of the game effect the income produced by structures. This makes it so I would have to reference variable values to display how much income each building makes. The problem is the "Data Reference" does not allow for referencing of non mineral/vespian/custom resources (my resources are shown on the side bar in a text output).
Is there any way to output a local variable to text in the Button/Tooltip area?
No. You cannot reference trigger variables in text.
However, you could use the trigger editor to modify a value, e.g. Catalog - Set catalog field value, and then use a Data Reference to refer to that value in the text. So for example create a behavior and use triggers to set its Duration field to whatever value you want. Then, any text that refers to that duration using a Data Reference should show the updated value.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a map where options picked at the start of the game effect the income produced by structures. This makes it so I would have to reference variable values to display how much income each building makes. The problem is the "Data Reference" does not allow for referencing of non mineral/vespian/custom resources (my resources are shown on the side bar in a text output).
Is there any way to output a local variable to text in the Button/Tooltip area?
No. You cannot reference trigger variables in text.
However, you could use the trigger editor to modify a value, e.g. Catalog - Set catalog field value, and then use a Data Reference to refer to that value in the text. So for example create a behavior and use triggers to set its Duration field to whatever value you want. Then, any text that refers to that duration using a Data Reference should show the updated value.