View Single Post
  #2746    
Old December 25th, 2009, 11:28 AM
diegoisawesome's Avatar
diegoisawesome
Not the Script Help Thread
Community Supporter Tier 1
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 17
Gender: Male
Nature: Quirky
Quote:
Originally Posted by NarutoActor View Post
Okay well I have a level script problem (again XD level scripts give me such headaches)

The Problem is the level script with Professor Oke Letting you pick you pokemon. Right when it starts the screen just goes black and stays black. The Other level scripts work but not this one. I tried re-pointing the offsets but no go.

Spoiler:

'---------------
#org 0x71ABE0
#raw 0x3
#raw pointer 0x8720D34
#raw 0x2
#raw pointer 0x871AE80
#raw 0x2
#raw pointer 0x8168FF0
#raw 0x0

'---------------
#org 0x71AE80
#raw word 0x5001
#raw word 0x0
#raw pointer 0x871C7F2
#raw word 0x0

'---------------
#org 0x168FF0
#raw word 0x4055
#raw word 0x1
#raw pointer 0x816923E
#raw word 0x4055

'---------------
#org 0x720D34
setflag 0x2CF
compare 0x5001 0x1
if 0x1 goto 0x871DD9E
compare 0x4055 0x1
if 0x1 call 0x8168FC6
compare 0x4055 0x7
if 0x1 call 0x8168FD5
compare 0x4055 0x8
if 0x1 call 0x8168FC0
checkflag 0x247
if 0x1 call 0x8168FBC
end

'---------------
#org 0x71C7F2
lock
special 0x113
applymovement MOVE_CAMERA 0x871DA28
waitmovement 0x0
special 0x114
applymovement 0x8 0x872093E
waitmovement 0x0
msgbox 0x871CCDC MSG_NORMAL '"Wah, you scared me, haven't you\ne..."
special 0x113
applymovement MOVE_CAMERA 0x871DA35
waitmovement 0x0
special 0x114
applymovement MOVE_PLAYER 0x871DA3F
waitmovement 0x0
applymovement 0x8 0x871DA45
waitmovement 0x0
msgbox 0x871D3FC MSG_NORMAL '"Oh, your here for Professor Layton..."
applymovement 0x8 0x872093C
waitmovement 0x0
msgbox 0x871D9D4 MSG_NORMAL '"I got an idea you go look for him...."
applymovement MOVE_PLAYER 0x8720942
waitmovement 0x0
setvar 0x5001 0x0
warp 0x0 0x5 0x2 0x3C 0xA
end

'---------------
#org 0x16923E
lockall
textcolor 0x0
applymovement 0x4 0x81692B0
waitmovement 0x0
hidesprite 0x4
movesprite2 0x4 0x6 0x3
spritebehave 0x4 0x8
clearflag 0x2B
applymovement MOVE_PLAYER 0x81692B7
waitmovement 0x0
applymovement 0x8 0x81A75E9
waitmovement 0x0
clearflag 0x4001
playsong2 0x0
fadedefault
msgbox 0x818DC94 MSG_KEEPOPEN '"[rival]: Gramps!\nI'm fed up with ..."
closeonkeypress
pause 0x3C
msgbox 0x818DFBC MSG_KEEPOPEN '"OAK: [rival]?\nLet me think[.]\pOh..."
closeonkeypress
pause 0x1E
applymovement 0x8 0x81692C0
waitmovement 0x0
msgbox 0x818DCB9 MSG_KEEPOPEN '"[rival]: Hey! Gramps! No fair!\nWh..."
msgbox 0x818E0EA MSG_KEEPOPEN '"OAK: Be patient, [rival].\nYou can..."
setvar 0x4055 0x2
releaseall
end

'---------------
#org 0x71DD9E
lockall
textcolor 0x0
applymovement 0x4 0x872051E
waitmovement 0x0
hidesprite 0x4
movesprite2 0x4 0x6 0x3
spritebehave 0x4 0x8
clearflag 0x2B
applymovement MOVE_PLAYER 0x8720526
waitmovement 0x0
applymovement 0x8 0x8720530
waitmovement 0x0
clearflag 0x4001
playsong2 0x0
fadedefault
msgbox 0x871DE6F MSG_KEEPOPEN '"[rival]: Gramps!\nI'm fed up with ..."
closeonkeypress
pause 0x3C
msgbox 0x871FD9C MSG_KEEPOPEN '"OAK: [rival]?\nLet me think[.]\pOh..."
closeonkeypress
pause 0x1E
applymovement 0x8 0x8720533
waitmovement 0x0
msgbox 0x871FF10 MSG_KEEPOPEN '"[rival]: Hey! Gramps! No fair!\nWh..."
msgbox 0x87204F0 MSG_KEEPOPEN '"OAK: Be patient, [rival].\nYou can..."
setvar 0x4055 0x2
releaseall
end

'---------------
#org 0x168FC6
movesprite2 0x4 0x6 0xB
spritebehave 0x4 0x7
playsong2 0x12E
return

'---------------
#org 0x168FD5
movesprite2 0x4 0x6 0xB
spritebehave 0x4 0x7
return

'---------------
#org 0x168FC0
setvar 0x4055 0x9
return

'---------------
#org 0x168FBC
setflag 0x24F
return


'---------
' Strings
'---------
#org 0x71CCDC
= Wah, you scared me, haven't you\never herd of knocking?

#org 0x71D3FC
= Oh, your here for Professor Layton\ntoo?\pI talked with his secretary, and\nhe said that Professor Layton \ljust steped out for a short break.\pI wonder where he went.

#org 0x71D9D4
= I got an idea you go look for him.\p[green_fr]you have to get some groycers\nanyway right.

#org 0x18DC94
= [rival]: Gramps!\nI'm fed up with waiting!

#org 0x18DFBC
= OAK: [rival]?\nLet me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!

#org 0x18DCB9
= [rival]: Hey! Gramps! No fair!\nWhat about me?

#org 0x18E0EA
= OAK: Be patient, [rival].\nYou can have one, too!

#org 0x71DE6F
= [rival]: Gramps!\nI'm fed up with waiting!

#org 0x71FD9C
= OAK: [rival]?\nLet me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!

#org 0x71FF10
= [rival]: Hey! Gramps! No fair!\nWhat about me?

#org 0x7204F0
= OAK: Be patient, [rival].\nYou can have one, too!


'-----------
' Movements
'-----------
#org 0x71DA28
#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 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x72093E
#raw 0x52 'Jump in Place (Facing Down)
#raw 0xFE 'End of Movements

#org 0x71DA35
#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 0xFE 'End of Movements

#org 0x71DA3F
#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 0x71DA45
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

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

#org 0x720942
#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 0x1692B0
#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 0x1692B7
#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 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

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

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

#org 0x72051E
#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 0x720526
#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 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

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

#org 0x720533
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0xFE 'End of Movements
Most likely you've resized the map. In this case, in A-Map while the map you're having problems with is loaded, go to File>Map>Insert map and in the top row, select the same map bank and map number and insert it.
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
Reply With Quote