User Tools

Site Tools


crpl:docs:call

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Vars and Functions

@FUNC_NAME

ArgumentsResultNotation
(user defined)

Description

Invokes a function. Execution passes to the function that is named and returns to the statement after the call when the function is complete. Arguments can be passed to and received from functions via the stack.

Examples

Example for :FUNC_Name

# invoke the function defined as an example at :FUNC_NAME 
# with the value "35" to get a 35% chance of making 
# a rapid (speed 100) move. 
35 @chance if 
	100 @relocate #Move quickly 
	endif
crpl/docs/call.1358575511.txt.gz · Last modified: 2014/10/01 15:02 (external edit)