Prev: 60263 Up: Map Next: 60462
60300: Table of Addresses of Script Handling Routines
One word per script opcode from 0 to 80. Used by AdvanceScriptInstruction.
Opcode Handler Meaning
0 Unused Unused
1 ScriptRoutine_JumpToAddress Load script address
2 ScriptRoutine_MoveLeft Move left one character
3 ScriptRoutine_MoveRight Move right one character
4 ScriptRoutine_MoveUp Move up one character
5 ScriptRoutine_MoveDown Move down one character
6 ScriptRoutine_MoveLeftTwo Move left two characters
7 ScriptRoutine_MoveRightTwo Move right two characters
8 ScriptRoutine_MoveUpTwo Move up two characters
9 ScriptRoutine_MoveDownTwo Move down two characters
10 ScriptRoutine_ResetDirectionFlags Reset direction flags
11 ScriptRoutine_FaceRight Face right
12 ScriptRoutine_FaceLeft Face left
13 ScriptRoutine_FaceUp Face up
14 ScriptRoutine_FaceDown Face down
15 ScriptRoutine_PutDownCarried Put down carried entity
16 ScriptRoutine_FaceLeftAfterPutDown Face left after put-down
17 ScriptRoutine_FaceRightAfterPutDown Face right after put-down
18 ScriptRoutine_PlacePutDownLeft Position put-down entity left
19 ScriptRoutine_PlacePutDownRight Position put-down entity right
20 ScriptRoutine_PickUpHeld Pick up / restore held entity
21 ScriptRoutine_JumpIfCarrying Jump if carrying
22 ScriptRoutine_StartDruttScript Start Drutt script
23 ScriptRoutine_MoveHeldUpOneRoom Load script parameter into A
24 ScriptRoutine_StartLoop Start loop
25 ScriptRoutine_ContinueToNextInstruction Continue to next instruction
26 ScriptRoutine_OpenTrapDoor Open trap door
27 ScriptRoutine_AnimateTrapDoorBerk Animate trap door
28 ScriptRoutine_CloseTrapDoor Close trap door
29 ScriptRoutine_SetLatchRaiseEvent Set event flags after interaction
30 ScriptRoutine_BerkDoorInFront Berk interact with door ahead
31 ScriptRoutine_BerkDoorBehind Berk interact with door behind
32 ScriptRoutine_BerkOpenDoorInFront Berk open door ahead
33 ScriptRoutine_StartScriptLoop Start counted script loop
34 ScriptRoutine_EndScriptLoop End script loop
35 Unused Unused
36 ScriptRoutine_TaskTwoWalkVertical Task-two entity action
37 ScriptRoutine_TaskTwoWalkRight Task-two entity action
38 ScriptRoutine_TaskTwoWalkHorizontal Task-two entity action
39 ScriptRoutine_TaskTwoSpawnHelper Task-two entity action
40 ScriptRoutine_TaskTwoArmScriptFlags Task-two entity action
41 ScriptRoutine_TaskTwoRiseOnEvent Task-two entity action
42 ScriptRoutine_ArmCauldronFlags Cauldron / heater action
43 ScriptRoutine_TaskThreeSeekBerk Task-three entity action
44 ScriptRoutine_SlimyDropAndHeat Slimy-creature action
45 ScriptRoutine_TaskThreeClearUpstairs Task-three entity action
46 ScriptRoutine_TaskThreeBerkRightWindow Task-three entity action
47 ScriptRoutine_TaskThreeBerkLeftWindow Task-three entity action
48 ScriptRoutine_TaskThreeQueueSound Task-three entity action
49 ScriptRoutine_ThingUpstairsRaise Type-34 action
50 ScriptRoutine_ThingUpstairsResetRoom Type-34 action
51 ScriptRoutine_ThingUpstairsClearScreen Type-34 action
52 ScriptRoutine_ThingUpstairsChase Type-34 action
53 ScriptRoutine_ThingUpstairsFillAttributes Type-34 action
54 ScriptRoutine_CollectibleScanCounter Collectible action
55 ScriptRoutine_CollectibleRandomScript Collectible action
56 ScriptRoutine_CollectibleIncXIfClearAbove Collectible action
57 ScriptRoutine_CollectibleDecXIfClearLeft Collectible action
58 ScriptRoutine_CollectibleLeaveRoomDown Collectible action
59 ScriptRoutine_CollectibleLeaveRoomUp Collectible action
60 ScriptRoutine_CollectibleIncRoomTwice Collectible action
61 ScriptRoutine_CollectibleSetHeld Collectible action
62 ScriptRoutine_VatScanNearbySlots Vat action
63 ScriptRoutine_VatDecXIfClearLeft Vat action
64 ScriptRoutine_VatIncXIfClearAbove Vat action
65 ScriptRoutine_VatDecXIfClearLeftThenRise Vat action
66 ScriptRoutine_VatIncXIfClearAboveThenRise Vat action
67 ScriptRoutine_VatRoomTransition Vat action
68 ScriptRoutine_VatIncY Vat action
69 ScriptRoutine_VatDecY Vat action
70 ScriptRoutine_VatClearBit6AndReset Vat action
71 ScriptRoutine_VatQueueSound Vat action
72 ScriptRoutine_TaskFourAlignCreature Task-four entity action
73 ScriptRoutine_TaskFourRaiseY Task-four entity action
74 ScriptRoutine_TaskFourLowerY Task-four entity action
75 ScriptRoutine_TaskFourStepToward Task-four entity action
76 ScriptRoutine_TaskFourBerkOverlap Task-four entity action
77 ScriptRoutine_TaskFourTickOfferItem Task-four entity action
78 ScriptRoutine_TaskFourArmScriptFlags Task-four entity action
79 ScriptRoutine_TaskFourRandomiseExtra Task-four entity action
80 ScriptRoutine_TaskFourClearScriptFlags Task-four entity action
TableScriptHandlers 60300 DEFW 0 Address of the handler for script opcode 0.
60302 DEFW ScriptRoutine_JumpToAddress Address of the handler for script opcode 1.
60304 DEFW ScriptRoutine_MoveLeft Address of the handler for script opcode 2.
60306 DEFW ScriptRoutine_MoveRight Address of the handler for script opcode 3.
60308 DEFW ScriptRoutine_MoveUp Address of the handler for script opcode 4.
60310 DEFW ScriptRoutine_MoveDown Address of the handler for script opcode 5.
60312 DEFW ScriptRoutine_MoveLeftTwo Address of the handler for script opcode 6.
60314 DEFW ScriptRoutine_MoveRightTwo Address of the handler for script opcode 7.
60316 DEFW ScriptRoutine_MoveUpTwo Address of the handler for script opcode 8.
60318 DEFW ScriptRoutine_MoveDownTwo Address of the handler for script opcode 9.
60320 DEFW ScriptRoutine_ResetDirectionFlags Address of the handler for script opcode 10.
60322 DEFW ScriptRoutine_FaceRight Address of the handler for script opcode 11.
60324 DEFW ScriptRoutine_FaceLeft Address of the handler for script opcode 12.
60326 DEFW ScriptRoutine_FaceUp Address of the handler for script opcode 13.
60328 DEFW ScriptRoutine_FaceDown Address of the handler for script opcode 14.
60330 DEFW ScriptRoutine_PutDownCarried Address of the handler for script opcode 15.
60332 DEFW ScriptRoutine_FaceLeftAfterPutDown Address of the handler for script opcode 16.
60334 DEFW ScriptRoutine_FaceRightAfterPutDown Address of the handler for script opcode 17.
60336 DEFW ScriptRoutine_PlacePutDownLeft Address of the handler for script opcode 18.
60338 DEFW ScriptRoutine_PlacePutDownRight Address of the handler for script opcode 19.
60340 DEFW ScriptRoutine_PickUpHeld Address of the handler for script opcode 20.
60342 DEFW ScriptRoutine_JumpIfCarrying Address of the handler for script opcode 21.
60344 DEFW ScriptRoutine_StartDruttScript Address of the handler for script opcode 22.
60346 DEFW ScriptRoutine_MoveHeldUpOneRoom Address of the handler for script opcode 23.
60348 DEFW ScriptRoutine_StartLoop Address of the handler for script opcode 24.
60350 DEFW ScriptRoutine_ContinueToNextInstruction Address of the handler for script opcode 25.
60352 DEFW ScriptRoutine_OpenTrapDoor Address of the handler for script opcode 26.
60354 DEFW ScriptRoutine_AnimateTrapDoorBerk Address of the handler for script opcode 27.
60356 DEFW ScriptRoutine_CloseTrapDoor Address of the handler for script opcode 28.
60358 DEFW ScriptRoutine_SetLatchRaiseEvent Address of the handler for script opcode 29.
60360 DEFW ScriptRoutine_BerkDoorInFront Address of the handler for script opcode 30.
60362 DEFW ScriptRoutine_BerkDoorBehind Address of the handler for script opcode 31.
60364 DEFW ScriptRoutine_BerkOpenDoorInFront Address of the handler for script opcode 32.
60366 DEFW ScriptRoutine_StartScriptLoop Address of the handler for script opcode 33.
60368 DEFW ScriptRoutine_EndScriptLoop Address of the handler for script opcode 34.
60370 DEFW 0 Address of the handler for script opcode 35.
60372 DEFW ScriptRoutine_TaskTwoWalkVertical Address of the handler for script opcode 36.
60374 DEFW ScriptRoutine_TaskTwoWalkRight Address of the handler for script opcode 37.
60376 DEFW ScriptRoutine_TaskTwoWalkHorizontal Address of the handler for script opcode 38.
60378 DEFW ScriptRoutine_TaskTwoSpawnHelper Address of the handler for script opcode 39.
60380 DEFW ScriptRoutine_TaskTwoArmScriptFlags Address of the handler for script opcode 40.
60382 DEFW ScriptRoutine_TaskTwoRiseOnEvent Address of the handler for script opcode 41.
60384 DEFW ScriptRoutine_ArmCauldronFlags Address of the handler for script opcode 42.
60386 DEFW ScriptRoutine_TaskThreeSeekBerk Address of the handler for script opcode 43.
60388 DEFW ScriptRoutine_SlimyDropAndHeat Address of the handler for script opcode 44.
60390 DEFW ScriptRoutine_TaskThreeClearUpstairs Address of the handler for script opcode 45.
60392 DEFW ScriptRoutine_TaskThreeBerkRightWindow Address of the handler for script opcode 46.
60394 DEFW ScriptRoutine_TaskThreeBerkLeftWindow Address of the handler for script opcode 47.
60396 DEFW ScriptRoutine_TaskThreeQueueSound Address of the handler for script opcode 48.
60398 DEFW ScriptRoutine_ThingUpstairsRaise Address of the handler for script opcode 49.
60400 DEFW ScriptRoutine_ThingUpstairsResetRoom Address of the handler for script opcode 50.
60402 DEFW ScriptRoutine_ThingUpstairsClearScreen Address of the handler for script opcode 51.
60404 DEFW ScriptRoutine_ThingUpstairsChase Address of the handler for script opcode 52.
60406 DEFW ScriptRoutine_ThingUpstairsFillAttributes Address of the handler for script opcode 53.
60408 DEFW ScriptRoutine_CollectibleScanCounter Address of the handler for script opcode 54.
60410 DEFW ScriptRoutine_CollectibleRandomScript Address of the handler for script opcode 55.
60412 DEFW ScriptRoutine_CollectibleIncXIfClearAbove Address of the handler for script opcode 56.
60414 DEFW ScriptRoutine_CollectibleDecXIfClearLeft Address of the handler for script opcode 57.
60416 DEFW ScriptRoutine_CollectibleLeaveRoomDown Address of the handler for script opcode 58.
60418 DEFW ScriptRoutine_CollectibleLeaveRoomUp Address of the handler for script opcode 59.
60420 DEFW ScriptRoutine_CollectibleIncRoomTwice Address of the handler for script opcode 60.
60422 DEFW ScriptRoutine_CollectibleSetHeld Address of the handler for script opcode 61.
60424 DEFW ScriptRoutine_VatScanNearbySlots Address of the handler for script opcode 62.
60426 DEFW ScriptRoutine_VatDecXIfClearLeft Address of the handler for script opcode 63.
60428 DEFW ScriptRoutine_VatIncXIfClearAbove Address of the handler for script opcode 64.
60430 DEFW ScriptRoutine_VatDecXIfClearLeftThenRise Address of the handler for script opcode 65.
60432 DEFW ScriptRoutine_VatIncXIfClearAboveThenRise Address of the handler for script opcode 66.
60434 DEFW ScriptRoutine_VatRoomTransition Address of the handler for script opcode 67.
60436 DEFW ScriptRoutine_VatIncY Address of the handler for script opcode 68.
60438 DEFW ScriptRoutine_VatDecY Address of the handler for script opcode 69.
60440 DEFW ScriptRoutine_VatClearBit6AndReset Address of the handler for script opcode 70.
60442 DEFW ScriptRoutine_VatQueueSound Address of the handler for script opcode 71.
60444 DEFW ScriptRoutine_TaskFourAlignCreature Address of the handler for script opcode 72.
60446 DEFW ScriptRoutine_TaskFourRaiseY Address of the handler for script opcode 73.
60448 DEFW ScriptRoutine_TaskFourLowerY Address of the handler for script opcode 74.
60450 DEFW ScriptRoutine_TaskFourStepToward Address of the handler for script opcode 75.
60452 DEFW ScriptRoutine_TaskFourBerkOverlap Address of the handler for script opcode 76.
60454 DEFW ScriptRoutine_TaskFourTickOfferItem Address of the handler for script opcode 77.
60456 DEFW ScriptRoutine_TaskFourArmScriptFlags Address of the handler for script opcode 78.
60458 DEFW ScriptRoutine_TaskFourRandomiseExtra Address of the handler for script opcode 79.
60460 DEFW ScriptRoutine_TaskFourClearScriptFlags Address of the handler for script opcode 80.
View the equivalent code in;
Prev: 60263 Up: Map Next: 60462