334
edits
(→neq: added from http://www.scummvm.org/docs/specs/scrp-v6.php) |
(pickoneof and pickoneofdefault from http://www.scummvm.org/docs/specs/scrp-v6.php) |
||
Line 592: | Line 592: | ||
==pickOneOf== | ==pickOneOf== | ||
'''Encoding''' | |||
''CB'' | |||
'''Stack''' | |||
''( index , arg0 , arg1 , arg2 , ..., argn , n : value )'' | |||
'''Operation''' | |||
value := arg[index] | |||
Returns the index th argument on the stack. If n is less than the number of entries on the stack or index is out of range, undefined behaviour will result, usually involving the interpreter shutting down. | |||
==pickOneOfDefault== | ==pickOneOfDefault== | ||
'''Encoding''' | |||
''CC'' | |||
'''Stack''' | |||
''( index , arg0 , arg1 , arg2 , ..., argn , n , default : value )'' | |||
'''Operation''' | |||
If index is in the range 0.. n , value := arg[index] ; otherwise value := default . | |||
Returns the index th argument on the stack. If index is out of range, default is returned instead. If n is less than the number of entries on the stack, undefined behaviour will result, usually involving the interpreter shutting down. | |||
==MM 84 pickupObject== | ==MM 84 pickupObject== |
edits