The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script Need help with a script! (https://www.pokecommunity.com/showthread.php?t=402008)

#Vytron November 1st, 2017 9:17 AM

Need help with a script!
 
Hi so the problem is that when I make a script with xse containing the warp command (or any other warping commands) the game freezes down.(The script starts and when it gets to "warp" it teleports the player away but to a froze down black/white screen. Also it's in my GBA romhack.

EX script (ignore he applymovements and msgboxes)
#dynamic 0x1AD03A
#org @start
lock
faceplayer
applymovement 0x4 @move1
waitmovement 0x4
msgbox @string1 MSG_NORMAL '"???:Voltorb,Thunder Wave!"
sound 0x13
playsong 0x112 0x1
applymovement 0x4 @move2
waitmovement 0x4
msgbox @string2 MSG_NORMAL '"Ahh!What the!?\nWhy I can't move?!"
applymovement 0x1 @move3
waitmovement 0x1
msgbox @string3 MSG_NORMAL '"Thug:Oh well well.Remember when I\..."
sethealingplace 0x1
warp 0x42 0x0 0xFF 0x1 0x2 <---------------------------------------------------------------------------------HERE IS THE WARP!
setvar 0x4083 0x1
setflag 0x255
setflag 0x256
release
end


'---------
' Strings
'---------
#org @string1
= ???:Voltorb,Thunder Wave!

#org @string2
= Ahh!What the!?\nWhy I can't move?!

#org @string3
= Thug:Oh well well.Remember when I\nsaid next time?\pWell this is the next time!\p[player]:What?Why are you doing this?\nAnd what are you doing actually?\pThug:The boss has noticed your\nheroic actions.And he thinks that\pyou are a threat to our\norganiyation!\pHe wants to eliminate you before it'\ntoo late.


'-----------
' Movements
'-----------
#org @move1
#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 0xFE 'End of Movements

#org @move2
#raw 0x49 'Jump Facing Left (Right)
#raw 0xA 'Step Left (Very Slow)
#raw 0xFE 'End of Movements

#org @move3
#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 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements

Auros November 1st, 2017 12:19 PM

Is your map (42.0)? Remember to convert all numbers in hexadecimal anyway

#Vytron November 1st, 2017 1:11 PM

Quote:

Originally Posted by Auros (Post 9786212)
Is your map (42.0)? Remember to convert all numbers in hexadecimal anyway

Thank you.I’ll try it tomorrow.Also should convert all numbes?(like the x y cordinates as well?)

Auros November 1st, 2017 1:34 PM

Yeah, when you write 0xsomething it means that the value is hexadecimal.

#Vytron November 2nd, 2017 6:43 AM

Quote:

Originally Posted by Auros (Post 9786246)
Yeah, when you write 0xsomething it means that the value is hexadecimal.

Thank you so much.It worked !{XD}


All times are GMT -8. The time now is 9:14 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.