22 #ifndef XEEN_SCRIPTS_H 23 #define XEEN_SCRIPTS_H 25 #include "common/scummsys.h" 26 #include "common/system.h" 27 #include "common/serializer.h" 28 #include "common/stack.h" 29 #include "common/str-array.h" 30 #include "mm/xeen/files.h" 31 #include "mm/xeen/party.h" 38 OP_Display0x01 = 0x01,
39 OP_DoorTextSml = 0x02,
40 OP_DoorTextLrg = 0x03,
44 OP_TeleportAndExit = 0x07,
54 OP_DoTownEvent = 0x11,
58 OP_ConfirmWord = 0x15,
65 OP_TakeOrGive_2 = 0x1C,
66 OP_TakeOrGive_3 = 0x1D,
67 OP_CutsceneEndClouds = 0x1E,
68 OP_TeleportAndContinue = 0x1F,
71 OP_MoveWallObj = 0x22,
72 OP_AlterCellFlag = 0x23,
74 OP_DisplayStat = 0x25,
75 OP_TakeOrGive_4 = 0x26,
76 OP_SeatTextSml = 0x27,
77 OP_PlayEventVoc = 0x28,
78 OP_DisplayBottom = 0x29,
80 OP_SelectRandomChar = 0x2B,
81 OP_GiveEnchanted = 0x2C,
83 OP_MakeNothingHere = 0x2E,
85 OP_ChooseNumeric = 0x30,
86 OP_DisplayBottomTwoLines = 0x31,
87 OP_DisplayLarge = 0x32,
90 OP_DisplayMain = 0x35,
92 OP_ConfirmWord_2 = 0x37,
94 OP_CutsceneEndDarkside = 0x39,
95 OP_CutsceneEdWorld = 0x3A,
222 bool _scriptExecuted;
241 bool cmdDoNothing(ParamsIterator ¶ms);
246 bool cmdDisplay1(ParamsIterator ¶ms);
251 bool cmdDoorTextSml(ParamsIterator ¶ms);
256 bool cmdDoorTextLrg(ParamsIterator ¶ms);
261 bool cmdSignText(ParamsIterator ¶ms);
266 bool cmdNPC(ParamsIterator ¶ms);
271 bool cmdPlayFX(ParamsIterator ¶ms);
276 bool cmdTeleport(ParamsIterator ¶ms);
281 bool cmdIf(ParamsIterator ¶ms);
286 bool cmdMoveObj(ParamsIterator ¶ms);
291 bool cmdTakeOrGive(ParamsIterator ¶ms);
296 bool cmdRemove(ParamsIterator ¶ms);
301 bool cmdSetChar(ParamsIterator ¶ms);
306 bool cmdSpawn(ParamsIterator ¶ms);
312 bool cmdDoTownEvent(ParamsIterator ¶ms);
317 bool cmdExit(ParamsIterator ¶ms);
322 bool cmdAlterMap(ParamsIterator ¶ms);
327 bool cmdGiveMulti(ParamsIterator ¶ms);
333 bool cmdConfirmWord(ParamsIterator ¶ms);
338 bool cmdDamage(ParamsIterator ¶ms);
343 bool cmdJumpRnd(ParamsIterator ¶ms);
348 bool cmdAlterEvent(ParamsIterator ¶ms);
354 bool cmdCallEvent(ParamsIterator ¶ms);
360 bool cmdReturn(ParamsIterator ¶ms);
365 bool cmdSetVar(ParamsIterator ¶ms);
370 bool cmdCutsceneEndClouds(ParamsIterator ¶ms);
375 bool cmdWhoWill(ParamsIterator ¶ms);
380 bool cmdRndDamage(ParamsIterator ¶ms);
387 bool cmdMoveWallObj(ParamsIterator ¶ms);
392 bool cmdAlterCellFlag(ParamsIterator ¶ms);
398 bool cmdAlterHed(ParamsIterator ¶ms);
403 bool cmdDisplayStat(ParamsIterator ¶ms);
409 bool cmdSignTextSml(ParamsIterator ¶ms);
415 bool cmdPlayEventVoc(ParamsIterator ¶ms);
420 bool cmdDisplayBottom(ParamsIterator ¶ms);
426 bool cmdIfMapFlag(ParamsIterator ¶ms);
431 bool cmdSelectRandomChar(ParamsIterator ¶ms);
436 bool cmdGiveEnchanted(ParamsIterator ¶ms);
441 bool cmdItemType(ParamsIterator ¶ms);
446 bool cmdMakeNothingHere(ParamsIterator ¶ms);
451 bool cmdCheckProtection(ParamsIterator ¶ms);
457 bool cmdChooseNumeric(ParamsIterator ¶ms);
462 bool cmdDisplayBottomTwoLines(ParamsIterator ¶ms);
467 bool cmdDisplayLarge(ParamsIterator ¶ms);
472 bool cmdExchObj(ParamsIterator ¶ms);
477 bool cmdFallToMap(ParamsIterator ¶ms);
482 bool cmdDisplayMain(ParamsIterator ¶ms);
489 bool cmdGoto(ParamsIterator ¶ms);
494 bool cmdGotoRandom(ParamsIterator ¶ms);
499 bool cmdCutsceneEndDarkside(ParamsIterator ¶ms);
504 bool cmdCutsceneEndWorld(ParamsIterator ¶ms);
509 bool cmdFlipWorld(ParamsIterator ¶ms);
514 bool cmdPlayCD(ParamsIterator ¶ms);
516 int whoWill(
int v1,
int v2,
int v3);
521 void doCloudsEnding();
526 void doDarkSideEnding();
532 void doWorldEnding();
542 bool ifProc(
int action, uint32 val,
int mode,
int charIndex);
547 bool copyProtectionCheck();
552 void display(
bool justifyFlag,
int var46);
557 uint convertCDTime(uint srcTime);
562 DamageType _nEdamageType;
578 bool openGrate(
int wallVal,
int action);
Definition: scripts.h:112
Definition: scripts.h:110
Definition: scripts.h:213
Definition: scripts.h:156
Definition: serializer.h:79
Iterator getIterator() const
Definition: scripts.h:148
int8 readShort()
Definition: scripts.h:130
Definition: scripts.h:198
Definition: detection.h:27
Definition: scripts.h:188
Definition: scripts.h:175