- 190
- Posts
- 15
- Years
- Seen Apr 14, 2016
ive been trying to make a level script to occur right as the game starts, and i followed diegoisawesome's tutorial about level scripts but i had a problem. first here's the script
and the video showing the problem is in the attachment below
anyways, it seems to skip the msgboxes and im not sure why. while going thru the steps made by diegoisawesome, he says " In the second part[script], there should be a pointer to your script. Under it, there should be a #raw word 0x(random number). Replace the random number with 0. Compile it and test it out in the game." But when i did it the random number was already 0, im not sure if thats the cause of the problem. can someone plz help me?
Spoiler:
this is the map script after inserting and compiling
'-----------------------
#org 0x71C9F8
#raw 02
#raw pointer 0x871C9FE
#raw 00
'-----------------------
#org 0x71C9FE
#raw word 0x7530
#raw word 0x0
#raw pointer 0x8800000
#raw word 0x0
'-----------------------
#org 0x800000
setvar 0x7530 0x1
checkflag 0x9C4
if 0x1 goto 0x8800274
spriteface 0xFF 0x2
lock
msgbox 0x8800066 '"In recent news, a sudden earthquake..."
closeonkeypress
waitkeypress
msgbox 0x88000EF '" reddfrrDidn't expect thatt\nOh wel..."
fadescreen 0x1
pause 0x40
fadescreen 0x0
pause 0x20
msgbox 0x8800130 '"Nice to hear you like the new place..."
msgbox 0x8800179 '" reddfrrShould be today,\nI don't w..."
msgbox 0x88001CA '" PLAYER's namee get your shoes on\n..."
msgbox 0x8800219 '"Alright well I'll talk to you\nlate..."
applymovement MOVE_PLAYER 0x880005D
waitmovement 0x0
fanfare 0x13E
msgbox 0x8800249 '" PLAYER's namee put on the running ..."
waitfanfare
setflag 0x82F
release
end
'-----------------------
#org 0x800274
release
end
'-----------
' Movements
'-----------
#org 0x80005D
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw FE 'End of Movements
'---------
' Strings
'---------
#org 0x800066
= In recent news, a sudden earthquake\n has caused panic in town and locals\l are still wondering what\l the cause of the earthquake was.
#org 0x8000EF
= reddfrrDidn't expect thatt\nOh well\pHow did this even happen?
#org 0x800130
= Nice to hear you like the new place.\nWhen do you get your new Pokemon?
#org 0x800179
= reddfrrShould be today,\nI don't which one to get though.\pMaybe I'll get thee
#org 0x8001CA
= PLAYER's namee get your shoes on\nand come downstairs.\p You have a visitor.
#org 0x800219
= Alright well I'll talk to you\nlater then.Bye!
#org 0x800249
= PLAYER's namee put on the running shoes!
'-----------------------
#org 0x71C9F8
#raw 02
#raw pointer 0x871C9FE
#raw 00
'-----------------------
#org 0x71C9FE
#raw word 0x7530
#raw word 0x0
#raw pointer 0x8800000
#raw word 0x0
'-----------------------
#org 0x800000
setvar 0x7530 0x1
checkflag 0x9C4
if 0x1 goto 0x8800274
spriteface 0xFF 0x2
lock
msgbox 0x8800066 '"In recent news, a sudden earthquake..."
closeonkeypress
waitkeypress
msgbox 0x88000EF '" reddfrrDidn't expect thatt\nOh wel..."
fadescreen 0x1
pause 0x40
fadescreen 0x0
pause 0x20
msgbox 0x8800130 '"Nice to hear you like the new place..."
msgbox 0x8800179 '" reddfrrShould be today,\nI don't w..."
msgbox 0x88001CA '" PLAYER's namee get your shoes on\n..."
msgbox 0x8800219 '"Alright well I'll talk to you\nlate..."
applymovement MOVE_PLAYER 0x880005D
waitmovement 0x0
fanfare 0x13E
msgbox 0x8800249 '" PLAYER's namee put on the running ..."
waitfanfare
setflag 0x82F
release
end
'-----------------------
#org 0x800274
release
end
'-----------
' Movements
'-----------
#org 0x80005D
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw FE 'End of Movements
'---------
' Strings
'---------
#org 0x800066
= In recent news, a sudden earthquake\n has caused panic in town and locals\l are still wondering what\l the cause of the earthquake was.
#org 0x8000EF
= reddfrrDidn't expect thatt\nOh well\pHow did this even happen?
#org 0x800130
= Nice to hear you like the new place.\nWhen do you get your new Pokemon?
#org 0x800179
= reddfrrShould be today,\nI don't which one to get though.\pMaybe I'll get thee
#org 0x8001CA
= PLAYER's namee get your shoes on\nand come downstairs.\p You have a visitor.
#org 0x800219
= Alright well I'll talk to you\nlater then.Bye!
#org 0x800249
= PLAYER's namee put on the running shoes!
and the video showing the problem is in the attachment below
anyways, it seems to skip the msgboxes and im not sure why. while going thru the steps made by diegoisawesome, he says " In the second part[script], there should be a pointer to your script. Under it, there should be a #raw word 0x(random number). Replace the random number with 0. Compile it and test it out in the game." But when i did it the random number was already 0, im not sure if thats the cause of the problem. can someone plz help me?