PHO - Pokémon Hackers Online
Go Back   PHO - Pokémon Hackers Online > Other Generations Hacking > Guides & Documentation > Questions & Answers

Questions & Answers Do you have a problem you need a straight answer for? Ask a question here and get an answer.

Reply
 
Thread Tools Display Modes
Old 10th January 2016, 05:34 PM   #1
NickGirdy55
Getting there...
 
Join Date: Aug 2014
Location: Canada
Posts: 34
NickGirdy55
Default Professor Oak script changes

So I'm planning three different hacks that connect: A modified game about Red, a hack about Blue, and then one about Leaf. It seems much easier to get the Red one out of the way because I only need to change a few things, but right off the bat, I've got a problem.

See, I want to have Leaf come into the lab after Blue gets his Pokemon and then have her battle you before you battle Blue. The thing is, I don't understand the script in the slightest. If someone could explain it, and then tell me what I need to check in the new script for it to follow, that would be swell!

Here is the walking script:
Code:
'---------------
#org 0x1655F9
lockall
setvar 0x4001 0x1
goto 0x8165605

'---------------
#org 0x165605
setvar 0x8004 0x0
setvar 0x8005 0x2
special 0x174
textcolor 0x0
pause 0x1E
playsong 0x12E 0x0
preparemsg 0x817D72C '"OAK: Hey! Wait!\nDon't go out!"
waitmsg
pause 0x55
closeonkeypress
applymovement 0xFF 0x81A75ED
waitmovement 0x0
sound 0x15
applymovement 0xFF 0x81A75DB
waitmovement 0x0
pause 0x1E
showsprite 0x3
compare 0x4001 0x0
if 0x1 call 0x81656B8
compare 0x4001 0x1
if 0x1 call 0x81656C3
pause 0x1E
msgbox 0x817D74A 0x4 '"OAK: It's unsafe!\nWild POKéMON li..."
closeonkeypress
pause 0x1E
compare 0x4001 0x0
if 0x1 call 0x81656CE
compare 0x4001 0x1
if 0x1 call 0x81656E0
setdooropened 0x10 0xD
doorchange
applymovement 0x3 0x816572E
applymovement 0xFF 0x8165758
waitmovement 0x0
setdoorclosed 0x10 0xD
doorchange
setvar 0x4055 0x1
clearflag 0x2B
setvar 0x4050 0x1
setflag 0x2C
setflag 0x4001
warp 0x4 0x3 0xFF 0x6 0xC
waitstate
releaseall
end

'---------------
#org 0x1656B8
applymovement 0x3 0x81656F2
waitmovement 0x0
return

'---------------
#org 0x1656C3
applymovement 0x3 0x81656FB
waitmovement 0x0
return

'---------------
#org 0x1656CE
applymovement 0x3 0x8165705
applymovement 0xFF 0x8165731
waitmovement 0x0
return

'---------------
#org 0x1656E0
applymovement 0x3 0x8165719
applymovement 0xFF 0x8165744
waitmovement 0x0
return


'---------
' Strings
'---------
#org 0x17D72C
= OAK: Hey! Wait!\nDon't go out!

#org 0x17D74A
= OAK: It's unsafe!\nWild POKéMON live in tall grass!\pYou need your own POKéMON for\nyour protection.\pI know!\nHere, come with me!


'-----------
' Movements
'-----------
#org 0x1A75ED
#raw 0x2D 'Face Down (Delayed)
#raw 0xFE 'End of Movements

#org 0x1A75DB
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x16572E
#raw 0x11 'Step Up (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements

#org 0x165758
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements

#org 0x1656F2
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x1656FB
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x165705
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x2E 'Face Up (Delayed)
#raw 0xFE 'End of Movements

#org 0x165731
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0xFE 'End of Movements

#org 0x165719
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x2E 'Face Up (Delayed)
#raw 0xFE 'End of Movements

#org 0x165744
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0xFE 'End of Movements
And then here is Oak's script in the lab.

Code:
'---------------
#org 0x169595
lock
faceplayer
checkflag 0x2
if 0x1 goto 0x8169600
compare 0x4055 0x9
if 0x1 goto 0x8169903
compare 0x4055 0x8
if 0x1 goto 0x8169A6E
checkflag 0x82C
if 0x1 goto 0x81699CE
compare 0x4052 0x1
if 0x1 goto 0x8169903
compare 0x4055 0x6
if 0x1 goto 0x81698D6
compare 0x4057 0x1
if 0x4 goto 0x816961E
compare 0x4055 0x4
if 0x1 goto 0x8169614
compare 0x4055 0x3
if 0x1 goto 0x816960A
msgbox 0x818E116 0x4 '"OAK: Now, [player].\pInside those ..."
release
end

'---------------
#org 0x169600
msgbox 0x81A72AD 0x4 '"Thank you, [player]!\nSincerely, t..."
release
end

'---------------
#org 0x169903
call 0x81A737B
checkflag 0x2F4
if 0x1 goto 0x8169913
release
end

'---------------
#org 0x169A6E
msgbox 0x818E871 0x4 '"POKéMON around the world wait for\..."
release
end

'---------------
#org 0x1699CE
call 0x81A737B
closeonkeypress
compare 0x8009 0x3C
if 0x0 goto 0x81699F9
checkflag 0x89B
if 0x0 goto 0x81699F9
pause 0x1E
msgbox 0x818EDF5 0x4 '"Ah, now this is excellent!\p[playe..."
goto 0x8169035

'---------------
#org 0x1698D6
setvar 0x8004 0x0
special2 0x800D 0xD4
copyvar 0x8008 0x8005
copyvar 0x8009 0x8006
buffernumber 0x0 0x8008
buffernumber 0x1 0x8009
compare 0x8009 0x1
if 0x1 goto 0x81699FB
goto 0x8169903

'---------------
#org 0x16961E
msgbox 0x818E405 0x4 '"OAK: Oh, [player]!\nHow is my old ..."
textcolor 0x3
fanfare 0x105
preparemsg 0x818E4AF '"[player] delivered OAK'S PARCEL."
waitmsg
waitfanfare
call 0x81A6675
removeitem 0x15D 0x1
msgbox 0x818E4CA 0x4 '"Ah! \nIt's the custom POKé BALL!\p..."
playsong 0x13B 0x0
msgbox 0x818DE8D 0x4 '"[rival]: Gramps!"
closeonkeypress
compare 0x800C 0x2
if 0x1 call 0x8169A82
compare 0x800C 0x1
if 0x1 call 0x8169AC1
compare 0x800C 0x4
if 0x1 call 0x8169A9E
compare 0x800C 0x3
if 0x1 call 0x8169A9E
fadedefault
msgbox 0x818DE99 0x4 '"[rival]: I almost forgot!\nWhat di..."
closeonkeypress
pause 0x1E
sound 0x15
applymovement 0x4 0x81A75DB
waitmovement 0x0
applymovement 0x4 0x81A75DD
waitmovement 0x0
compare 0x800C 0x1
if 0x1 call 0x8169ADD
compare 0x800C 0x4
if 0x1 call 0x8169B14
compare 0x800C 0x3
if 0x1 call 0x8169AF5
compare 0x800C 0x2
if 0x1 call 0x8169B86
msgbox 0x818E508 0x4 '"OAK: Oh, right!\nI have a request ..."
closeonkeypress
compare 0x800C 0x2
if 0x1 call 0x8169882
compare 0x800C 0x1
if 0x1 call 0x816988D
compare 0x800C 0x4
if 0x1 call 0x81698A6
compare 0x800C 0x3
if 0x1 call 0x81698B8
msgbox 0x818E536 0x4 '"On the desk there is my invention,..."
closeonkeypress
pause 0x28
msgbox 0x818E5C5 0x4 '"OAK: [player] and [rival].\nTake t..."
closeonkeypress
applymovement 0x4 0x81A75E9
waitmovement 0x0
hidesprite 0x9
pause 0xA
hidesprite 0xA
pause 0x19
compare 0x800C 0x2
if 0x1 call 0x8169845
compare 0x800C 0x1
if 0x1 call 0x8169850
compare 0x800C 0x4
if 0x1 call 0x816985B
compare 0x800C 0x3
if 0x1 call 0x816986D
pause 0xA
textcolor 0x3
fanfare 0x13E
preparemsg 0x818E5EA '"[player] received the POKéDEX\nfro..."
waitmsg
waitfanfare
call 0x81A6675
setflag 0x829
special 0x181
setvar 0x407C 0x1
msgbox 0x818E612 0x4 '"OAK: You can't get detailed data\n..."
additem 0x4 0x5
loadpointer 0x0 0x818E6B3 '"[player] received five POKé BALLS."
giveitem2 0x4 0x5 0x101
msgbox 0x818E6D0 0x4 '"When a wild POKéMON appears,\nit's..."
setvar 0x8004 0x0
setvar 0x8005 0x1
special 0x173
msgbox 0x818E784 0x4 '"To make a complete guide on all\nt..."
msgbox 0x818DEC8 0x4 '"[rival]: All right, Gramps!\nLeave..."
compare 0x800C 0x2
if 0x1 call 0x8169B33
compare 0x800C 0x1
if 0x1 call 0x8169B45
compare 0x800C 0x4
if 0x1 call 0x8169B57
compare 0x800C 0x3
if 0x1 call 0x8169B57
msgbox 0x818DEF3 0x4 '"[player], I hate to say it, but yo..."
closeonkeypress
playsong 0x13C 0x0
compare 0x800C 0x2
if 0x1 call 0x8169B69
compare 0x800C 0x1
if 0x1 call 0x8169B7B
compare 0x800C 0x4
if 0x1 call 0x8169B7B
compare 0x800C 0x3
if 0x1 call 0x8169B7B
hidesprite 0x8
fadedefault
setvar 0x4055 0x6
setvar 0x4057 0x2
setvar 0x4051 0x1
setvar 0x4058 0x1
setvar 0x4054 0x1
release
end

'---------------
#org 0x169614
msgbox 0x818E3AD 0x4 '"OAK: [player], raise your young\nP..."
release
end

'---------------
#org 0x16960A
msgbox 0x818E330 0x4 '"OAK: If a wild POKéMON appears,\ny..."
release
end

'---------------
#org 0x1A737B
special 0x187
compare 0x800D 0x2
if 0x1 goto 0x81A7AE0
special 0x188
checkflag 0x2F4
if 0x1 call 0x81A73A4
checkflag 0x2F4
if 0x0 call 0x81A73AD
call 0x81A73E0
return

'---------------
#org 0x169913
closeonkeypress
pause 0x28
preparemsg 0x81A7291 '"Wroooooooaaaaaarrrr!"
waitmsg
compare 0x800C 0x2
if 0x1 call 0x8169964
compare 0x800C 0x1
if 0x1 call 0x816996F
compare 0x800C 0x4
if 0x1 call 0x816997A
compare 0x800C 0x3
if 0x1 call 0x8169985
applymovement 0x4 0x81A75E1
waitmovement 0x0
closeonkeypress
pause 0x46
msgbox 0x81A72AD 0x4 '"Thank you, [player]!\nSincerely, t..."
setflag 0x2
release
end

'---------------
#org 0x1699F9
release
end

'---------------
#org 0x169035
msgbox 0x818EE60 0x4 '"Recently, there have been sighting..."
closeonkeypress
compare 0x800C 0x2
if 0x1 call 0x8169174
compare 0x800C 0x1
if 0x1 call 0x81691BB
compare 0x800C 0x4
if 0x1 call 0x8169194
compare 0x800C 0x3
if 0x1 call 0x8169194
msgbox 0x818EF59 0x4 '"[rival]: Hey, I heard that!\pGramp..."
fadedefault
msgbox 0x818F004 0x4 '"OAK: I know, I know.\nOf course I ..."
compare 0x800C 0x2
if 0x1 call 0x81691DB
compare 0x800C 0x3
if 0x1 call 0x81691E6
textcolor 0x3
msgbox 0x818F062 0x4 '"PROF. OAK took both POKéDEX\nunits..."
closeonkeypress
call 0x81A6675
compare 0x800C 0x2
if 0x1 call 0x81691F1
compare 0x800C 0x1
if 0x1 call 0x81691FC
compare 0x800C 0x4
if 0x1 call 0x8169215
compare 0x800C 0x3
if 0x1 call 0x8169227
showsprite 0x9
showsprite 0xA
pause 0x1E
msgbox 0x818F085 0x4 '"[.] [.] [.]  [.] [.] [.]\p[.] [.] ..."
closeonkeypress
hidesprite 0x9
hidesprite 0xA
pause 0x1E
compare 0x800C 0x2
if 0x1 call 0x8169845
compare 0x800C 0x1
if 0x1 call 0x8169850
compare 0x800C 0x4
if 0x1 call 0x816985B
compare 0x800C 0x3
if 0x1 call 0x816986D
textcolor 0x3
fanfare 0x13E
preparemsg 0x818F0E8 '"[player]'s POKéDEX was upgraded!"
waitmsg
waitfanfare
call 0x81A6675
special 0x16F
msgbox 0x818F103 0x4 '"Now, [player] and [rival]!\pThis t..."
msgbox 0x818F1DB 0x4 '"[rival]: Gramps, calm down.\nDon't..."
closeonkeypress
playsong 0x13C 0x0
compare 0x800C 0x2
if 0x1 call 0x8169B69
compare 0x800C 0x1
if 0x1 call 0x8169B7B
compare 0x800C 0x4
if 0x1 call 0x8169B7B
compare 0x800C 0x3
if 0x1 call 0x8169B7B
hidesprite 0x8
fadedefault
setvar 0x4055 0x8
releaseall
end

'---------------
#org 0x1699FB
special 0x187
compare 0x800D 0x2
if 0x1 goto 0x81A7AE0
special 0x188
checkflag 0x24F
if 0x1 goto 0x8169A6E
checkflag 0x247
if 0x1 goto 0x8169A78
checkitem 0x4 0x1
compare 0x800D 0x0
if 0x1 goto 0x8169A34
goto 0x8169A6E

'---------------
#org 0x1A6675
copyvar 0x8012 0x8013
return

'---------------
#org 0x169A82
movesprite2 0x8 0x5 0xA
showsprite 0x8
applymovement 0xFF 0x8169B94
applymovement 0x8 0x8169B9D
waitmovement 0x0
return

'---------------
#org 0x169AC1
movesprite2 0x8 0x6 0xA
showsprite 0x8
applymovement 0x4 0x81A75ED
applymovement 0x8 0x8169B9D
waitmovement 0x0
return

'---------------
#org 0x169A9E
movesprite2 0x8 0x6 0xA
showsprite 0x8
applymovement 0x4 0x81A75ED
applymovement 0xFF 0x8169B91
applymovement 0x8 0x8169B9D
waitmovement 0x0
return

'---------------
#org 0x169ADD
applymovement 0x4 0x81A75E1
waitmovement 0x0
pause 0xF
applymovement 0x4 0x81A75ED
waitmovement 0x0
return

'---------------
#org 0x169B14
applymovement 0x4 0x81A75E1
waitmovement 0x0
pause 0xF
applymovement 0xFF 0x81A75EB
applymovement 0x4 0x81A75ED
waitmovement 0x0
return

'---------------
#org 0x169AF5
applymovement 0x4 0x81A75E1
waitmovement 0x0
pause 0xF
applymovement 0xFF 0x81A75E7
applymovement 0x4 0x81A75ED
waitmovement 0x0
return

'---------------
#org 0x169B86
applymovement 0xFF 0x81A75E9
waitmovement 0x0
return

'---------------
#org 0x169882
applymovement 0x4 0x81698CB
waitmovement 0x0
return

'---------------
#org 0x16988D
applymovement 0x4 0x81698D0
applymovement 0xFF 0x81698C7
applymovement 0x8 0x81698C7
waitmovement 0x4
return

'---------------
#org 0x1698A6
applymovement 0x4 0x81698CB
applymovement 0xFF 0x81698C3
waitmovement 0x4
return

'---------------
#org 0x1698B8
applymovement 0x4 0x81698CB
waitmovement 0x0
return

'---------------
#org 0x169845
applymovement 0x4 0x816987C
waitmovement 0x0
return

'---------------
#org 0x169850
applymovement 0x4 0x816987F
waitmovement 0x0
return

'---------------
#org 0x16985B
applymovement 0x4 0x816987C
applymovement 0xFF 0x8169878
waitmovement 0x0
return

'---------------
#org 0x16986D
applymovement 0x4 0x816987C
waitmovement 0x0
return

'---------------
#org 0x169B33
applymovement 0x8 0x81A75E1
applymovement 0xFF 0x81A75E7
waitmovement 0x0
return

'---------------
#org 0x169B45
applymovement 0x8 0x81A75E9
applymovement 0xFF 0x81A75ED
waitmovement 0x0
return

'---------------
#org 0x169B57
applymovement 0x8 0x81A75E1
applymovement 0xFF 0x81A75ED
waitmovement 0x0
return

'---------------
#org 0x169B69
applymovement 0xFF 0x8169B91
applymovement 0x8 0x8169BA4
waitmovement 0x0
return

'---------------
#org 0x169B7B
applymovement 0x8 0x8169BA4
waitmovement 0x0
return

'---------------
#org 0x1A7AE0
release
end

'---------------
#org 0x1A73A4
msgbox 0x81A72F2 0x4 '"OAK: Ah, welcome!\pTell me, how is..."
return

'---------------
#org 0x1A73AD
msgbox 0x81A6C51 0x4 '"OAK: Good to see you!\nHow is your..."
return

'---------------
#org 0x1A73E0
setvar 0x8004 0x1F
special 0x17E
special 0x17D
setvar 0x8004 0x0
special2 0x800D 0xD4
copyvar 0x8008 0x8005
copyvar 0x8009 0x8006
copyvar 0x800A 0x800D
buffernumber 0x0 0x8008
buffernumber 0x1 0x8009
msgbox 0x81A6CA3 0x4 '"The amount of progress you've made..."
checkflag 0x2FF
if 0x0 call 0x81A746D
call 0x81A73B6
compare 0x800A 0x0
if 0x1 goto 0x81A748F
setvar 0x8004 0x1
special2 0x800D 0xD4
copyvar 0x8008 0x8005
copyvar 0x8009 0x8006
buffernumber 0x0 0x8008
buffernumber 0x1 0x8009
msgbox 0x81A71AA 0x4 '"And your NATIONAL POKéDEX is:\p[bu..."
special2 0x800D 0x1B0
compare 0x800D 0x0
if 0x1 goto 0x81A7470
compare 0x800D 0x1
if 0x1 goto 0x81A747E
end

'---------------
#org 0x169964
applymovement 0x4 0x8169990
waitmovement 0x0
return

'---------------
#org 0x16996F
applymovement 0x4 0x8169997
waitmovement 0x0
return

'---------------
#org 0x16997A
applymovement 0x4 0x816999E
waitmovement 0x0
return

'---------------
#org 0x169985
applymovement 0x4 0x81699A5
waitmovement 0x0
return

'---------------
#org 0x169174
movesprite2 0x8 0x5 0xA
showsprite 0x8
playsong 0x13B 0x0
applymovement 0xFF 0x8169B94
applymovement 0x8 0x8169B9D
waitmovement 0x0
return

'---------------
#org 0x1691BB
movesprite2 0x8 0x6 0xA
showsprite 0x8
playsong 0x13B 0x0
applymovement 0x4 0x81A75ED
applymovement 0x8 0x8169B9D
waitmovement 0x0
return

'---------------
#org 0x169194
movesprite2 0x8 0x6 0xA
showsprite 0x8
playsong 0x13B 0x0
applymovement 0x4 0x81A75ED
applymovement 0xFF 0x8169B91
applymovement 0x8 0x8169B9D
waitmovement 0x0
return

'---------------
#org 0x1691DB
applymovement 0xFF 0x81A75E9
waitmovement 0x0
return

'---------------
#org 0x1691E6
applymovement 0xFF 0x81A75E7
waitmovement 0x0
return

'---------------
#org 0x1691F1
applymovement 0x4 0x8169232
waitmovement 0x0
return

'---------------
#org 0x1691FC
applymovement 0x4 0x8169238
applymovement 0xFF 0x81698C7
applymovement 0x8 0x81698C7
waitmovement 0x4
return

'---------------
#org 0x169215
applymovement 0x4 0x8169232
applymovement 0xFF 0x81698C3
waitmovement 0x4
return

'---------------
#org 0x169227
applymovement 0x4 0x8169232
waitmovement 0x0
return

'---------------
#org 0x169A78
msgbox 0x818E98E 0x4 '"OAK: Come see me sometime.\pAfter ..."
release
end

'---------------
#org 0x169A34
compare 0x4054 0x2
if 0x4 goto 0x8169A45
goto 0x8169A6E

'---------------
#org 0x1A746D
textcolor 0x0
return

'---------------
#org 0x1A73B6
copyvar 0x8004 0x8009
special 0xD5
waitmsg
compare 0x800D 0x0
if 0x1 call 0x81A73D8
compare 0x800D 0x1
if 0x1 call 0x81A73DC
waitfanfare
waitkeypress
return

'---------------
#org 0x1A748F
special 0x17F
return

'---------------
#org 0x1A7470
msgbox 0x81A71EE 0x4 '"I'll be looking forward to seeing\..."
goto 0x81A748F

'---------------
#org 0x1A747E
setflag 0x2F4
msgbox 0x81A722F 0x4 '"Finally[.]\pYou've finally complet..."
goto 0x81A748F

'---------------
#org 0x169A45
msgbox 0x818E89C 0x4 '"Ah, [player]!\nHow is your POKéDEX..."
additem 0x4 0x5
loadpointer 0x0 0x818E6B3 '"[player] received five POKé BALLS."
giveitem2 0x4 0x5 0x101
setflag 0x247
release
end

'---------------
#org 0x1A73D8
fanfare 0x13D
return

'---------------
#org 0x1A73DC
fanfare 0x103
return


'---------
' Strings
'---------
#org 0x18E116
= OAK: Now, [player].\pInside those three POKé BALLS are\nPOKéMON.\pWhich one will you choose for\nyourself?

#org 0x1A72AD
= Thank you, [player]!\nSincerely, thank you!\lYou've made my dream a reality!

#org 0x18E871
= POKéMON around the world wait for\nyou, [player]!

#org 0x18EDF5
= Ah, now this is excellent!\p[player], I have another important\nfavor to ask of you.\pI need you to listen closely.

#org 0x18E405
= OAK: Oh, [player]!\nHow is my old POKéMON?\pWell, it seems to be growing more\nattached to you.\pYou must be talented as a POKéMON\nTRAINER.\pWhat's that?\nYou have something for me?

#org 0x18E4AF
= [player] delivered OAK'S PARCEL.

#org 0x18E4CA
= Ah! \nIt's the custom POKé BALL!\pI had it on order.\nThank you!

#org 0x18DE8D
= [rival]: Gramps!

#org 0x18DE99
= [rival]: I almost forgot!\nWhat did you call me for?

#org 0x18E508
= OAK: Oh, right!\nI have a request for you two.

#org 0x18E536
= On the desk there is my invention,\nthe POKéDEX!\pIt automatically records data on\nPOKéMON you've seen or caught.\pIt's a high-tech encyclopedia!

#org 0x18E5C5
= OAK: [player] and [rival].\nTake these with you.

#org 0x18E5EA
= [player] received the POKéDEX\nfrom PROF. OAK.

#org 0x18E612
= OAK: You can't get detailed data\non POKéMON by just seeing them.\pYou must catch them to obtain\ncomplete data.\pSo, here are some tools for\ncatching wild POKéMON.

#org 0x18E6B3
= [player] received five POKé BALLS.

#org 0x18E6D0
= When a wild POKéMON appears,\nit's fair game.\pJust throw a POKé BALL at it and\ntry to catch it!\pThis won't always work, however.\pA healthy POKéMON can escape.\nYou have to be lucky!

#org 0x18E784
= To make a complete guide on all\nthe POKéMON in the world[.]\pThat was my dream!\pBut, I'm too old.\nI can't get the job done.\pSo, I want you two to fulfill my\ndream for me.\pGet moving, you two.\pThis is a great undertaking in\nPOKéMON history!

#org 0x18DEC8
= [rival]: All right, Gramps!\nLeave it all to me!

#org 0x18DEF3
= [player], I hate to say it, but you\nwon't be necessary for this.\pI know! I'll borrow a TOWN MAP\nfrom my sis!\pI'll tell her not to lend you one,\n[player]! Hahaha!\pDon't bother coming around to\nmy place after this!

#org 0x18E3AD
= OAK: [player], raise your young\nPOKéMON by making it battle.\pIt has to battle for it to grow.

#org 0x18E330
= OAK: If a wild POKéMON appears,\nyour POKéMON can battle it.\pWith it at your side, you should be\nable to reach the next town.

#org 0x1A7291
= Wroooooooaaaaaarrrr!

#org 0x18EE60
= Recently, there have been sightings\nof many rare POKéMON species.\pI'm talking about POKéMON that\nhave never been seen in KANTO.\pI would love to go see things for\nmyself, but I'm much too old.\pSince I can't do it, [player], I'd\nlike you to go in my place.

#org 0x18EF59
= [rival]: Hey, I heard that!\pGramps, what's with favoring\n[player] over me all the time?\pI went and collected more POKéMON,\nand faster, too.\pYou should just let me handle\neverything.

#org 0x18F004
= OAK: I know, I know.\nOf course I need your help, too.\pNow, I need to see both your\nPOKéDEXES.

#org 0x18F062
= PROF. OAK took both POKéDEX\nunits.

#org 0x18F085
= [.] [.] [.]  [.] [.] [.]\p[.] [.] [.]  [.] [.] [.]\p[.]And that's done!\pNow these units can record data on\na lot more POKéMON.

#org 0x18F0E8
= [player]'s POKéDEX was upgraded!

#org 0x18F103
= Now, [player] and [rival]!\pThis time, you really must work\ntowards filling your POKéDEXES.\pI urge you to make them the best\nand the most complete of all time!\pTruly, this is a monumentally great\nundertaking in POKéMON history!

#org 0x18F1DB
= [rival]: Gramps, calm down.\nDon't get so excited.\pI'll get the POKéDEX completed,\ndon't you worry about a thing.\pI think I'll try looking around\nONE ISLAND first[.]\pAnyways, I'm outta here!

#org 0x1A72F2
= OAK: Ah, welcome!\pTell me, how is your POKéDEX\ncoming along?\pWahaha!\pActually, I know how it is, but I\nlove seeing it anyway!\pLet's see[.]

#org 0x1A6C51
= OAK: Good to see you!\nHow is your POKéDEX coming along?\pHere, let me take a look.

#org 0x1A6CA3
= The amount of progress you've made\non your POKéDEX is:\p[buffer1] POKéMON seen and\n[buffer2] POKéMON owned.\p\c\h06ÁPROF. OAK's rating:

#org 0x1A71AA
= And your NATIONAL POKéDEX is:\p[buffer1] POKéMON seen and\n[buffer2] POKéMON owned.

#org 0x18E98E
= OAK: Come see me sometime.\pAfter all, I want to know how your\nPOKéDEX is coming along.

#org 0x1A71EE
= I'll be looking forward to seeing\nyou fill the NATIONAL POKéDEX!

#org 0x1A722F
= Finally[.]\pYou've finally completed the\nPOKéDEX!\pIt's magnificent!\nTruly, this is a fantastic feat!

#org 0x18E89C
= Ah, [player]!\nHow is your POKéDEX shaping up?\p[rival] has already caught some\nPOKéMON and added to the data.\pSo, [player], let's have a look at\nyour POKéDEX.\p[.]What's the matter?\nYou've added no new data at all.\pI'll give you these, so do try a\nlittle harder.


'-----------
' Movements
'-----------
#org 0x1A75DB
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x1A75DD
#raw 0x1C 'Delay5
#raw 0x1C 'Delay5
#raw 0x1C 'Delay5
#raw 0xFE 'End of Movements

#org 0x1A75E9
#raw 0x2E 'Face Up (Delayed)
#raw 0xFE 'End of Movements

#org 0x1A75E1
#raw 0x4A 'Face Player
#raw 0xFE 'End of Movements

#org 0x169B94
#raw 0x2D 'Face Down (Delayed)
#raw 0x1C 'Delay5
#raw 0x1C 'Delay5
#raw 0x1C 'Delay5
#raw 0x1C 'Delay5
#raw 0x1C 'Delay5
#raw 0x1B 'Delay4
#raw 0x2F 'Face Left (Delayed)
#raw 0xFE 'End of Movements

#org 0x169B9D
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x1A75ED
#raw 0x2D 'Face Down (Delayed)
#raw 0xFE 'End of Movements

#org 0x169B91
#raw 0x1A 'Delay3
#raw 0x2D 'Face Down (Delayed)
#raw 0xFE 'End of Movements

#org 0x1A75EB
#raw 0x30 'Face Right (Delayed)
#raw 0xFE 'End of Movements

#org 0x1A75E7
#raw 0x2F 'Face Left (Delayed)
#raw 0xFE 'End of Movements

#org 0x1698CB
#raw 0x11 'Step Up (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x1C 'Delay5
#raw 0x2D 'Face Down (Delayed)
#raw 0xFE 'End of Movements

#org 0x1698D0
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x1C 'Delay5
#raw 0x30 'Face Right (Delayed)
#raw 0xFE 'End of Movements

#org 0x1698C7
#raw 0x1C 'Delay5
#raw 0x1B 'Delay4
#raw 0x2F 'Face Left (Delayed)
#raw 0xFE 'End of Movements

#org 0x1698C3
#raw 0x1C 'Delay5
#raw 0x1B 'Delay4
#raw 0x2E 'Face Up (Delayed)
#raw 0xFE 'End of Movements

#org 0x16987C
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x16987F
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0xFE 'End of Movements

#org 0x169878
#raw 0x1C 'Delay5
#raw 0x1B 'Delay4
#raw 0x30 'Face Right (Delayed)
#raw 0xFE 'End of Movements

#org 0x169BA4
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x169990
#raw 0x25 'Step on the Spot Down (Faster)
#raw 0x29 'Step on the Spot Down (Fastest)
#raw 0x25 'Step on the Spot Down (Faster)
#raw 0x25 'Step on the Spot Down (Faster)
#raw 0x29 'Step on the Spot Down (Fastest)
#raw 0x25 'Step on the Spot Down (Faster)
#raw 0xFE 'End of Movements

#org 0x169997
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0x2A 'Step on the Spot Up (Fastest)
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0x2A 'Step on the Spot Up (Fastest)
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0xFE 'End of Movements

#org 0x16999E
#raw 0x27 'Step on the Spot Left (Faster)
#raw 0x2B 'Step on the Spot Left (Fastest)
#raw 0x27 'Step on the Spot Left (Faster)
#raw 0x27 'Step on the Spot Left (Faster)
#raw 0x2B 'Step on the Spot Left (Fastest)
#raw 0x27 'Step on the Spot Left (Faster)
#raw 0xFE 'End of Movements

#org 0x1699A5
#raw 0x28 'Step on the Spot Right (Faster)
#raw 0x2C 'Step on the Spot Right (Fastest)
#raw 0x28 'Step on the Spot Right (Faster)
#raw 0x28 'Step on the Spot Right (Faster)
#raw 0x2C 'Step on the Spot Right (Fastest)
#raw 0x28 'Step on the Spot Right (Faster)
#raw 0xFE 'End of Movements

#org 0x169232
#raw 0x11 'Step Up (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x2E 'Face Up (Delayed)
#raw 0x1C 'Delay5
#raw 0x1A 'Delay3
#raw 0xFE 'End of Movements

#org 0x169238
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x1C 'Delay5
#raw 0x1A 'Delay3
#raw 0xFE 'End of Movements
And here is Blue's script:

Code:
'---------------
#org 0x16955F
lock
faceplayer
compare 0x4055 0x3
if 0x1 goto 0x816958B
compare 0x4055 0x2
if 0x1 goto 0x8169581
msgbox 0x818DC67 0x4 '"[rival]: What, it's only [player]?..."
release
end

'---------------
#org 0x16958B
msgbox 0x818DD75 0x4 '"[rival]: My POKéMON looks a lot\nt..."
release
end

'---------------
#org 0x169581
msgbox 0x818DCE2 0x4 '"[rival]: Heh, I don't need to be\n..."
release
end


'---------
' Strings
'---------
#org 0x18DC67
= [rival]: What, it's only [player]?\nGramps isn't around.

#org 0x18DD75
= [rival]: My POKéMON looks a lot\ntougher than yours.

#org 0x18DCE2
= [rival]: Heh, I don't need to be\ngreedy like you. I'm mature!\pGo ahead and choose, [player]!
If you need anything else, just say so and I'll paste it in!

So yeah, please and thank you, give me a hand, and I'll appreciate it greatly!
NickGirdy55 is offline   Reply With Quote
Sponsored Links
Old 13th January 2016, 09:06 PM   #2
Elsa
Let it go!
PHO VIP
 
Elsa's Avatar
 
Join Date: Apr 2010
Location: United States
Age: 20
Posts: 384
Elsa
Default

These scripts have already been compiled so they are harder to read than normal XSE scripts that you would write yourself. Also, scripts like these use Level Scripts so when you enter Oak's lab, the script is able to continue. I would recommend you read Diego's tutorial here on XSE so you can start to dissect what this script is doing...

http://www.pokemonhackersonline.com/...ighlight=diego

The tutorial will be able to teach you the basics of XSE, along with all the complex stuff (including Level Scripts which are towards the bottom). I would recommend that you read the tutorial and learn how to write your own level scripts so you won't be stuck trying to understand that script above. I think that's everything...Good luck and I wish you tons of success with your hack
__________________

- - - - - - - Elsa - - - - - - -
Twitter | YouTube | Steam | Twitch
- - - - - - - - - - - - - - - - -

Last edited by Elsa; 13th January 2016 at 09:09 PM.
Elsa is offline   Reply With Quote
Old 15th January 2016, 02:32 AM   #3
NickGirdy55
Getting there...
 
Join Date: Aug 2014
Location: Canada
Posts: 34
NickGirdy55
Default

Quote:
Originally Posted by Elsa View Post
These scripts have already been compiled so they are harder to read than normal XSE scripts that you would write yourself. Also, scripts like these use Level Scripts so when you enter Oak's lab, the script is able to continue. I would recommend you read Diego's tutorial here on XSE so you can start to dissect what this script is doing...

http://www.pokemonhackersonline.com/...ighlight=diego

The tutorial will be able to teach you the basics of XSE, along with all the complex stuff (including Level Scripts which are towards the bottom). I would recommend that you read the tutorial and learn how to write your own level scripts so you won't be stuck trying to understand that script above. I think that's everything...Good luck and I wish you tons of success with your hack
Level scripts will allow me to continue the script I need, correct? That's what you're saying? I hope this stuff works because it's a pain in the backside figuring this crap out. This may be one of the only things that gives me trouble

And by the way, I avoided saying words in place of stuff and backside because I know that the uptight moderators will whine about, but I seriously hope they don't think crap is a swear word. If they do, they need to grow up.

Anyways, thank you a lot, and I will check out the link until you reply.

And also thanks for wishing me luck!

Last edited by NickGirdy55; 15th January 2016 at 02:36 AM.
NickGirdy55 is offline   Reply With Quote
Old 15th January 2016, 02:38 AM   #4
NickGirdy55
Getting there...
 
Join Date: Aug 2014
Location: Canada
Posts: 34
NickGirdy55
Default

Quote:
Originally Posted by Elsa View Post
These scripts have already been compiled so they are harder to read than normal XSE scripts that you would write yourself. Also, scripts like these use Level Scripts so when you enter Oak's lab, the script is able to continue. I would recommend you read Diego's tutorial here on XSE so you can start to dissect what this script is doing...

http://www.pokemonhackersonline.com/...ighlight=diego

The tutorial will be able to teach you the basics of XSE, along with all the complex stuff (including Level Scripts which are towards the bottom). I would recommend that you read the tutorial and learn how to write your own level scripts so you won't be stuck trying to understand that script above. I think that's everything...Good luck and I wish you tons of success with your hack
Well, I went to it, searched for it, it said it would happen towards the bottom like you said, and there must not be a title for it!

Edit: Never mind, I found it on Pokecommunity because someone else was having problems with them I guess a long time ago and Diego linked the section!
NickGirdy55 is offline   Reply With Quote
Old 15th January 2016, 09:23 PM   #5
Elsa
Let it go!
PHO VIP
 
Elsa's Avatar
 
Join Date: Apr 2010
Location: United States
Age: 20
Posts: 384
Elsa
Default

Level scripts should allow you to continue the script, yes. They are hard to understand though and they are something that I don't even fully understand.

And crap is not a swear word xD

I'm glad you found what you were looking for. I hope you figure this out and get the script working
__________________

- - - - - - - Elsa - - - - - - -
Twitter | YouTube | Steam | Twitch
- - - - - - - - - - - - - - - - -
Elsa is offline   Reply With Quote
Old 16th January 2016, 12:07 AM   #6
NickGirdy55
Getting there...
 
Join Date: Aug 2014
Location: Canada
Posts: 34
NickGirdy55
Default

Quote:
Originally Posted by Elsa View Post
Level scripts should allow you to continue the script, yes. They are hard to understand though and they are something that I don't even fully understand.

And crap is not a swear word xD

I'm glad you found what you were looking for. I hope you figure this out and get the script working
Will this need to call a previous script or will it just work? Also, the tutorial said to delete a bunch of crap on a map, but I don't really feel like messing with my game, sooooooooooooooooooooo
NickGirdy55 is offline   Reply With Quote
Reply

Tags
oak, professor, script

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:54 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc. User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).
Green Charizard Christos TreeckoLv100

"Black 2" by ARTPOP. Kyurem artwork by XOUS.

no new posts