This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| crpl:docs:func_usercancelaction [2014/05/14 21:53] – created Clean0nion | crpl:docs:func_usercancelaction [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~DISCUSSION~~ | ||
| <- [[crpl: | <- [[crpl: | ||
| ===== : | ===== : | ||
| - | |||
| - | ^Arguments^Result^Notation^ | ||
| - | | | |'' | ||
| - | |||
| === Description === | === Description === | ||
| Special function that is automatically called whenever the player initiates a cancel action. | Special function that is automatically called whenever the player initiates a cancel action. | ||
| - | FIXME | + | |
| + | Please note: when this occurs, it is called instead of the main body of the script. To get around this, structure your script like so: | ||
| + | < | ||
| + | | ||
| + | |||
| + | : | ||
| + | ... | ||
| + | @main | ||
| + | |||
| + | : | ||
| + | ... | ||
| + | </ | ||
| + | Or create a dedicated script, as this is not oft-needed. See the PaC selection handler. | ||
| === Examples === | === Examples === | ||
| : | : | ||
| "You cancelled!" | "You cancelled!" | ||