3API_CALLABLE(N(BuildKeyItemChoiceList)) {
8 if (allowedItemList != NULL) {
9 for (i = 0; allowedItemList[i] != ITEM_NONE; i++) {
10 N(KeyItemChoiceList)[i] = allowedItemList[i];
12 N(KeyItemChoiceList)[i] = ITEM_NONE;
14 for (i = 0; i < ITEM_NUM_KEYS; i++) {
15 N(KeyItemChoiceList)[i] = ITEM_FIRST_KEY + i;
16 N(KeyItemChoiceList)[ITEM_NUM_KEYS] = ITEM_NONE;
s32 evt_get_variable(Evt *script, Bytecode var)