This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:setpopuptext [2013/10/28 21:55] – change breadcrumb to Text Commands Grayzzur | crpl:docs:setpopuptext [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~DISCUSSION~~ | + | |
| <- [[crpl: | <- [[crpl: | ||
| ===== SetPopupText | ===== SetPopupText | ||
| Line 9: | Line 9: | ||
| === Description === | === Description === | ||
| SetPopupText creates a mouse-over text for the unit the script is attached to. | SetPopupText creates a mouse-over text for the unit the script is attached to. | ||
| + | |||
| + | If you want the mouse-over text to combine variables and strings, see the [[crpl: | ||
| === Examples === | === Examples === | ||
| + | Set a mouse-over text of " | ||
| < | < | ||
| - | # Sets a mouse-over text of " | + | #Standard Notation |
| " | " | ||
| + | |||
| + | #Warp Notation | ||
| + | SetPopupText (" | ||
| </ | </ | ||
| + | |||
| + | Create a unit text tooltip, based on values from variables within said unit, by concatenating values and strings together. | ||
| + | |||
| + | The reason there is an endline here: " | ||
| < | < | ||
| - | # Sets a mouse-over text of "Hello" | + | once |
| - | SetPopupText ("Hello") | + | |
| - | </ | + | endonce |
| + | |||
| + | :awake | ||
| + | 64 ->power | ||
| + | 30 -> | ||
| + | 42 -> | ||
| + | |||
| + | "" | ||
| + | < | ||
| + | < | ||
| + | Interval: " concat < | ||
| + | < | ||
| + | Cookies: " concat < | ||
| + | |||
| + | < | ||
| + | </ | ||