[script-command] add dynmultichoice

* supports variable length arguments
 * automatically scrolls
 * supports building list menus from a stack
This commit is contained in:
sbird
2023-01-15 13:41:10 +01:00
parent d5a4bfcd6f
commit 569fa0a60a
9 changed files with 387 additions and 4 deletions

View File

@@ -179,6 +179,15 @@ u32 ScriptReadWord(struct ScriptContext *ctx)
return (((((value3 << 8) + value2) << 8) + value1) << 8) + value0;
}
u32 ScriptPeekWord(struct ScriptContext *ctx)
{
u32 value0 = *(ctx->scriptPtr);
u32 value1 = *(ctx->scriptPtr + 1);
u32 value2 = *(ctx->scriptPtr + 2);
u32 value3 = *(ctx->scriptPtr + 3);
return (((((value3 << 8) + value2) << 8) + value1) << 8) + value0;
}
void LockPlayerFieldControls(void)
{
sLockFieldControls = TRUE;