![]() |
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 |
Is your map (42.0)? Remember to convert all numbers in hexadecimal anyway
|
Quote:
|
Yeah, when you write 0xsomething it means that the value is hexadecimal.
|
Quote:
|
| All times are GMT -8. The time now is 9:14 AM. |
![]()
© 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.