karatekid552
What happens if I push it?....
- 1,771
- Posts
- 12
- Years
- Do you really want to know? Really?
- Seen Jan 12, 2015
I've got a level script that just stopped happening. It's Script 3 on One Island in the PC in FireRed...
I haven't (consciously) made any changes, but now the script doesn't run the first time you enter the pokemon center, so when you approach Bill and Cielo you're just sent straight home as part of the other script there.
Here is the unaltered level script...
Code:'--------------- #org 0x170CB1 lockall textcolor 0x0 applymovement MOVE_PLAYER 0x8170E7D applymovement 0x2 0x8170E86 waitmovement 0x0 msgbox 0x81A0CDE MSG_KEEPOPEN '"BILL: Hey, there!\nCELIO!" applymovement MOVE_PLAYER 0x81A75EB waitmovement 0x0 sound 0x15 applymovement 0x3 0x81A75DB waitmovement 0x0 applymovement 0x3 0x81A75E7 waitmovement 0x0 applymovement 0x3 0x81A75DD waitmovement 0x0 msgbox 0x81A0CF7 MSG_KEEPOPEN '"CELIO: BILL!\nI can't believe you ..." msgbox 0x81A0D27 MSG_KEEPOPEN '"BILL: Well, absolutely!\nHow's you..." applymovement 0x2 0x81A75ED applymovement MOVE_PLAYER 0x81A75E9 waitmovement 0x0 msgbox 0x81A0D72 MSG_KEEPOPEN '"[player], this is my buddy CELIO.\..." applymovement 0x2 0x81A75EB waitmovement 0x0 applymovement MOVE_PLAYER 0x81A75EB waitmovement 0x0 checkflag 0x82C if 0x1 call 0x8170E34 checkflag 0x82C if 0x0 call 0x8170E3D applymovement 0x3 0x81A75ED waitmovement 0x0 msgbox 0x81A0E17 MSG_KEEPOPEN '"CELIO: That's really impressive.\p..." msgbox 0x81A0E90 MSG_KEEPOPEN '"BILL: So, bring me up to speed.\nH..." applymovement 0x3 0x81A75E7 waitmovement 0x0 msgbox 0x81A0ECC MSG_KEEPOPEN '"CELIO: It's running fine, but we'r..." closeonkeypress applymovement 0x2 0x81A75E9 waitmovement 0x0 msgbox 0x81A0F40 MSG_KEEPOPEN '"BILL: Oh, yeah?\nOkay, let me take..." applymovement 0x2 0x81A75ED waitmovement 0x0 applymovement MOVE_PLAYER 0x81A75E9 waitmovement 0x0 msgbox 0x81A0FB1 MSG_KEEPOPEN '"[player], can I get you to wait fo..." loadpointer 0x0 0x81A10EE '"[player] accepted the METEORITE\nf..." giveitem2 0x118 0x1 0x13E additem 0x118 0x1 applymovement 0x3 0x81A75ED waitmovement 0x0 msgbox 0x81A1113 MSG_KEEPOPEN '"CELIO: [player], if you are going\..." additem 0x16F 0x1 loadpointer 0x0 0x81A231B '"Obtained the TRI-PASS!" giveitem2 0x16F 0x1 0x13E msgbox 0x81A1150 MSG_KEEPOPEN '"It's a PASS for the ferry service\..." compare 0x4058 0x2 if 0x4 call 0x8170E46 compare 0x4058 0x2 if 0x0 call 0x8170E58 setflag 0x845 msgbox 0x81A1230 MSG_KEEPOPEN '"BILL: I'll catch you later!\nSay h..." closeonkeypress applymovement 0x2 0x81A75E9 waitmovement 0x0 applymovement 0x3 0x81A75E9 waitmovement 0x0 setflag 0x841 setvar 0x4076 0x1 releaseall end '--------------- #org 0x170E34 msgbox 0x81A0DE8 MSG_KEEPOPEN '"CELIO, this is [player], the\nreig..." return '--------------- #org 0x170E3D msgbox 0x81A0DAC MSG_KEEPOPEN '"CELIO, this is [player], a rising\..." return '--------------- #org 0x170E46 textcolor 0x3 fanfare 0x13E preparemsg 0x81A11EC '"[player] received an extra page\nf..." waitmsg waitfanfare call 0x81A6675 return '--------------- #org 0x170E58 setflag 0x39 setvar 0x4058 0x2 additem 0x169 0x1 loadpointer 0x0 0x81A1218 '"[player] received\na TOWN MAP!" giveitem2 0x169 0x1 0x13E return '--------------- #org 0x1A6675 copyvar 0x8012 0x8013 return '--------- ' Strings '--------- #org 0x1A0CDE = BILL: Hey, there!\nCELIO! #org 0x1A0CF7 = CELIO: BILL!\nI can't believe you came out here. #org 0x1A0D27 = BILL: Well, absolutely!\nHow's your research coming along?\p[.]Oh, wait a sec. #org 0x1A0D72 = [player], this is my buddy CELIO.\nHe's one dedicated PC MANIAC! #org 0x1A0E17 = CELIO: That's really impressive.\pI hate to say it, but I have zero\naptitude for battling.\pAnyways, I'm glad to meet you. #org 0x1A0E90 = BILL: So, bring me up to speed.\nHow's your machine running? #org 0x1A0ECC = CELIO: It's running fine, but we're\ntoo remote out here.\pThe PCs on this island just can't\nlink with your PC, BILL. #org 0x1A0F40 = BILL: Oh, yeah?\nOkay, let me take a look-see.\p[.]Hang on here[.]\nI think we can make it work.\lLet me help you, okay? #org 0x1A0FB1 = [player], can I get you to wait for\nme just a bit?\p[.]Actually, can I get you to do\nme a favor?\pThe island next to this one's\ncalled TWO ISLAND.\pThere's a guy there that runs\na GAME CORNER.\pHe has this thing for rare rocks\nand gems.\pWe keep in touch, being fellow\nmaniacs.\pSo, can I get you to deliver this\nMETEORITE to him? #org 0x1A10EE = [player] accepted the METEORITE\nfrom BILL. #org 0x1A1113 = CELIO: [player], if you are going\nto TWO ISLAND, please take this. #org 0x1A231B = Obtained the TRI-PASS! #org 0x1A1150 = It's a PASS for the ferry service\nserving the local islands.\pIt will let you travel between the\nISLANDS ONE, TWO, and THREE.\pOh, you should have this, too. #org 0x1A1230 = BILL: I'll catch you later!\nSay hi to the guy for me! #org 0x1A0DE8 = CELIO, this is [player], the\nreigning POKéMON CHAMP! #org 0x1A0DAC = CELIO, this is [player], a rising\ncontender as the POKéMON CHAMP! #org 0x1A11EC = [player] received an extra page\nfor the TOWN MAP! #org 0x1A1218 = [player] received\na TOWN MAP! '----------- ' Movements '----------- #org 0x170E7D #raw 0x11 'Step Up (Normal) #raw 0x11 'Step Up (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 0x170E86 #raw 0x11 'Step Up (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 0x11 'Step Up (Normal) #raw 0x30 'Face Right (Delayed) #raw 0xFE 'End of Movements #org 0x1A75EB #raw 0x30 'Face Right (Delayed) #raw 0xFE 'End of Movements #org 0x1A75DB #raw 0x62 'Exclamation Mark (!) #raw 0xFE 'End of Movements #org 0x1A75E7 #raw 0x2F 'Face Left (Delayed) #raw 0xFE 'End of Movements #org 0x1A75DD #raw 0x1C 'Delay5 #raw 0x1C 'Delay5 #raw 0x1C 'Delay5 #raw 0xFE 'End of Movements #org 0x1A75ED #raw 0x2D 'Face Down (Delayed) #raw 0xFE 'End of Movements #org 0x1A75E9 #raw 0x2E 'Face Up (Delayed) #raw 0xFE 'End of Movements
And the flag in AMap is set to 4076 and the value is 0. Is there any way to fix this? Even something like adding a setvar or clearflag or whatever to the gym match script in Cinnabar, so that it works when you leave the gym...
Try changing the flag to 40F6. Tell me if that works.