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 "xeen/files.h" 31 #include "xeen/party.h" 37 OP_Display0x01 = 0x01,
38 OP_DoorTextSml = 0x02,
39 OP_DoorTextLrg = 0x03,
43 OP_TeleportAndExit = 0x07,
53 OP_DoTownEvent = 0x11,
57 OP_ConfirmWord = 0x15,
64 OP_TakeOrGive_2 = 0x1C,
65 OP_TakeOrGive_3 = 0x1D,
66 OP_CutsceneEndClouds = 0x1E,
67 OP_TeleportAndContinue = 0x1F,
70 OP_MoveWallObj = 0x22,
71 OP_AlterCellFlag = 0x23,
73 OP_DisplayStat = 0x25,
74 OP_TakeOrGive_4 = 0x26,
75 OP_SeatTextSml = 0x27,
76 OP_PlayEventVoc = 0x28,
77 OP_DisplayBottom = 0x29,
79 OP_SelectRandomChar = 0x2B,
80 OP_GiveEnchanted = 0x2C,
82 OP_MakeNothingHere = 0x2E,
84 OP_ChooseNumeric = 0x30,
85 OP_DisplayBottomTwoLines = 0x31,
86 OP_DisplayLarge = 0x32,
89 OP_DisplayMain = 0x35,
91 OP_ConfirmWord_2 = 0x37,
93 OP_CutsceneEndDarkside = 0x39,
94 OP_CutsceneEdWorld = 0x3A,
215 bool _scriptExecuted;
234 bool cmdDoNothing(ParamsIterator ¶ms);
239 bool cmdDisplay1(ParamsIterator ¶ms);
244 bool cmdDoorTextSml(ParamsIterator ¶ms);
249 bool cmdDoorTextLrg(ParamsIterator ¶ms);
254 bool cmdSignText(ParamsIterator ¶ms);
259 bool cmdNPC(ParamsIterator ¶ms);
264 bool cmdPlayFX(ParamsIterator ¶ms);
269 bool cmdTeleport(ParamsIterator ¶ms);
274 bool cmdIf(ParamsIterator ¶ms);
279 bool cmdMoveObj(ParamsIterator ¶ms);
284 bool cmdTakeOrGive(ParamsIterator ¶ms);
289 bool cmdRemove(ParamsIterator ¶ms);
294 bool cmdSetChar(ParamsIterator ¶ms);
299 bool cmdSpawn(ParamsIterator ¶ms);
305 bool cmdDoTownEvent(ParamsIterator ¶ms);
310 bool cmdExit(ParamsIterator ¶ms);
315 bool cmdAlterMap(ParamsIterator ¶ms);
320 bool cmdGiveMulti(ParamsIterator ¶ms);
326 bool cmdConfirmWord(ParamsIterator ¶ms);
331 bool cmdDamage(ParamsIterator ¶ms);
336 bool cmdJumpRnd(ParamsIterator ¶ms);
341 bool cmdAlterEvent(ParamsIterator ¶ms);
347 bool cmdCallEvent(ParamsIterator ¶ms);
353 bool cmdReturn(ParamsIterator ¶ms);
358 bool cmdSetVar(ParamsIterator ¶ms);
363 bool cmdCutsceneEndClouds(ParamsIterator ¶ms);
368 bool cmdWhoWill(ParamsIterator ¶ms);
373 bool cmdRndDamage(ParamsIterator ¶ms);
380 bool cmdMoveWallObj(ParamsIterator ¶ms);
385 bool cmdAlterCellFlag(ParamsIterator ¶ms);
391 bool cmdAlterHed(ParamsIterator ¶ms);
396 bool cmdDisplayStat(ParamsIterator ¶ms);
402 bool cmdSignTextSml(ParamsIterator ¶ms);
408 bool cmdPlayEventVoc(ParamsIterator ¶ms);
413 bool cmdDisplayBottom(ParamsIterator ¶ms);
419 bool cmdIfMapFlag(ParamsIterator ¶ms);
424 bool cmdSelectRandomChar(ParamsIterator ¶ms);
429 bool cmdGiveEnchanted(ParamsIterator ¶ms);
434 bool cmdItemType(ParamsIterator ¶ms);
439 bool cmdMakeNothingHere(ParamsIterator ¶ms);
444 bool cmdCheckProtection(ParamsIterator ¶ms);
450 bool cmdChooseNumeric(ParamsIterator ¶ms);
455 bool cmdDisplayBottomTwoLines(ParamsIterator ¶ms);
460 bool cmdDisplayLarge(ParamsIterator ¶ms);
465 bool cmdExchObj(ParamsIterator ¶ms);
470 bool cmdFallToMap(ParamsIterator ¶ms);
475 bool cmdDisplayMain(ParamsIterator ¶ms);
482 bool cmdGoto(ParamsIterator ¶ms);
487 bool cmdGotoRandom(ParamsIterator ¶ms);
492 bool cmdCutsceneEndDarkside(ParamsIterator ¶ms);
497 bool cmdCutsceneEndWorld(ParamsIterator ¶ms);
502 bool cmdFlipWorld(ParamsIterator ¶ms);
507 bool cmdPlayCD(ParamsIterator ¶ms);
509 int whoWill(
int v1,
int v2,
int v3);
514 void doCloudsEnding();
519 void doDarkSideEnding();
525 void doWorldEnding();
535 bool ifProc(
int action, uint32 val,
int mode,
int charIndex);
540 bool copyProtectionCheck();
545 void display(
bool justifyFlag,
int var46);
550 uint convertCDTime(uint srcTime);
555 DamageType _nEdamageType;
571 bool openGrate(
int wallVal,
int action);
Definition: scripts.h:151
Iterator getIterator() const
Definition: scripts.h:143
Definition: serializer.h:79
Definition: scripts.h:111
Definition: scripts.h:192
Definition: scripts.h:109
Definition: scripts.h:183
Definition: scripts.h:206
Definition: scripts.h:170
int8 readShort()
Definition: scripts.h:127
Definition: character.h:33