User Tools

Site Tools


crpl:docs:func_usercancelaction

<- CRPL reference <- Vars and Functions

:UserCancelAction

Description

Special function that is automatically called whenever the player initiates a cancel action.

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

 :UserCancelAction
  ...
  @main

 :main
  ...

Or create a dedicated script, as this is not oft-needed. See the PaC selection handler.

Examples

UserCancelAction

“You cancelled!” SetText

crpl/docs/func_usercancelaction.txt · Last modified: 2022/07/01 14:39 by Karsten75