Wikia

Xeen Wiki

Opcode 0x1A - Return

Talk0
370pages on
this wiki
Supported In:
C D/S/W W-CD
? ? ?

The scripting command Return has the opcode (0x1A).

Arguments

Description

Returns to the previous location in the stack following a CallEvent command.

Notes

Takes no arguments, has no intelligence. Calling return from a function that wasn't started with CallEvent is undefined behavior. Don't do it. CallEvent opcodes can also stack, with each event calling another event before returning. Just take care in unwinding the stack with your return calls.

Around Wikia's network

Random Wiki