Skip to content

Instantly share code, notes, and snippets.

@PlatinumMaster
Created April 20, 2020 04:43
Show Gist options
  • Select an option

  • Save PlatinumMaster/7cab842f344a1f309d623b031dc496ec to your computer and use it in GitHub Desktop.

Select an option

Save PlatinumMaster/7cab842f344a1f309d623b031dc496ec to your computer and use it in GitHub Desktop.
Test B2W2 Script
.include "B2W2.s"
Header:
script Script0
script Script1
script Script2
script Script3
script Script4
script Script5
script Script6
script Script7
script Script8
script Script9
script Script10
script Script11
script Script12
script Script13
script Script14
script Script15
script Script16
script Script17
script Script18
script Script19
script Script20
script Script21
script Script22
script Script23
script Script24
script Script25
script Script26
script Script27
script Script28
script Script29
script Script30
script Script31
script Script32
EndHeader
Script0:
LockAll
PlaySound 0x547
FacePlayer
StoreVar 0x40a1
CompareTo 0x2
Condition 0x3
If 0xff Function0
CMD_290 0x1
Message 0x0 0x4 0x12 0x0 0x0 0x0
WaitButton
CloseMessageKP2
Jump Function1
Function0:
StoreVar 0x40a1
CompareTo 0x3
Condition 0x1
If 0xff Function2
CMD_290 0x1
Message 0x0 0x4 0x1d 0x0 0x0 0x0
WaitButton
CloseMessageKP2
Jump Function1
Function2:
ChangeMusic 0x4d5
CallRoutine 0x849
WaitMoment
UnlockAll
End
Function1:
WaitMoment
UnlockAll
End
Script1:
LockAll
ApplyMovement 0x0 Movement0
WaitMovement
ApplyMovement 0x0 Movement1
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement2
WaitMovement
CMD_290 0x1
Message 0x0 0x4 0x13 0x0 0x0 0x0
CloseMessageKP2
ApplyMovement 0xff Movement3
WaitMovement
ApplyMovement 0x0 Movement4
WaitMovement
WaitMoment
UnlockAll
End
Script2:
LockAll
ApplyMovement 0x0 Movement0
WaitMovement
ApplyMovement 0x0 Movement1
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement2
WaitMovement
CMD_290 0x1
Message 0x0 0x4 0x1e 0x0 0x0 0x0
CloseMessageKP2
ApplyMovement 0xff Movement3
WaitMovement
ApplyMovement 0x0 Movement4
WaitMovement
WaitMoment
UnlockAll
End
Script3:
LockAll
StoreVar 0x4030
CompareTo 0x0
Condition 0x1
If 0xff Function3
SetVarPoke 0x2 0x1ef
Jump Function4
Function3:
StoreVar 0x4030
CompareTo 0x1
Condition 0x1
If 0xff Function5
SetVarPoke 0x2 0x1f2
Jump Function4
Function5:
SetVarPoke 0x2 0x1f5
ApplyMovement 0x2 Movement0
WaitMovement
ApplyMovement 0xff Movement2
WaitMovement
CMD_24F 0x1 0x2e 0x2e4 0x1 0x8 0x0
ReturnAfterDelay 0x4
CMD_24F 0x3 0x2e 0x2e5 0x1 0x8 0x0
WaitMovement
SetVarHero 0x0
Message 0x0 0x4 0x42 0x1 0x0 0x0
CloseMessageKP2
ApplyMovement 0x1 Movement0
WaitMovement
Message 0x0 0x4 0x43 0x1 0x0 0x0
CloseMessageKP2
CMD_24F 0x1 0x2f 0x2e4 0x1 0x8 0x0
WaitMovement
CMD_E3
PlayFanfare 0x517
SetVarHero 0x0
EventGreyMessage 0x44 0x0
WaitFanfare
CloseAngryMessage
CloseEventGreyMessage
Message 0x0 0x4 0x45 0x1 0x1 0x0
CloseMessageKP2
CMD_24F 0x3 0x30 0x2e5 0x1 0x8 0x0
WaitMovement
ApplyMovement 0x3 Movement4
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement5
WaitMovement
CMD_290 0x1
Message 0x0 0x4 0x46 0x3 0x0 0x0
CloseMessageKP2
StoreVar 0x8000
StoreVar 0x8001
SetVar2A 0x8000 0x1ba
SetVar2A 0x8001 0x1
CallStd 0xaf5
ClearVar 0x8001
ClearVar 0x8000
ApplyMovement 0x2 Movement5
WaitMovement
ApplyMovement 0x2 Movement6
WaitMovement
Message 0x0 0x4 0x48 0x2 0x0 0x0
CloseMessageKP2
CMD_290 0x1
Message 0x0 0x4 0x49 0x3 0x0 0x0
CloseMessageKP2
ApplyMovement 0x2 Movement2
WaitMovement
Message 0x0 0x4 0x4a 0x1 0x0 0x0
CloseMessageKP2
ApplyMovement 0xff Movement1
WaitMovement
Message 0x0 0x4 0x4b 0x2 0x0 0x0
CloseMessageKP2
CMD_24F 0x2 0x35 0x2d5 0x1 0x8 0x0
ReturnAfterDelay 0x14
ApplyMovement 0x3 Movement1
WaitMovement
RemoveNPC 0x2
ApplyMovement 0xff Movement2
ApplyMovement 0x3 Movement4
WaitMovement
StoreVar 0x4030
CompareTo 0x0
Condition 0x1
If 0xff Function6
SetVarPoke 0x2 0x1ef
Jump Function7
Function6:
StoreVar 0x4030
CompareTo 0x1
Condition 0x1
If 0xff Function8
SetVarPoke 0x2 0x1f2
Jump Function7
Function8:
SetVarPoke 0x2 0x1f5
Message 0x0 0x4 0x4c 0x1 0x0 0x0
WaitButton
CloseMessageKP2
SetVarEqVal 0x40a1 0x7
SetFlag 0x2e6
SetFlag 0x2e4
SetFlag 0x323
CMD_262 0x4 0x1
WaitMoment
UnlockAll
End
Function7:
Message 0x0 0x4 0x4c 0x1 0x0 0x0
WaitButton
CloseMessageKP2
SetVarEqVal 0x40a1 0x7
SetFlag 0x2e6
SetFlag 0x2e4
SetFlag 0x323
CMD_262 0x4 0x1
WaitMoment
UnlockAll
End
Function4:
ApplyMovement 0x2 Movement0
WaitMovement
ApplyMovement 0xff Movement2
WaitMovement
CMD_24F 0x1 0x2e 0x2e4 0x1 0x8 0x0
ReturnAfterDelay 0x4
CMD_24F 0x3 0x2e 0x2e5 0x1 0x8 0x0
WaitMovement
SetVarHero 0x0
Message 0x0 0x4 0x42 0x1 0x0 0x0
CloseMessageKP2
ApplyMovement 0x1 Movement0
WaitMovement
Message 0x0 0x4 0x43 0x1 0x0 0x0
CloseMessageKP2
CMD_24F 0x1 0x2f 0x2e4 0x1 0x8 0x0
WaitMovement
CMD_E3
PlayFanfare 0x517
SetVarHero 0x0
EventGreyMessage 0x44 0x0
WaitFanfare
CloseAngryMessage
CloseEventGreyMessage
Message 0x0 0x4 0x45 0x1 0x1 0x0
CloseMessageKP2
CMD_24F 0x3 0x30 0x2e5 0x1 0x8 0x0
WaitMovement
ApplyMovement 0x3 Movement4
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement5
WaitMovement
CMD_290 0x1
Message 0x0 0x4 0x46 0x3 0x0 0x0
CloseMessageKP2
StoreVar 0x8000
StoreVar 0x8001
SetVar2A 0x8000 0x1ba
SetVar2A 0x8001 0x1
CallStd 0xaf5
ClearVar 0x8001
ClearVar 0x8000
ApplyMovement 0x2 Movement5
WaitMovement
ApplyMovement 0x2 Movement6
WaitMovement
Message 0x0 0x4 0x48 0x2 0x0 0x0
CloseMessageKP2
CMD_290 0x1
Message 0x0 0x4 0x49 0x3 0x0 0x0
CloseMessageKP2
ApplyMovement 0x2 Movement2
WaitMovement
Message 0x0 0x4 0x4a 0x1 0x0 0x0
CloseMessageKP2
ApplyMovement 0xff Movement1
WaitMovement
Message 0x0 0x4 0x4b 0x2 0x0 0x0
CloseMessageKP2
CMD_24F 0x2 0x35 0x2d5 0x1 0x8 0x0
ReturnAfterDelay 0x14
ApplyMovement 0x3 Movement1
WaitMovement
RemoveNPC 0x2
ApplyMovement 0xff Movement2
ApplyMovement 0x3 Movement4
WaitMovement
StoreVar 0x4030
CompareTo 0x0
Condition 0x1
If 0xff Function6
SetVarPoke 0x2 0x1ef
Jump Function7
Script4:
End
Script5:
StoreVar 0x40a1
CompareTo 0x0
Condition 0x1
If 0xff Function9
SetOWPosition 0x3 0x2a 0x1 0x2ef 0x3
SetOWPosition 0x0 0x2b 0x1 0x2ef 0x2
Jump Function10
Function9:
StoreVar 0x40a1
CompareTo 0x1
Condition 0x1
If 0xff Function11
Jump Function10
Function11:
StoreVar 0x40a1
CompareTo 0x6
Condition 0x1
If 0xff Function10
SetOWPosition 0x2 0x31 0x1 0x2e4 0x2
SetOWPosition 0x1 0x26 0x1 0x2e4 0x3
SetOWPosition 0x3 0x26 0x1 0x2e5 0x3
StoreVar 0x40a1
CompareTo 0x2
Condition 0x0
StoreVar 0x40a8
CompareTo 0x1
Condition 0x4
Condition 0x6
If 0xff Function12
SetOWPosition 0x6 0x24 0x1 0x2e5 0x3
StoreVar 0x40a8
CompareTo 0x2
Condition 0x1
If 0xff Function13
SetOWPosition 0x2 0x2a 0x1 0x2e5 0x2
StoreVar 0x40a8
CompareTo 0x3
Condition 0x1
If 0xff Function14
SetOWPosition 0x2 0x28 0x1 0x2e5 0x1
StoreVar 0x4115
CompareTo 0x1
Condition 0x1
If 0xff Function15
SetOWPosition 0x0 0x2d 0x1 0x2fa 0x3
SetOWPosition 0x3 0x2d 0x1 0x2fb 0x3
End
Function12:
StoreVar 0x40a8
CompareTo 0x2
Condition 0x1
If 0xff Function13
SetOWPosition 0x2 0x2a 0x1 0x2e5 0x2
StoreVar 0x40a8
CompareTo 0x3
Condition 0x1
If 0xff Function14
SetOWPosition 0x2 0x28 0x1 0x2e5 0x1
StoreVar 0x4115
CompareTo 0x1
Condition 0x1
If 0xff Function15
SetOWPosition 0x0 0x2d 0x1 0x2fa 0x3
SetOWPosition 0x3 0x2d 0x1 0x2fb 0x3
End
Function13:
StoreVar 0x40a8
CompareTo 0x3
Condition 0x1
If 0xff Function14
SetOWPosition 0x2 0x28 0x1 0x2e5 0x1
StoreVar 0x4115
CompareTo 0x1
Condition 0x1
If 0xff Function15
SetOWPosition 0x0 0x2d 0x1 0x2fa 0x3
SetOWPosition 0x3 0x2d 0x1 0x2fb 0x3
End
Function14:
StoreVar 0x4115
CompareTo 0x1
Condition 0x1
If 0xff Function15
SetOWPosition 0x0 0x2d 0x1 0x2fa 0x3
SetOWPosition 0x3 0x2d 0x1 0x2fb 0x3
End
Function15:
End
Function10:
StoreVar 0x40a1
CompareTo 0x2
Condition 0x0
StoreVar 0x40a8
CompareTo 0x1
Condition 0x4
Condition 0x6
If 0xff Function12
SetOWPosition 0x6 0x24 0x1 0x2e5 0x3
StoreVar 0x40a8
CompareTo 0x2
Condition 0x1
If 0xff Function13
SetOWPosition 0x2 0x2a 0x1 0x2e5 0x2
StoreVar 0x40a8
CompareTo 0x3
Condition 0x1
If 0xff Function14
SetOWPosition 0x2 0x28 0x1 0x2e5 0x1
StoreVar 0x4115
CompareTo 0x1
Condition 0x1
If 0xff Function15
SetOWPosition 0x0 0x2d 0x1 0x2fa 0x3
SetOWPosition 0x3 0x2d 0x1 0x2fb 0x3
End
Script6:
LockAll
StoreVar 0x40a1
CompareTo 0x2
Condition 0x3
If 0xff Function16
CallRoutine 0xf9
Jump Function17
Function16:
StoreVar 0x40a1
CompareTo 0x3
Condition 0x1
If 0xff Function18
CallRoutine 0x227
Jump Function17
Function18:
StoreVar 0x40a1
CompareTo 0x4
Condition 0x1
If 0xff Function19
PlaySound 0x547
FacePlayer
Message 0x0 0x4 0x33 0x2 0x1 0x0
WaitButton
CloseMessageKP2
Jump Function17
Function19:
StoreVar 0x40a1
CompareTo 0x5
Condition 0x1
If 0xff Function20
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x3b 0x0 0x0 0x32
CloseMessageKP
Jump Function17
Function20:
StoreVar 0x40a8
CompareTo 0x3
Condition 0x1
If 0xff Function21
CMD_13B 0x8008
StoreVar 0x8008
CompareTo 0x1
Condition 0x1
If 0xff Function22
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x6a 0x0 0x0 0x32
CloseMessageKP
Jump Function23
Function21:
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x3a 0x0 0x0 0x32
CloseMessageKP
WaitMoment
UnlockAll
End
Function22:
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x6b 0x0 0x0 0x32
CloseMessageKP
Jump Function17
Function23:
Jump Function17
Function17:
WaitMoment
UnlockAll
End
Script7:
LockAll
ApplyMovement 0x0 Movement0
WaitMovement
ChangeMusic 0x4d5
StoreHeroPosition 0x8021 0x8022
CMD_24F 0x0 0x8021 0x2cb 0x1 0x8 0x0
WaitMovement
ApplyMovement 0x0 Movement5
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement4
WaitMovement
CallRoutine 0x6
WaitMoment
UnlockAll
End
Script8:
LockAll
StoreVar 0x4030
CompareTo 0x0
Condition 0x1
If 0xff Function24
SetVarPoke 0x2 0x1ef
Jump Function25
Function24:
StoreVar 0x4030
CompareTo 0x1
Condition 0x1
If 0xff Function26
SetVarPoke 0x2 0x1f2
Jump Function25
Function26:
SetVarPoke 0x2 0x1f5
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x4c 0x0 0x0 0x32
CloseMessageKP
WaitMoment
UnlockAll
End
Function25:
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x4c 0x0 0x0 0x32
CloseMessageKP
WaitMoment
UnlockAll
End
Script9:
LockAll
CMD_290 0x1
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x4d 0x0 0x0 0x32
CloseMessageKP
WaitMoment
UnlockAll
End
Script10:
LockAll
StoreVar 0x40a8
CompareTo 0x1
Condition 0x0
If 0xff Function27
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x74 0x0 0x0 0x32
CloseMessageKP
Jump Function28
Function27:
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x75 0x0 0x0 0x32
CloseMessageKP
WaitMoment
UnlockAll
End
Function28:
WaitMoment
UnlockAll
End
Script11:
LockAll
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x76 0x0 0x0 0x32
CloseMessageKP
WaitMoment
UnlockAll
End
Script12:
LockAll
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x77 0x0 0x0 0x32
CloseMessageKP
WaitMoment
UnlockAll
End
Script13:
LockAll
CMD_276 0x11 0x0
PlaySound 0x547
BorderedMessage 0x7d 0x1
CloseBorderedMessage
WaitMoment
UnlockAll
End
Script14:
LockAll
SetVarHero 0x0
CMD_276 0x11 0x0
PlaySound 0x547
BorderedMessage 0x7e 0x2
CloseBorderedMessage
WaitMoment
UnlockAll
End
Script15:
LockAll
CMD_276 0x11 0x0
PlaySound 0x547
BorderedMessage 0x7f 0x2
CloseBorderedMessage
WaitMoment
UnlockAll
End
Script16:
LockAll
StoreVar 0x40a8
CompareTo 0x1
Condition 0x0
If 0xff Function29
CMD_276 0x11 0x0
PlaySound 0x547
BorderedMessage 0x80 0x2
CloseBorderedMessage
Jump Function30
Function29:
CMD_276 0x11 0x0
PlaySound 0x547
BorderedMessage 0x81 0x2
CloseBorderedMessage
WaitMoment
UnlockAll
End
Function30:
WaitMoment
UnlockAll
End
Script17:
LockAll
SetVarHero 0x0
CMD_290 0x1
BubbleMessage 0x0 0x2
CloseMessageKP2
CMD_24F 0x3 0x2a 0x2f6 0x1 0x8 0x0
CMD_24F 0x0 0x2b 0x2f6 0x1 0x8 0x0
ReturnAfterDelay 0x1e
CMD_24F 0xff 0x2b 0x2f8 0x1 0x8 0x0
WaitMovement
ApplyMovement 0x0 Movement7
WaitMovement
Message 0x0 0x4 0x1 0x0 0x0 0x0
CloseMessageKP2
ApplyMovement 0x0 Movement0
WaitMovement
Message 0x0 0x4 0x2 0x0 0x0 0x0
Message 0x0 0x4 0x3 0x0 0x0 0x0
CloseMessageKP2
Message 0x0 0x4 0x4 0x3 0x0 0x0
CloseMessageKP2
ApplyMovement 0x0 Movement2
WaitMovement
ApplyMovement 0x0 Movement8
WaitMovement
ReturnAfterDelay 0x14
Message 0x0 0x4 0x5 0x0 0x0 0x0
CloseMessageKP2
ApplyMovement 0x0 Movement5
WaitMovement
Message 0x0 0x4 0x6 0x0 0x0 0x0
CloseMessageKP2
ApplyMovement 0x0 Movement2
ReturnAfterDelay 0x8
ApplyMovement 0x3 Movement1
WaitMovement
Message 0x0 0x4 0x7 0x0 0x0 0x0
CloseMessageKP2
ApplyMovement 0x3 Movement5
WaitMovement
Message 0x0 0x4 0x8 0x3 0x0 0x0
CloseMessageKP2
CMD_24F 0x3 0x2b 0x2ef 0x0 0x8 0x0
ApplyMovement 0x0 Movement5
ReturnAfterDelay 0x10
Message 0x0 0x4 0x9 0x0 0x0 0x0
CloseAngryMessage
CloseMessageKP2
WaitMovement
RemoveNPC 0x3
StoreHeroPosition 0x8021 0x8022
StoreVar 0x8021
CompareTo 0x29
Condition 0x1
If 0xff Function31
SetVar26 0x8021 0x1
Jump Function32
Function31:
SetVar27 0x8021 0x1
CMD_24F 0x0 0x8021 0x8022 0x0 0x8 0x0
WaitMovement
ApplyMovement 0x0 Movement1
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement2
WaitMovement
Message 0x0 0x4 0x82 0x0 0x0 0x0
WaitButton
CloseMessageKP2
StoreVar 0x8000
StoreVar 0x8001
StoreVar 0x8002
StoreVar 0x8003
StoreVar 0x8004
SetVar2A 0x8000 0x0
SetVar2A 0x8001 0x2
SetVar2A 0x8002 0x1
SetVar2A 0x8003 0x0
SetVar2A 0x8004 0x292b
CallStd 0x2927
ClearVar 0x8004
ClearVar 0x8003
ClearVar 0x8002
ClearVar 0x8001
ClearVar 0x8000
SetVarEqVal 0x40a1 0x1
SetFlag 0x2e8
SetFlag 0x2e9
WaitMoment
UnlockAll
End
Function32:
CMD_24F 0x0 0x8021 0x8022 0x0 0x8 0x0
WaitMovement
ApplyMovement 0x0 Movement1
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement2
WaitMovement
Message 0x0 0x4 0x82 0x0 0x0 0x0
WaitButton
CloseMessageKP2
StoreVar 0x8000
StoreVar 0x8001
StoreVar 0x8002
StoreVar 0x8003
StoreVar 0x8004
SetVar2A 0x8000 0x0
SetVar2A 0x8001 0x2
SetVar2A 0x8002 0x1
SetVar2A 0x8003 0x0
SetVar2A 0x8004 0x292b
CallStd 0x2927
ClearVar 0x8004
ClearVar 0x8003
ClearVar 0x8002
ClearVar 0x8001
ClearVar 0x8000
SetVarEqVal 0x40a1 0x1
SetFlag 0x2e8
SetFlag 0x2e9
WaitMoment
UnlockAll
End
Script18:
LockAll
CallRoutine 0x67
CMD_290 0x1
Message 0x0 0x4 0xe 0xfe 0x0 0x0
CloseMessageKP2
CallRoutine 0x106
WaitMoment
UnlockAll
End
Script19:
LockAll
CallRoutine 0x42
CMD_290 0x1
Message 0x0 0x4 0xf 0xfe 0x0 0x0
CloseMessageKP2
CallRoutine 0xe1
WaitMoment
UnlockAll
End
Script20:
LockAll
CallRoutine 0x1d
CMD_290 0x1
Message 0x0 0x4 0x10 0xfe 0x0 0x0
CloseMessageKP2
CallRoutine 0xbc
WaitMoment
UnlockAll
End
Script21:
LockAll
ApplyMovement 0xfe Movement0
WaitMovement
ApplyMovement 0xfe Movement9
ApplyMovement 0xff Movement5
WaitMovement
CMD_290 0x1
Message 0x0 0x4 0x11 0xfe 0x0 0x0
CloseMessageKP2
ClearFlag 0x2e9
AddNPC 0x0
StoreHeroPosition 0x8021 0x8022
SetOWPosition 0x0 0x8021 0x7 0x2d0 0x0
StoreVar 0x8000
StoreVar 0x8001
SetVar2A 0x8000 0x1
SetVar2A 0x8001 0x0
CallStd 0x2928
ClearVar 0x8001
ClearVar 0x8000
RemoveNPC 0xfe
StoreVar 0x8021
CompareTo 0x24
Condition 0x5
If 0xff Function33
CMD_24F 0x0 0x24 0x2d0 0x0 0x8 0x1
WaitMovement
ApplyMovement 0x0 Movement4
WaitMovement
SetVarEqVal 0x40a4 0x1
SetVarEqVal 0x40a1 0x2
WaitMoment
UnlockAll
End
Function33:
SetVarEqVal 0x40a4 0x1
SetVarEqVal 0x40a1 0x2
WaitMoment
UnlockAll
End
Script22:
LockAll
Message3 0x0 0x4 0x4e 0x4f 0x2 0x0 0x0
CloseMessageKP2
ApplyMovement 0x2 Movement10
ApplyMovement 0xff Movement11
WaitMovement
Message 0x0 0x4 0x50 0x2 0x0 0x0
CloseMessageKP2
ApplyMovement 0x2 Movement10
WaitMovement
StoreVar 0x8000
StoreVar 0x8001
SetVar2A 0x8000 0x162
SetVar2A 0x8001 0x1
CallStd 0xaf5
ClearVar 0x8001
ClearVar 0x8000
Message 0x0 0x4 0x51 0x2 0x0 0x0
CloseMessageKP2
ApplyMovement 0x2 Movement12
WaitMovement
Message 0x0 0x4 0x52 0x2 0x0 0x0
CloseMessageKP2
StartCameraEvent
LockCamera
MoveCamera 0x25d8 0x0 0xd000 0xe 0x8000 0x27 0xf 0x1 0xb000 0x2e2 0x18
PlaySound 0x559
ClearFlag 0x2e5
AddNPC 0x7
WaitSound
EndCameraEvent
Message 0x0 0x4 0x53 0x7 0x3 0x0
CloseMessageKP2
ApplyMovement 0x2 Movement13
ApplyMovement 0xff Movement4
WaitMovement
Message 0x0 0x4 0x54 0x2 0x5 0x0
CloseMessageKP2
ApplyMovement 0x2 Movement4
WaitMovement
Message 0x0 0x4 0x55 0x2 0x5 0x0
CloseMessageKP2
Message 0x0 0x4 0x56 0x7 0x3 0x0
CloseMessageKP2
ResetCamera 0x18 0x24f
Logic07 0x27
CMD_2E4 0x1
CompareTo 0x0
WaitMovement
EndCameraEvent
ReleaseCamera
StopCameraEvent
ApplyMovement 0x7 Movement5
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement4
WaitMovement
PlaySound 0x881
WaitSound
Message 0x0 0x4 0x57 0x7 0x0 0x0
CloseMessageKP2
Message 0x0 0x4 0x58 0x2 0x0 0x0
CloseMessageKP2
ApplyMovement 0x2 Movement2
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement1
WaitMovement
PlaySound 0x881
WaitSound
Message 0x0 0x4 0x59 0x2 0x0 0x0
CloseMessageKP2
CMD_263 0x2
CMD_263 0x3
CMD_263 0x0
PlayFanfare 0x52f
EventGreyMessage 0x5a 0x2
WaitFanfare
SetVarHero 0x0
EventGreyMessage 0x5b 0x2
CloseMessageKP2
Xtransciever4
Xtransciever7
CMD_155 0x6 0x0
FlashBlackInstant
Xtransciever7
ApplyMovement 0x2 Movement14
WaitMovement
Message 0x0 0x4 0x5c 0x2 0x0 0x0
Message 0x0 0x4 0x5d 0x2 0x0 0x0
CloseMessageKP2
ApplyMovement 0x7 Movement5
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement4
WaitMovement
Message 0x0 0x4 0x5e 0x7 0x0 0x0
CloseMessageKP2
StoreNPCPosition 0x35 0x2e4 0x1
CheckMoney 0x123 0x0
CMD_24F 0xfb 0x29 0x2e4 0x1 0x8 0x1
WaitMovement
ApplyMovement 0xfb Movement0
ReturnAfterDelay 0x8
ApplyMovement 0x7 Movement1
ReturnAfterDelay 0x8
ApplyMovement 0x2 Movement9
ApplyMovement 0xff Movement15
WaitMovement
CMD_290 0x1
Message 0x0 0x4 0x5f 0xfb 0x0 0x0
CloseMessageKP2
Message 0x0 0x4 0x60 0x7 0x0 0x0
CloseMessageKP2
ApplyMovement 0x7 Movement16
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement9
WaitMovement
PlaySound 0x559
RemoveNPC 0x7
WaitSound
ApplyMovement 0xfb Movement17
WaitMovement
Message 0x0 0x4 0x61 0xfb 0x0 0x1
CloseMessageKP
CMD_24F 0xfb 0x27 0x2e2 0x4 0x4 0x0
WaitMovement
PlaySound 0x559
RemoveNPC 0xfb
WaitSound
Message 0x0 0x4 0x62 0x2 0x0 0x0
CloseMessageKP2
ApplyMovement 0x2 Movement2
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement1
WaitMovement
Message 0x0 0x4 0x63 0x2 0x0 0x0
CloseMessageKP2
CallRoutine 0x56
WaitButton
CloseMessageKP2
SetVarEqVal 0x40a8 0x3
SetVarEqVal 0x40ab 0x1
SetVarEqVal 0x4153 0x1
SetFlag 0x2e5
SetFlag 0x6a
ClearFlag 0x408
CMD_262 0x3 0x1
ActivateRelocator 0x1
ActivateRelocator 0x2
CMD_29F 0x49
CMD_29F 0xae
CMD_29F 0xb3
CMD_29F 0xb4
CMD_29F 0xc3
CMD_29F 0xc7
CMD_29F 0xe8
CMD_29F 0xe9
WaitMoment
UnlockAll
End
Script23:
LockAll
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x5e 0x0 0x0 0x32
CloseMessageKP
WaitMoment
UnlockAll
End
Script24:
LockAll
ApplyMovement 0xff Movement2
WaitMovement
SetVarHero 0x0
CMD_290 0x1
Message 0x0 0x4 0x6c 0x0 0x1 0x0
CloseMessageKP2
CMD_24F 0x3 0x2f 0x2fb 0x1 0x8 0x0
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement5
WaitMovement
ApplyMovement 0x3 Movement4
WaitMovement
Message 0x0 0x4 0x6d 0x3 0x0 0x0
CloseMessageKP2
Message 0x0 0x4 0x6e 0x0 0x1 0x0
CloseMessageKP2
Message 0x0 0x4 0x6f 0x3 0x0 0x0
CloseMessageKP2
ApplyMovement 0xff Movement2
ApplyMovement 0x3 Movement18
Message 0x0 0x4 0x70 0x0 0x1 0x0
WaitMovement
CloseMessageKP2
ApplyMovement 0x0 Movement19
ApplyMovement 0x3 Movement20
WaitMovement
ApplyMovement 0x0 Movement21
WaitMovement
Message 0x0 0x4 0x71 0x0 0x0 0x0
CloseMessageKP2
ApplyMovement 0x0 Movement22
ApplyMovement 0x3 Movement23
WaitMovement
RemoveNPC 0x0
RemoveNPC 0x3
SetFlag 0x2e9
SetFlag 0x2e8
SetVarEqVal 0x4115 0x2
CMD_262 0x0 0xa
CMD_262 0x1 0x29
WaitMoment
UnlockAll
End
Script25:
LockAll
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x78 0x0 0x0 0x32
CloseMessageKP
WaitMoment
UnlockAll
End
Script26:
LockAll
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x79 0x0 0x0 0x32
CloseMessageKP
WaitMoment
UnlockAll
End
Script27:
LockAll
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x7a 0x0 0x0 0x32
CloseMessageKP
WaitMoment
UnlockAll
End
Script28:
LockAll
StoreNPCPosition 0x2d 0x2fb 0x3
CheckMoney 0x165 0x0
WaitMoment
UnlockAll
End
Script29:
LockAll
CMD_3E8
ApplyMovement 0xfb Movement24
WaitMovement
ReturnAfterDelay 0x2d
PlayFanfare 0x52f
WaitFanfare
ApplyMovement 0xfb Movement0
WaitMovement
ApplyMovement 0xfb Movement25
WaitMovement
Message 0x0 0x4 0x7b 0xfb 0x0 0x0
CloseMessageKP2
ReturnAfterDelay 0x1e
Message 0x0 0x4 0x7c 0xfb 0x0 0x0
CloseMessageKP2
ReturnAfterDelay 0xf
PlaySound 0x73d
ApplyMovement 0xfb Movement26
WaitMovement
WaitSound
CMD_24F 0xfb 0x2f 0x2fa 0x1 0x8 0x0
WaitMovement
CMD_127 0x8010 0x1 0x2f 0x2f9
CMD_129 0x8010 0x0
CMD_12A 0x8010
ApplyMovement 0xfb Movement3
WaitMovement
RemoveNPC 0xfb
FadeIntoBlack
CMD_21 0x11
Xtransciever7
TeleportWarp 0x1ac 0xe 0x0 0x3 0x0
WaitMoment
UnlockAll
End
Script30:
LockAll
StoreVar 0x40a8
CompareTo 0x1
Condition 0x0
If 0xff Function34
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x72 0x0 0x0 0x32
CloseMessageKP
Jump Function35
Function34:
PlaySound 0x547
FacePlayer
Message2 0x0 0x4 0x73 0x0 0x0 0x32
CloseMessageKP
WaitMoment
UnlockAll
End
Function35:
WaitMoment
UnlockAll
End
Script31:
LockAll
CMD_3F3
RemoveNPC 0x4
SetOWPosition 0xff 0x35 0x0 0x2ee 0x1
StoreVersion 0x8010
StoreVar 0x8010
CompareTo 0x17
Condition 0x1
If 0xff Function36
FadeScreen 0x1 0x10 0x0 0x2
Jump Function37
Function36:
FadeScreen 0x4 0x10 0x0 0x2
ApplyMovement 0xff Movement27
ResetScreen 0x65 0x3 0x1e
StartCameraEvent
LockCamera
MoveCamera 0x25d8 0x0 0xd000 0xe 0x9000 0x2b 0xf 0x1 0x8000 0x2fb 0x3c
EndCameraEvent
ReturnAfterDelay 0x14
ApplyMovement 0xd Movement28
WaitMovement
ReturnAfterDelay 0x1e
ApplyMovement 0xff Movement29
WaitMovement
ReturnAfterDelay 0x1e
MoveCamera 0x25d8 0x0 0xd000 0xe 0x8000 0x2f 0xf 0x1 0x8000 0x2fa 0x3c
CMD_24F 0xd 0x2e 0x2fb 0x0 0x10 0x0
ReturnAfterDelay 0x4
CMD_24F 0xff 0x2e 0x2fa 0x0 0x10 0x0
WaitMovement
EndCameraEvent
ApplyMovement 0xd Movement28
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement5
WaitMovement
ReturnAfterDelay 0x3c
CMD_24F 0xd 0x2f 0x2fa 0x0 0x10 0x0
ReturnAfterDelay 0x18
ApplyMovement 0xff Movement1
WaitMovement
ReturnAfterDelay 0x1e
ApplyMovement 0xd Movement28
WaitMovement
CMD_127 0x8010 0x1 0x2f 0x2f9
CMD_129 0x8010 0x0
CMD_12A 0x8010
ApplyMovement 0xd Movement30
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement31
WaitMovement
ApplyMovement 0xff Movement32
WaitMovement
ReturnAfterDelay 0x2d
MoveCamera 0x25d8 0x0 0xd000 0xe 0x8000 0x2f 0x500f 0xb 0x8000 0x2fa 0x64
ReturnAfterDelay 0x14
ApplyMovement 0xff Movement33
StoreVersion 0x8010
StoreVar 0x8010
CompareTo 0x17
Condition 0x1
If 0xff Function38
FadeScreen 0x1 0x0 0x10 0x4
Jump Function39
Function38:
FadeScreen 0x4 0x0 0x10 0x4
WaitMovement
CMD_129 0x8010 0x1
CMD_12A 0x8010
CMD_128 0x8010
ResetScreen 0x145 0x142 0x140
SetFlag 0x3ef
WaitMoment
UnlockAll
End
Function39:
WaitMovement
CMD_129 0x8010 0x1
CMD_12A 0x8010
CMD_128 0x8010
ResetScreen 0x145 0x142 0x140
SetFlag 0x3ef
WaitMoment
UnlockAll
End
Function37:
ApplyMovement 0xff Movement27
ResetScreen 0x65 0x3 0x1e
StartCameraEvent
LockCamera
MoveCamera 0x25d8 0x0 0xd000 0xe 0x9000 0x2b 0xf 0x1 0x8000 0x2fb 0x3c
EndCameraEvent
ReturnAfterDelay 0x14
ApplyMovement 0xd Movement28
WaitMovement
ReturnAfterDelay 0x1e
ApplyMovement 0xff Movement29
WaitMovement
ReturnAfterDelay 0x1e
MoveCamera 0x25d8 0x0 0xd000 0xe 0x8000 0x2f 0xf 0x1 0x8000 0x2fa 0x3c
CMD_24F 0xd 0x2e 0x2fb 0x0 0x10 0x0
ReturnAfterDelay 0x4
CMD_24F 0xff 0x2e 0x2fa 0x0 0x10 0x0
WaitMovement
EndCameraEvent
ApplyMovement 0xd Movement28
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement5
WaitMovement
ReturnAfterDelay 0x3c
CMD_24F 0xd 0x2f 0x2fa 0x0 0x10 0x0
ReturnAfterDelay 0x18
ApplyMovement 0xff Movement1
WaitMovement
ReturnAfterDelay 0x1e
ApplyMovement 0xd Movement28
WaitMovement
CMD_127 0x8010 0x1 0x2f 0x2f9
CMD_129 0x8010 0x0
CMD_12A 0x8010
ApplyMovement 0xd Movement30
ReturnAfterDelay 0x8
ApplyMovement 0xff Movement31
WaitMovement
ApplyMovement 0xff Movement32
WaitMovement
ReturnAfterDelay 0x2d
MoveCamera 0x25d8 0x0 0xd000 0xe 0x8000 0x2f 0x500f 0xb 0x8000 0x2fa 0x64
ReturnAfterDelay 0x14
ApplyMovement 0xff Movement33
StoreVersion 0x8010
StoreVar 0x8010
CompareTo 0x17
Condition 0x1
If 0xff Function38
FadeScreen 0x1 0x0 0x10 0x4
Jump Function39
Script32:
LockAll
StoreHeroPosition 0x8021 0x8022
CMD_24F 0x0 0x8021 0x2cc 0x0 0x8 0x0
WaitMovement
CMD_6E 0x8010
StoreVar 0x8010
CompareTo 0x3
Condition 0x1
If 0xff Function40
ApplyMovement 0xff Movement5
WaitMovement
CMD_290 0x1
Message 0x0 0x4 0x34 0x0 0x0 0x0
CloseMessageKP2
ApplyMovement 0x0 Movement0
WaitMovement
ApplyMovement 0x0 Movement3
WaitMovement
Message 0x0 0x4 0x35 0x0 0x0 0x0
CloseMessageKP2
Compare 0x8021 0x24
If 0x1 Function41
Jump Function42
Function40:
CMD_290 0x1
Message 0x0 0x4 0x34 0x0 0x0 0x0
CloseMessageKP2
ApplyMovement 0x0 Movement0
WaitMovement
ApplyMovement 0x0 Movement3
WaitMovement
Message 0x0 0x4 0x35 0x0 0x0 0x0
CloseMessageKP2
Compare 0x8021 0x24
If 0x1 Function41
Jump Function42
Function41:
SetVarEqVal 0x8021 0x25
Jump Function43
Function43:
CMD_24F 0x2 0x8021 0x2c9 0x0 0x8 0x0
WaitMovement
Message 0x0 0x4 0x36 0x2 0x1 0x0
CloseMessageKP2
ApplyMovement 0x0 Movement5
WaitMovement
ApplyMovement 0x0 Movement8
WaitMovement
ReturnAfterDelay 0x1e
CMD_24F 0x0 0x8021 0x2cb 0x0 0x8 0x0
WaitMovement
ApplyMovement 0x0 Movement4
WaitMovement
StoreHeroPosition 0x8021 0x8022
Compare 0x8021 0x24
If 0x1 Function44
Jump Function45
Function44:
ApplyMovement 0xff Movement1
Jump Function46
Function46:
WaitMovement
CMD_290 0x1
Message 0x0 0x4 0x37 0x0 0x1 0x0
CloseMessageKP2
ApplyMovement 0x2 Movement6
WaitMovement
Message 0x0 0x4 0x38 0x2 0x0 0x0
CloseMessageKP2
CMD_290 0x1
Message 0x0 0x4 0x39 0x0 0x1 0x0
CloseMessageKP2
ApplyMovement 0x2 Movement2
WaitMovement
ApplyMovement 0x2 Movement8
WaitMovement
ReturnAfterDelay 0x14
ApplyMovement 0x2 Movement5
WaitMovement
Message 0x0 0x4 0x3a 0x2 0x0 0x0
CloseMessageKP2
ApplyMovement 0x2 Movement34
WaitMovement
SetVarEqVal 0x40a1 0x5
WaitMoment
UnlockAll
End
Function45:
Compare 0x8021 0x25
If 0x1 Function47
Jump Function48
Function47:
ApplyMovement 0xff Movement2
Jump Function46
Function48:
Compare 0x8021 0x26
If 0x1 Function49
Jump Function46
Function49:
ApplyMovement 0xff Movement2
Jump Function46
Function42:
Compare 0x8021 0x25
If 0x1 Function50
Jump Function51
Function50:
SetVarEqVal 0x8021 0x24
Jump Function43
Function51:
Compare 0x8021 0x26
If 0x1 Function52
Jump Function43
Function52:
SetVarEqVal 0x8021 0x25
Jump Function43
Movement0:
Movement 0x4b 0x1
EndMovement
Movement1:
Movement 0x23 0x1
EndMovement
Movement2:
Movement 0x22 0x1
EndMovement
Movement3:
Movement 0xc 0x1
EndMovement
Movement4:
Movement 0x20 0x1
EndMovement
Movement5:
Movement 0x21 0x1
EndMovement
Movement6:
Movement 0x9f 0x1
EndMovement
Movement7:
Movement 0x64 0x1
EndMovement
Movement8:
Movement 0xa1 0x1
EndMovement
Movement9:
Movement 0x0 0x1
EndMovement
Movement10:
Movement 0xe 0x1
EndMovement
Movement11:
Movement 0xd 0x2
Movement 0x23 0x1
EndMovement
Movement12:
Movement 0x20 0x1
Movement 0x3f 0x3
Movement 0x22 0x1
EndMovement
Movement13:
Movement 0x32 0x1
EndMovement
Movement14:
Movement 0xa0 0x1
EndMovement
Movement15:
Movement 0x3 0x1
EndMovement
Movement16:
Movement 0xc 0x2
EndMovement
Movement17:
Movement 0x2a 0x4
EndMovement
Movement18:
Movement 0x3f 0x2
Movement 0xe 0x2
Movement 0x23 0x1
EndMovement
Movement19:
Movement 0xe 0x1
Movement 0xc 0x1
Movement 0x4b 0x1
EndMovement
Movement20:
Movement 0xe 0x2
Movement 0xc 0x3
Movement 0x21 0x1
EndMovement
Movement21:
Movement 0xd 0x1
Movement 0x23 0x1
EndMovement
Movement22:
Movement 0xc 0xb
EndMovement
Movement23:
Movement 0x3f 0x2
Movement 0xc 0x9
EndMovement
Movement24:
Movement 0x64 0x1
Movement 0x1 0x1
EndMovement
Movement25:
Movement 0xb7 0x1
EndMovement
Movement26:
Movement 0xba 0x1
EndMovement
Movement27:
Movement 0xd 0x2
Movement 0xe 0xa
Movement 0xd 0x2
Movement 0x9 0x2
EndMovement
Movement28:
Movement 0x1c 0x1
EndMovement
Movement29:
Movement 0xa4 0x6
EndMovement
Movement30:
Movement 0xa7 0x1
Movement 0x45 0x1
EndMovement
Movement31:
Movement 0xf 0x1
EndMovement
Movement32:
Movement 0x1d 0x1
EndMovement
Movement33:
Movement 0xa7 0x1
Movement 0x3e 0x1
Movement 0x45 0x1
EndMovement
Movement34:
Movement 0xd 0x1
EndMovement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment