qaz015393
pokemon revenge developer
- 789
- Posts
- 15
- Years
- Seen Feb 10, 2025
I need some help inserting my script and making it work right when I insert it in advance map. Now I didn't know if it did this right or not, i gave all people in the script the script offset and set var in advance map. Also I posted the script with some notes on what I wanted it to do, I also posted a video on what happens [in attachment] and what it looks like in advance map [like i said I gave all npcs the same var and script offset like the level script has]. Am I no way a pro in xse scripting, I know the basics and some other stuff from tutorials but I don't know how to do major complicated scripts like you experts XD but I am trying my best.
Spoiler:
Code:
#dynamic 0x80ACB1
'---------------
#org @start
lockall
checkgender
compare 0x800D 0x1
if 0x1 goto @female
compare 0x800D 0x0
if 0x1 goto @male
applymovement MOVE_PLAYER @move12
applymovement 0x4 @move13
waitmovement 0x0
applymovement 0x5 @move1
applymovement 0x6 @move2
applymovement 0x7 @move3
waitmovement 0x0
compare 0x800D 0x1
if 0x1 goto @female1
compare 0x800D 0x0
if 0x1 goto @male1
showsprite 0x8 /// pokemon sprite appears but shouldnt show up until this point
showsprite 0x9/// pokemon sprite appears but shouldnt show up until this point
applymovement 0x8 @move4 /// pokemon sprite battles
applymovement 0x9 @move5 /// pokemon sprite battles
msgbox @string2 MSG_KEEPOPEN
hidesprite 0x8 /// pokemon sprite disapears so it can mega evolve
showsprite 0x11 /// new mega pokemon sprite appears
msgbox @win MSG_NORMAL
hidesprite 0x9 /// pokemon sprite disapears so it can mega evolve
showsprite 0x10 /// new mega pokemon sprite appears
msgbox @lose MSG_NORMAL
applymovement 0x10 @move6
applymovement 0x11 @move7
hidesprite 0x10
applymovement MOVE_PLAYER @move8
msgbox @string4 MSG_NORMAL
applymovement 0x5 @move9
applymovement 0x7 @move10
closeonkeypress
waitmovement 0x0
hidesprite 0x5
hidesprite 0x6
hidesprite 0x7
hidesprite 0x4
setflag 0x209
setvar 0x4019 0x1
warp 0x43 0x2 0x2 0x0 0x0
release
end
'---------
' Strings
'---------
#org @string1
= [player]: Kira not you and\nTeam Obsidian again.\lKira: Yes. That is right [player]\lTeam Obsidian is back.\lHhaaaa!\l[player]: I don't think so.\l
#org @win
= Kira: Not quite. I made this\ndevice that just copied your\lpower. Now take a look at my new\lShadow Pokemon. You can't win!
#org @lose
= Kira: Go Shadow Mega Swampert!!\nUse Shadow Ball on Mega charizard\lX and [player].\pShadow Mega Swampert: Swaammpp!
#org @string4
= Kira: Now grunts capture them\nand lets return to our new hideout.
#org @string5
= [player]: Come on Abby. Lets go to\nsee that new horror movie.\lWait something seems off.\l
#org @string2
= Come on Kira, I got my Charizard\nand I'm powered up to destroy\lTeam Obsidian once and for all.\lGo Mega Charizard X!\l
#org @yourf
= [player]: Come on Matt. Lets go to\nsee that new horror movie.\lWait something seems off.\l
#org @6
= [player]: Kira not you and\nTeam Obsidian again.\lKira: Yes. That is right [player]\lTeam Obsidian is back.\lHhaaaa!\l[player]: I don't think so.\l
#org @female
closeonkeypress
msgbox @yourf 0x6
release
end
#org @female1
closeonkeypress
msgbox @6 0x6
release
end
#org @male1
closeonkeypress
msgbox @string5 0x6
release
end
#org @male
closeonkeypress
msgbox @string1 0x6
release
end
'-----------
' Movements
'-----------
#org @move1
#raw 0x0 0x2 0x3 0x1 0x7 0x6 0x7 0x4 0xFE
#org @move2
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
#org @move3
#raw 0x0 0x2 0x3 0x1 0x7 0x6 0x7 0x4 0xFE
#org @move4
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
#org @move5
#raw 0x0 0x2 0x3 0x1 0x7 0x6 0x7 0x4 0xFE
#org @move6
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
#org @move7
#raw 0x0 0x2 0x3 0x1 0x7 0x6 0x7 0x4 0xFE
#org @move8
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
#org @move9
#raw 0x0 0x2 0x3 0x1 0x7 0x6 0x7 0x4 0xFE
#org @move10
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
#org @move11
#raw 0x0 0x2 0x3 0x1 0x7 0x6 0x7 0x4 0xFE
#org @move12
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
#org @move13
#raw 0x0 0x2 0x3 0x1 0x7 0x6 0x7 0x4 0xFE
Spoiler:
![[PokeCommunity.com] advance map & inserting script [PokeCommunity.com] advance map & inserting script](https://i.imgur.com/Pmfzw8K.png)