Thread: [Tutorial] Creating Level Scripts
View Single Post
  #48    
Old July 4th, 2011 (7:01 AM).
[I]-Hac*ker.'s Avatar
[I]-Hac*ker. [I]-Hac*ker. is offline
Touko Fan <3
 
Join Date: Jun 2011
Location: The Netherlands
Age: 20
Gender: Male
Posts: 36

Sorry for the late reply. Here is the script.

Spoiler:
Code:
'-----------------------
#org 0x71B598
#raw 02
#raw pointer 0x871B658
#raw 02
#raw pointer 0x871B5A3
#raw 00

'----------------------- #org 0x71B658 #raw word 0x7001 #raw word 0x0 #raw pointer 0x880EEEF #raw word 0x0

'----------------------- #org 0x71B5A3 #raw word 0x7001 #raw word 0x1 #raw pointer 0x880EEEF #raw word 0x0

'----------------------- #org 0x80EEEF compare 0x7001 0x0 if 0x1 goto 0x880EF08 compare 0x7001 0x1 if 0x1 goto 0x880F05B release end

'----------------------- #org 0x80EF08 setvar 0x7001 0x1 checkflag 0x828 if 0x0 goto 0x880EF19 release end

'----------------------- #org 0x80F05B setvar 0x7001 0x2 checkflag 0x8C6 if 0x0 goto 0x880F5DF checkflag 0x8C8 if 0x0 goto 0x880F0CE checkflag 0x8CA if 0x1 goto 0x880F07E release end

'----------------------- #org 0x80EF19 lockall applymovement MOVE_PLAYER 0x880F053 waitmovement 0x0 msgbox 0x880F033 '"Prof. Cypress: Hey!\n[player]! Wait..." callstd 0x6 applymovement 0x3 0x880F02A waitmovement 0x0 msgbox 0x880EFD6 '"Prof. Cypress: Ah, [player].\nI've ..." callstd 0x6 setdooropened 0x14 0x17 playsong 0x13E 0x0 applymovement 0x3 0x880EFB5 applymovement MOVE_PLAYER 0x880EF94 waitmovement 0x0 doorchange applymovement 0x3 0x880EF91 waitmovement 0x0 setdoorclosed 0x14 0x17 doorchange setdooropened 0x14 0x17 doorchange applymovement MOVE_PLAYER 0x880EF8D waitmovement 0x0 fadesong 0x12C warp 0x4 0x3 0xFF 0x6 0xC setdoorclosed 0x14 0x17 doorchange release end

'----------------------- #org 0x80F5DF showsprite 0x4 clearflag 0x8C7 lockall applymovement MOVE_PLAYER 0x880F7A4 waitmovement 0x0 applymovement 0x4 0x880F770 msgbox 0x880F782 '"[rival]: Psh. Try to tell me how to..." callstd 0x6 waitmovement 0x0 compare 0x7005 0x1 if 0x1 goto 0x880F63D compare 0x7005 0x2 if 0x1 goto 0x880F62C setflag 0x8C6 trainerbattle 0x0 0x2 0x0 0x880F69B 0x880F691 release end

'----------------------- #org 0x80F0CE setflag 0x8C8 lock faceplayer msgbox 0x880F65A '"[rival]: Ugh! That didn't\nhelp at ..." callstd 0x6 applymovement 0x4 0x880F64E waitmovement 0x0 hidesprite 0x4 setflag 0x8C7 showsprite 0x3 clearflag 0x8C3 showsprite 0x4 clearflag 0x8C9 applymovement 0x3 0x880F58A pause 0x50 applymovement 0x5 0x880F59D msgbox 0x880F5B4 '"???: [rival], wait!\nYou forgot you..." callstd 0x6 waitmovement 0x0 msgbox 0x880F4E2 '"Prof. Cypress: Is everything okay?\..." callstd 0x6 applymovement 0x5 0x880F4DF applymovement 0x3 0x880F4D4 waitmovement 0x0 msgbox 0x880F4A2 '"Prof. Cypress: [player]!\nCome over..." callstd 0x6 applymovement MOVE_PLAYER 0x880F49D waitmovement 0x0 msgbox 0x880F404 '"[rival]'s Mom: Oh, hello, [player]...." callstd 0x6 msgbox 0x880F3D6 '"[rival]'s Mom: Really? Would you do..." callstd 0x5 compare LASTRESULT 0x1 if 0x0 goto 0x880F1A3 msgbox 0x880F35A '"[rival]'s Mom: Oh, thank you so\nmu..." callstd 0x6 giveitem 0x169 0x1 0x0 msgbox 0x880F297 '"[rival]'s Mom: You need that to\nge..." callstd 0x6 applymovement 0x3 0x880F28D waitmovement 0x0 hidesprite 0x3 setflag 0x8C3 msgbox 0x880F20B '"[rival]'s Mom: Good luck and\ngoodb..." callstd 0x6 setflag 0x8CA applymovement 0x5 0x880F200 waitmovement 0x0 hidesprite 0x5 setflag 0x8C9 release end

'----------------------- #org 0x80F07E lock msgbox 0x880F097 '"Remember what [rival]'s Mom said,\n..." callstd 0x6 applymovement MOVE_PLAYER 0x880F094 waitmovement 0x0 release end

'----------------------- #org 0x80F63D trainerbattle 0x0 0x2 0x0 0x880F69B 0x880F691 release end

'----------------------- #org 0x80F62C trainerbattle 0x0 0x2 0x0 0x880F69B 0x880F691 release end

'----------------------- #org 0x80F1A3 msgbox 0x880F38F '"[rival]'s Mom: Are you sure?\nYou c..." callstd 0x5 compare LASTRESULT 0x1 if 0x0 goto 0x880F1A3 msgbox 0x880F35A '"[rival]'s Mom: Oh, thank you so\nmu..." callstd 0x6 giveitem 0x169 0x2 0x0 msgbox 0x880F297 '"[rival]'s Mom: You need that to\nge..." callstd 0x6 applymovement 0x3 0x880F28D waitmovement 0x0 hidesprite 0x3 setflag 0x8C3 msgbox 0x880F20B '"[rival]'s Mom: Good luck and\ngoodb..." callstd 0x6 setflag 0x8CA applymovement 0x5 0x880F200 waitmovement 0x0 hidesprite 0x5 setflag 0x8C9 release end

'----------- ' Movements '----------- #org 0x80F053 #raw 62 'Exclamation Mark (!) #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw FE 'End of Movements

#org 0x80F02A #raw 11 'Step Up (Normal) #raw 11 'Step Up (Normal) #raw 11 'Step Up (Normal) #raw 12 'Step Left (Normal) #raw 12 'Step Left (Normal) #raw 11 'Step Up (Normal) #raw 11 'Step Up (Normal) #raw FE 'End of Movements

#org 0x80EFB5 #raw 10 'Step Down (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 10 'Step Down (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 12 'Step Left (Normal) #raw 12 'Step Left (Normal) #raw 12 'Step Left (Normal) #raw 12 'Step Left (Normal) #raw FE 'End of Movements

#org 0x80EF94 #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 10 'Step Down (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 12 'Step Left (Normal) #raw 12 'Step Left (Normal) #raw 12 'Step Left (Normal) #raw FE 'End of Movements

#org 0x80EF91 #raw 11 'Step Up (Normal) #raw FE 'End of Movements

#org 0x80EF8D #raw 12 'Step Left (Normal) #raw 11 'Step Up (Normal) #raw FE 'End of Movements

#org 0x80F7A4 #raw 62 'Exclamation Mark (!) #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 2 'Face Left #raw FE 'End of Movements

#org 0x80F770 #raw 20 'Step Right (Fast) #raw 20 'Step Right (Fast) #raw 20 'Step Right (Fast) #raw 20 'Step Right (Fast) #raw 20 'Step Right (Fast) #raw 20 'Step Right (Fast) #raw 20 'Step Right (Fast) #raw 55 'Jump in Place (Facing Right) #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 62 'Exclamation Mark (!) #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw FE 'End of Movements

#org 0x80F64E #raw 1D 'Step Down (Fast) #raw 20 'Step Right (Fast) #raw 20 'Step Right (Fast) #raw 20 'Step Right (Fast) #raw 20 'Step Right (Fast) #raw 20 'Step Right (Fast) #raw 20 'Step Right (Fast) #raw 20 'Step Right (Fast) #raw 20 'Step Right (Fast) #raw 20 'Step Right (Fast) #raw FE 'End of Movements

#org 0x80F58A #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 1 'Face Up #raw FE 'End of Movements

#org 0x80F59D #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 0 'Face Down #raw FE 'End of Movements

#org 0x80F4DF #raw 3 'Face Right #raw FE 'End of Movements

#org 0x80F4D4 #raw 3 'Face Right #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 62 'Exclamation Mark (!) #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw 1C 'Delay5 #raw FE 'End of Movements

#org 0x80F49D #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw 13 'Step Right (Normal) #raw FE 'End of Movements

#org 0x80F28D #raw 12 'Step Left (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw 10 'Step Down (Normal) #raw FE 'End of Movements

#org 0x80F200 #raw 11 'Step Up (Normal) #raw 11 'Step Up (Normal) #raw 12 'Step Left (Normal) #raw 12 'Step Left (Normal) #raw 12 'Step Left (Normal) #raw 12 'Step Left (Normal) #raw 12 'Step Left (Normal) #raw 12 'Step Left (Normal) #raw 12 'Step Left (Normal) #raw FE 'End of Movements

#org 0x80F094 #raw 12 'Step Left (Normal) #raw FE 'End of Movements

'--------- ' Strings '--------- #org 0x80F033 = -

#org 0x80EFD6 = -

#org 0x80F782 = -

#org 0x80F69B = -

#org 0x80F691 = -

#org 0x80F65A = -

#org 0x80F5B4 = -

#org 0x80F4E2 = -

#org 0x80F4A2 = -

#org 0x80F404 = -

#org 0x80F3D6 = -

#org 0x80F35A = -

#org 0x80F297 = --

#org 0x80F20B = ---

#org 0x80F097 = -

#org 0x80F38F = --

The Map Script Offset : $0071B598

I wasn't quite sure about what I was doing. I made 2 '[2]Validates value...' in the header view, both for the flag 7001, one for 0000 and the other for 0001. Sounded right to me

Thanks for helping, Metapod23!!

__________________





Quote originally posted by [I]-Hac*ker.:
You know you're a computer nerd, when at a certain point in real life, you've actually thought: "Damn, I screwed up, where's CTRL + Z?"...
Reply With Quote