PHO - Pokémon Hackers Online
Go Back   PHO - Pokémon Hackers Online > Other Generations Hacking > Guides & Documentation > Questions & Answers

Questions & Answers Do you have a problem you need a straight answer for? Ask a question here and get an answer.

Reply
 
Thread Tools Display Modes
Old 27th July 2014, 05:48 AM   #1
qaz015393
pokemon revenge developer
 
Join Date: Jul 2014
Posts: 24
qaz015393
Default Need help inserting script in fire red without it messing up

I'm still re learning how to script but know the basics in xse. Anyway I need some help getting my script to work right for my hack. My other scripts I did worked but this 1 is more complicated than those and none of the movements work.

I tried to fix the script and this is what i got now

Spoiler:

Code:
#dynamic 0x80ACB1

'---------------
#org @start
lockall
checkgender
compare 0x800D 0x1
if 0x1 call @female
compare 0x800D 0x0
if 0x1 call @male
waitmovement 0x0
applymovement 0x5 @move1
waitmovement 0x0
applymovement 0x6 @move2
waitmovement 0x0
applymovement 0x7 @move3
waitmovement 0x0
compare 0x800D 0x1
if 0x1 call @female1
compare 0x800D 0x0
if 0x1 call @male1
waitmovement 0x0
showsprite 0x8
showsprite 0x9
applymovement 0x8 @move4 
waitmovement 0x0
applymovement 0x9 @move5 
waitmovement 0x0
msgbox @string2 MSG_KEEPOPEN
waitmovement 0x0
hidesprite 0x8
showsprite 0x11
waitmovement 0x0
msgbox @win MSG_NORMAL
waitmovement 0x0
hidesprite 0x9
showsprite 0x10
msgbox @lose MSG_NORMAL
waitmovement 0x0
applymovement 0x10 @move6  
waitmovement 0x0
hidesprite 0x11
msgbox @string4 MSG_NORMAL
waitmovement 0x0
applymovement 0x5 @move7
applymovement 0x7 @move8
closeonkeypress
waitmovement 0x0
fadescreen 0x1
hidesprite 0x5
hidesprite 0x6
hidesprite 0x7
hidesprite 0x4
setflag 0x209
setvar 0x5019 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
msgbox @yourf 0x6
closeonkeypress
return

#org @female1
msgbox @6 0x6
closeonkeypress
return

#org @male1
msgbox @string5 0x6
closeonkeypress
return

#org @male
msgbox @string1 0x6
closeonkeypress
return

'-----------
' Movements
'-----------
#org @move1
#raw 0x0
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x2
#raw 0xFE

#org @move2
#raw 0x0
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0xFE

#org @move3
#raw 0x0
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @move4
#raw 0x3
#raw 0x55
#raw 0x55
#raw 0x55
#raw 0xFE

#org @move5
#raw 0x2
#raw 0x54
#raw 0x54
#raw 0x54
#raw 0xFE

#org @move6
#raw 0x2
#raw 0x66
#raw 0x54
#raw 0x54
#raw 0x54
#raw 0xFE

#org @move7
#raw 0x2
#raw 0x6
#raw 0x6
#raw 0xFE

#org @move8
#raw 0x2
#raw 0x6
#raw 0x6
#raw 0x6
#raw 0x1
#raw 0xFE



I'm using both tajaros's and another xse scripting tuts. Now I can't get the apply movements to work in the script for some reason I have the script saved with the right moves but it doesn't compile right. This is becoming a problem. I added notes to where its not working.

Spoiler:

Code:
#dynamic 0x80ACB1

'---------------
#org @start
lockall
checkgender
compare 0x800D 0x1
if 0x1 call @female
compare 0x800D 0x0
if 0x1 call @male
waitmovement 0x0
applymovement 0x5 @move1 ///  why doesn't this guy move
waitmovement 0x0
applymovement 0x6 @move2  ///  why doesn't this guy move
waitmovement 0x0
applymovement 0x7 @move3 ///  why doesn't this guy move
waitmovement 0x0
compare 0x800D 0x1
if 0x1 call @female1
compare 0x800D 0x0
if 0x1 call @male1
waitmovement 0x0
showsprite 0x8
showsprite 0x9
applymovement 0x8 @move4 /// why doesn't this work for the pokemon?
waitmovement 0x0
applymovement 0x9 @move5 /// why doesn't this work for the pokemon?
waitmovement 0x0
msgbox @string2 MSG_KEEPOPEN
waitmovement 0x0
hidesprite 0x8
showsprite 0x11
waitmovement 0x0
msgbox @win MSG_NORMAL
waitmovement 0x0
hidesprite 0x9
showsprite 0x10
msgbox @lose MSG_NORMAL
waitmovement 0x0
applymovement 0x10 @move6  /// why doesn't this work for the pokemon?
waitmovement 0x0
hidesprite 0x11
msgbox @string4 MSG_NORMAL
waitmovement 0x0
applymovement 0x5 @move7
applymovement 0x7 @move8
closeonkeypress
waitmovement 0x0
fadescreen 0x1
hidesprite 0x5
hidesprite 0x6
hidesprite 0x7
hidesprite 0x4
setflag 0x209
setvar 0x5019 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
msgbox @yourf 0x6
closeonkeypress
return

#org @female1
msgbox @6 0x6
closeonkeypress
return

#org @male1
msgbox @string5 0x6
closeonkeypress
return

#org @male
msgbox @string1 0x6
closeonkeypress
return

'-----------
' Movements
'-----------
#org @move1
#raw 0x0
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x2
#raw 0xFE

#org @move2
#raw 0x0
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0xFE

#org @move3
#raw 0x0
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @move4
#raw 0x3
#raw 0x55
#raw 0x55
#raw 0x55
#raw 0xFE

#org @move5
#raw 0x2
#raw 0x54
#raw 0x54
#raw 0x54
#raw 0xFE

#org @move6
#raw 0x2
#raw 0x66
#raw 0x54
#raw 0x54
#raw 0x54
#raw 0xFE

#org @move7
#raw 0x2
#raw 0x6
#raw 0x6
#raw 0xFE

#org @move8
#raw 0x2
#raw 0x6
#raw 0x6
#raw 0x6
#raw 0x1
#raw 0xFE



Now this is what I keep getting after I compile the above script into the rom.


Spoiler:
Code:
'---------------
#org 0x80ACB1
lockall
hidesprite 0x10
hidesprite 0x11
hidesprite 0x9
hidesprite 0x8
checkgender
compare LASTRESULT 0x1
if 0x1 goto 0x880B0E9
compare LASTRESULT 0x0
if 0x1 goto 0x880B101
applymovement MOVE_PLAYER 0x880B17D
applymovement 0x4 0x880B185
waitmovement 0x0
applymovement 0x5 0x880B119
applymovement 0x6 0x880B123
applymovement 0x7 0x880B12B
waitmovement 0x0
compare LASTRESULT 0x1
if 0x1 goto 0x880B0F5
compare LASTRESULT 0x0
if 0x1 goto 0x880B10D
showsprite 0x8
showsprite 0x9
applymovement 0x8 0x880B135
applymovement 0x9 0x880B13D
msgbox 0x880AF9F MSG_KEEPOPEN '"Come on Kira, I got my Charizard\n..."
hidesprite 0x8
showsprite 0x11
msgbox 0x880AE1B MSG_NORMAL '"Kira: Not quite. I made this\ndevi..."
hidesprite 0x9
showsprite 0x10
msgbox 0x880AE98 MSG_NORMAL '"Kira: Go Shadow Mega Swampert!!\nU..."
applymovement 0x10 0x880B147
applymovement 0x11 0x880B14F
hidesprite 0x10
applymovement MOVE_PLAYER 0x880B159
msgbox 0x880AF06 MSG_NORMAL '"Kira: Now grunts capture them\nand..."
applymovement 0x5 0x880B161
applymovement 0x7 0x880B16B
closeonkeypress
waitmovement 0x0
hidesprite 0x5
hidesprite 0x6
hidesprite 0x7
hidesprite 0x4
setflag 0x209
setvar 0x5019 0x1
warp 0x3 0x19 0x1 0x0 0x0
release
end

'---------------
#org 0x80B0E9
closeonkeypress
msgbox 0x880B016 MSG_NORMAL '"[player]: Come on Matt. Lets go to..."
release
end

'---------------
#org 0x80B101
closeonkeypress
msgbox 0x880AF4A MSG_NORMAL '"[player]: Come on Abby. Lets go to..."
release
end

'---------------
#org 0x80B0F5
closeonkeypress
msgbox 0x880B06B MSG_NORMAL '"[player]: Kira not you and\nTeam O..."
release
end

'---------------
#org 0x80B10D
closeonkeypress
msgbox 0x880AD9D MSG_NORMAL '"[player]: Kira not you and\nTeam O..."
release
end


'---------
' Strings
'---------
#org 0x80AF9F
= 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 0x80AE1B
= Kira: Not quite. I made this\ndevice that just copied your\lpower. Now take a look at my\lnew Shadow Pokemon. You can't win!\l

#org 0x80AE98
= Kira: Go Shadow Mega Swampert!!\nUse Shadow Ball on Mega charizard\lX and [player].\pShadow Mega Swampert: Swaammpp!

#org 0x80AF06
= Kira: Now grunts capture them\nand lets return to our new hideout.

#org 0x80B016
= [player]: Come on Matt. Lets go to\nsee that new horror movie.\lWait something seems off.\l

#org 0x80AF4A
= [player]: Come on Abby. Lets go to\nsee that new horror movie.\lWait something seems off.\l

#org 0x80B06B
= [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 0x80AD9D
= [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


'-----------
' Movements
'-----------
#org 0x80B17D
#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 0x80B185
#raw 0x0 'Face Down
#raw 0x2 'Face Left
#raw 0x3 'Face Right
#raw 0x1 'Face Up
#raw 0x7 'Face Right (Faster)
#raw 0x6 'Face Left (Faster)
#raw 0x7 'Face Right (Faster)
#raw 0x4 'Face Down (Faster)
#raw 0xFE 'End of Movements

#org 0x80B119
#raw 0x0 'Face Down
#raw 0x2 'Face Left
#raw 0x3 'Face Right
#raw 0x1 'Face Up
#raw 0x7 'Face Right (Faster)
#raw 0x6 'Face Left (Faster)
#raw 0x7 'Face Right (Faster)
#raw 0x4 'Face Down (Faster)
#raw 0xFE 'End of Movements

#org 0x80B123
#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 0x80B12B
#raw 0x0 'Face Down
#raw 0x2 'Face Left
#raw 0x3 'Face Right
#raw 0x1 'Face Up
#raw 0x7 'Face Right (Faster)
#raw 0x6 'Face Left (Faster)
#raw 0x7 'Face Right (Faster)
#raw 0x4 'Face Down (Faster)
#raw 0xFE 'End of Movements

#org 0x80B135
#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 0x80B13D
#raw 0x0 'Face Down
#raw 0x2 'Face Left
#raw 0x3 'Face Right
#raw 0x1 'Face Up
#raw 0x7 'Face Right (Faster)
#raw 0x6 'Face Left (Faster)
#raw 0x7 'Face Right (Faster)
#raw 0x4 'Face Down (Faster)
#raw 0xFE 'End of Movements

#org 0x80B147
#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 0x80B14F
#raw 0x0 'Face Down
#raw 0x2 'Face Left
#raw 0x3 'Face Right
#raw 0x1 'Face Up
#raw 0x7 'Face Right (Faster)
#raw 0x6 'Face Left (Faster)
#raw 0x7 'Face Right (Faster)
#raw 0x4 'Face Down (Faster)
#raw 0xFE 'End of Movements

#org 0x80B159
#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 0x80B161
#raw 0x0 'Face Down
#raw 0x2 'Face Left
#raw 0x3 'Face Right
#raw 0x1 'Face Up
#raw 0x7 'Face Right (Faster)
#raw 0x6 'Face Left (Faster)
#raw 0x7 'Face Right (Faster)
#raw 0x4 'Face Down (Faster)
#raw 0xFE 'End of Movements

#org 0x80B16B
#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



Could someone help me. I want to try and fix this problem soon so I can finish working on some other scripts I have. Sorry If I sound like I'm rushing but I don't have that much time for hacking and try to do what I can.

Last edited by qaz015393; 27th July 2014 at 05:51 AM.
qaz015393 is offline   Reply With Quote
Sponsored Links
Reply

Tags
fire, inserting, messing, red, script

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:26 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc. User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).
Green Charizard Christos TreeckoLv100

"Black 2" by ARTPOP. Kyurem artwork by XOUS.

no new posts