This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Is it possible to retrieve a unit's tooltip/description via triggers.
For example, retrieving a Zealots's button tooltip.
Powerful melee warrior.<n/><n/><c val="ffff8a">Can attack ground units.</c>
Try to use the catalog functions to receive the information.
Thank you, could you please elaborate a bit more?
I don't see a getdata catalog function.
Using the Convert Game Text function together with catalog field value get:
Debug - Display (Text((Value of Units Zealot Description for player Any Player))) as debug output using Type 01, and Do display it in the game window Debug - Display (Game text for (Value of Units Zealot Description for player Any Player)) as debug output using Type 01, and Do display it in the game window
Prints:
00:00:00.00 Button/Tooltip/Zealot 00:00:00.00 Powerful melee warrior. <c val="ffff8a">Can attack ground units.</c>
Catalog Field Value get returns
Button/Tooltip/Zealot
which then can be passed into the Convert Game Text function, which will convert it to:
Powerful melee warrior. <c val="ffff8a">Can attack ground units.</c>
Note that this function will return a text and will return a different result based on the players locale.
Is it possible to retrieve a unit's tooltip/description via triggers.
For example, retrieving a Zealots's button tooltip.
Powerful melee warrior.<n/><n/><c val="ffff8a">Can attack ground units.</c>
Try to use the catalog functions to receive the information.
Thank you, could you please elaborate a bit more?
I don't see a getdata catalog function.
Using the Convert Game Text function together with catalog field value get:
Prints:
Catalog Field Value get returns
which then can be passed into the Convert Game Text function, which will convert it to:
Note that this function will return a text and will return a different result based on the players locale.