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)
-   -   Other Script wont release (https://www.pokecommunity.com/showthread.php?t=325505)

Rezordaxx May 5th, 2014 3:51 AM

Script wont release
 
Hi I have made this script :

Spoiler:
'---------------
#org 0x815AA0
lock
applymovement MOVE_PLAYER 0x8813680
showpokepic 0xD 0x0 0x4
msgbox 0x8815BB9 MSG_NORMAL '"And thats where we stand\ngreat ki..."
hidepokepic
showpokepic 0xE 0x0 0x4
msgbox 0x8815CEA MSG_NORMAL '"Hhmm....\nGoku... Well you certain..."
hidepokepic
showpokepic 0xD 0x0 0x4
msgbox 0x8815D77 MSG_NORMAL '"Yes King Yemma he is."
hidepokepic
showpokepic 0x1 0x0 0x4
msgbox 0x8815D8F MSG_NORMAL '"Hey does everybody\nend up here Ka..."
hidepokepic
showpokepic 0xD 0x0 0x4
msgbox 0x8815DB6 MSG_NORMAL '"Thats right."
hidepokepic
showpokepic 0x1 0x0 0x4
msgbox 0x8815DC5 MSG_NORMAL '"Did Raditz?"
hidepokepic
showpokepic 0xD 0x0 0x4
msgbox 0x8815DD3 MSG_NORMAL '"Yes everyone comes to this\nchecki..."
hidepokepic
showpokepic 0x1 0x0 0x4
msgbox 0x8815E38 MSG_NORMAL '"Hey!\nDid a guy named Raditz\pcame..."
hidepokepic
showpokepic 0xD 0x0 0x4
msgbox 0x8815E71 MSG_NORMAL '"Goku!\nYou must adress him as King..."
hidepokepic
showpokepic 0xE 0x0 0x4
msgbox 0x8816288 MSG_NORMAL '"Huhmmm.\nLet me see.\pOh yes!\nYou..."
hidepokepic
showpokepic 0x1 0x0 0x4
msgbox 0x88162D2 MSG_NORMAL '"Did he fight you?"
hidepokepic
showpokepic 0xE 0x0 0x4
msgbox 0x88162E6 MSG_NORMAL '"Yes he did!\nBut I got him in my Y..."
hidepokepic
showpokepic 0x1 0x0 0x4
msgbox 0x8816328 MSG_NORMAL '"Huuhh\nIncredible! Wow you must be..."
hidepokepic
showpokepic 0xD 0x0 0x4
msgbox 0x881637B MSG_NORMAL '"Uhm well yeahh...\nKing Yemma is t..."
hidepokepic
showpokepic 0xE 0x0 0x4
msgbox 0x88163EF MSG_NORMAL '"KAMI I HEARD THAT!\nYOU LITTLE WEA..."
hidepokepic
showpokepic 0xD 0x0 0x4
msgbox 0x8816453 MSG_NORMAL '"Forgive me I didnt know\nyour ears..."
hidepokepic
showpokepic 0xE 0x0 0x4
msgbox 0x88164A3 MSG_NORMAL '"Kami you are starting\nto annoy me..."
hidepokepic
showpokepic 0xD 0x0 0x4
msgbox 0x88165C5 MSG_NORMAL '"Goku stick to it now!\nDont let sn..."
hidepokepic
showpokepic 0x1 0x0 0x4
msgbox 0x8816602 MSG_NORMAL '"Well I am really not sure\nwhat to..."
hidepokepic
setvar 0x4016 0x3
release

'---------
' Strings
'---------
#org 0x815BB9
= And thats where we stand\ngreat king Yemma.\pThe other two Saiyans are\non there way to earth right now\pFor this reason we humbly ask you\nTo allow Goku to seek training\pfrom the great KingKai himself\nWith your permission ofcourse.\pThere is no hope for our planet\nif Goku doesnt recieve KingKai's training.

#org 0x815CEA
= Hhmm....\nGoku... Well you certainly\phave a service record that allows\nyou to reach KingKai But are\pyou prepared to travel\nalong snake way?

#org 0x815D77
= Yes King Yemma he is.

#org 0x815D8F
= Hey does everybody\nend up here Kami?

#org 0x815DB6
= Thats right.

#org 0x815DC5
= Did Raditz?

#org 0x815DD3
= Yes everyone comes to this\ncheckin station and King Yemma\pdecides what to do\nwith them after that.

#org 0x815E38
= Hey!\nDid a guy named Raditz\pcame here not to long ago?

#org 0x815E71
= Goku!\nYou must adress him as King Yemma!

#org 0x816288
= Huhmmm.\nLet me see.\pOh yes!\nYour brother I send him ahead.\pWhat a case.

#org 0x8162D2
= Did he fight you?

#org 0x8162E6
= Yes he did!\nBut I got him in my Yemma lock\pand overpowered him.

#org 0x816328
= Huuhh\nIncredible! Wow you must be strong!\pHey forget KingKai\nI wanna train here!

#org 0x81637B
= Uhm well yeahh...\nKing Yemma is to bussy\pto take pupils\nWhisper: "Be quiet!\pKingKai is stronger that King Yemma!"

#org 0x8163EF
= KAMI I HEARD THAT!\nYOU LITTLE WEASEL!\pIll remember that when I\nam passing sentence on you hahaha!

#org 0x816453
= Forgive me I didnt know\nyour ears where so big!\pI mean so good!\nOhhh myyy....

#org 0x8164A3
= Kami you are starting\nto annoy me!\pWell I forgive you this time\nGoku can try to make it to\pKingKai's if he really wants to.\nIll call a guide for you\pnow go and wait outside!\nOh and Goku!\pYou need to be really carefull\nnot to fall of snakeway!\pShould you fall of there is\nno comming back!

#org 0x8165C5
= Goku stick to it now!\nDont let snakeway wear\pon your mind!

#org 0x816602
= Well I am really not sure\nwhat to expect.\pBut ill try my very best\nto make it to KingKai's planet!\pBye now ill guess I\nsee ya in about one year.


'-----------
' Movements
'-----------
#org 0x813680
#raw 0x1 'Face Up

but when the script ends it wont let me walk...

and how do I remove a pokemon in the party via script?

Spherical Ice May 5th, 2014 4:27 AM

You need to add the end command after release. As for the latter, there are multiple ASM routines that have been made to erase a Pokémon from your party, so try looking around the Research and Development subforum.

Christos May 5th, 2014 4:29 AM

To answer your first question, you need an "end" command after release to stop the script.

If you're hacking Fire Red, this tutorial should cover how to release a specific Pokémon from your party.

Rezordaxx May 5th, 2014 4:55 AM

Quote:

Originally Posted by Spheal (Post 8232141)
To answer your first question, you need an "end" command after release to stop the script.

If you're hacking Fire Red, this tutorial should cover how to release a specific Pokémon from your party.

Quote:

Originally Posted by Spherical Ice (Post 8232135)
You need to add the end command after release. As for the latter, there are multiple ASM routines that have been made to erase a Pokémon from your party, so try looking around the Research and Development subforum.

LOOOOLL how could I forget to do that .... shame on me...

thanks i will look in the tutorial

Quote:

Originally Posted by Spheal (Post 8232141)
To answer your first question, you need an "end" command after release to stop the script.

If you're hacking Fire Red, this tutorial should cover how to release a specific Pokémon from your party.

is is not the kind of thing i was looking for i just want to delete the pokemon wihtout the player knowing it has been deleted

Spherical Ice May 5th, 2014 5:07 AM

http://www.pokecommunity.com/showthread.php?t=210016#asm

This part of the tutorial does indeed tell you how to achieve what you wanted. Assuming you have also inserted the routine at 0x8800000, your script could literally just be:

Code:

#dynamic 0x800000

#org @start
setvar 0x8005 0x19 // 0x19 being the hex number for Pikachu
call @snippet1
release
end

#org @snippet1
callasm 0x800001
return


and it would release your Pikachu (obviously just change the hex code for a different Pokémon, or somehow get 0x8005 to equal the species of a Pokémon in a specific slot (with special 0x9F being the best option for this, but you don't want that I guess)). You don't have to include the messages etc.

Rezordaxx May 5th, 2014 6:01 AM

Quote:

Originally Posted by Spherical Ice (Post 8232179)
http://www.pokecommunity.com/showthread.php?t=210016#asm

This part of the tutorial does indeed tell you how to achieve what you wanted. Assuming you have also inserted the routine at 0x8800000, your script could literally just be:

Code:

#dynamic 0x800000

#org @start
setvar 0x8005 0x19 // 0x19 being the hex number for Pikachu
call @snippet1
release
end

#org @snippet1
callasm 0x800001
return


and it would release your Pikachu (obviously just change the hex code for a different Pokémon, or somehow get 0x8005 to equal the species of a Pokémon in a specific slot (with special 0x9F being the best option for this, but you don't want that I guess)). You don't have to include the messages etc.

Allright thanks
I have added end to the script but it still wont release me...

Spherical Ice May 5th, 2014 6:09 AM

What did you set 0x8005 to?

Rezordaxx May 5th, 2014 6:22 AM

Quote:

Originally Posted by Spherical Ice (Post 8232232)
What did you set 0x8005 to?

I was talking about the first script :p

Spherical Ice May 5th, 2014 6:26 AM

Oh, the movements list needs #raw 0xFE at the end too. It would help if you were more specific about what is going wrong, though.

Orifiel May 5th, 2014 6:29 AM

There's no waitmovement on your script, I guess. Fixed your script.

Code:


Code:

'---------------
#org 0x815AA0
lock
applymovement MOVE_PLAYER 0x8813680
waitmovement 0x0
showpokepic 0xD 0x0 0x4
msgbox 0x8815BB9 MSG_NORMAL '"And thats where we stand\ngreat ki..."
hidepokepic
showpokepic 0xE 0x0 0x4
msgbox 0x8815CEA MSG_NORMAL '"Hhmm....\nGoku... Well you certain..."
hidepokepic
showpokepic 0xD 0x0 0x4
msgbox 0x8815D77 MSG_NORMAL '"Yes King Yemma he is."
hidepokepic
showpokepic 0x1 0x0 0x4
msgbox 0x8815D8F MSG_NORMAL '"Hey does everybody\nend up here Ka..."
hidepokepic
showpokepic 0xD 0x0 0x4
msgbox 0x8815DB6 MSG_NORMAL '"Thats right."
hidepokepic
showpokepic 0x1 0x0 0x4
msgbox 0x8815DC5 MSG_NORMAL '"Did Raditz?"
hidepokepic
showpokepic 0xD 0x0 0x4
msgbox 0x8815DD3 MSG_NORMAL '"Yes everyone comes to this\nchecki..."
hidepokepic
showpokepic 0x1 0x0 0x4
msgbox 0x8815E38 MSG_NORMAL '"Hey!\nDid a guy named Raditz\pcame..."
hidepokepic
showpokepic 0xD 0x0 0x4
msgbox 0x8815E71 MSG_NORMAL '"Goku!\nYou must adress him as King..."
hidepokepic
showpokepic 0xE 0x0 0x4
msgbox 0x8816288 MSG_NORMAL '"Huhmmm.\nLet me see.\pOh yes!\nYou..."
hidepokepic
showpokepic 0x1 0x0 0x4
msgbox 0x88162D2 MSG_NORMAL '"Did he fight you?"
hidepokepic
showpokepic 0xE 0x0 0x4
msgbox 0x88162E6 MSG_NORMAL '"Yes he did!\nBut I got him in my Y..."
hidepokepic
showpokepic 0x1 0x0 0x4
msgbox 0x8816328 MSG_NORMAL '"Huuhh\nIncredible! Wow you must be..."
hidepokepic
showpokepic 0xD 0x0 0x4
msgbox 0x881637B MSG_NORMAL '"Uhm well yeahh...\nKing Yemma is t..."
hidepokepic
showpokepic 0xE 0x0 0x4
msgbox 0x88163EF MSG_NORMAL '"KAMI I HEARD THAT!\nYOU LITTLE WEA..."
hidepokepic
showpokepic 0xD 0x0 0x4
msgbox 0x8816453 MSG_NORMAL '"Forgive me I didnt know\nyour ears..."
hidepokepic
showpokepic 0xE 0x0 0x4
msgbox 0x88164A3 MSG_NORMAL '"Kami you are starting\nto annoy me..."
hidepokepic
showpokepic 0xD 0x0 0x4
msgbox 0x88165C5 MSG_NORMAL '"Goku stick to it now!\nDont let sn..."
hidepokepic
showpokepic 0x1 0x0 0x4
msgbox 0x8816602 MSG_NORMAL '"Well I am really not sure\nwhat to..."
hidepokepic
setvar 0x4016 0x3
release

'---------
' Strings
'---------
#org 0x815BB9
= And thats where we stand\ngreat king Yemma.\pThe other two Saiyans  are\non there way to earth right now\pFor this reason we humbly ask  you\nTo allow Goku to seek training\pfrom the great KingKai  himself\nWith your permission ofcourse.\pThere is no hope for our  planet\nif Goku doesnt recieve KingKai's training.

#org 0x815CEA
= Hhmm....\nGoku... Well you certainly\phave a service record that  allows\nyou to reach KingKai But are\pyou prepared to travel\nalong  snake way?

#org 0x815D77
= Yes King Yemma he is.

#org 0x815D8F
= Hey does everybody\nend up here Kami?

#org 0x815DB6
= Thats right.

#org 0x815DC5
= Did Raditz?

#org 0x815DD3
= Yes everyone comes to this\ncheckin station and King Yemma\pdecides what to do\nwith them after that.

#org 0x815E38
= Hey!\nDid a guy named Raditz\pcame here not to long ago?

#org 0x815E71
= Goku!\nYou must adress him as King Yemma!

#org 0x816288
= Huhmmm.\nLet me see.\pOh yes!\nYour brother I send him ahead.\pWhat a case.

#org 0x8162D2
= Did he fight you?

#org 0x8162E6
= Yes he did!\nBut I got him in my Yemma lock\pand overpowered him.

#org 0x816328
= Huuhh\nIncredible! Wow you must be strong!\pHey forget KingKai\nI wanna train here!

#org 0x81637B
= Uhm well yeahh...\nKing Yemma is to bussy\pto take pupils\nWhisper: "Be quiet!\pKingKai is stronger that King Yemma!"

#org 0x8163EF
= KAMI I HEARD THAT!\nYOU LITTLE WEASEL!\pIll remember that when I\nam passing sentence on you hahaha!

#org 0x816453
= Forgive me I didnt know\nyour ears where so big!\pI mean so good!\nOhhh myyy....

#org 0x8164A3
= Kami you are starting\nto annoy me!\pWell I forgive you this  time\nGoku can try to make it to\pKingKai's if he really wants to.\nIll  call a guide for you\pnow go and wait outside!\nOh and Goku!\pYou need  to be really carefull\nnot to fall of snakeway!\pShould you fall of  there is\nno comming back!

#org 0x8165C5
= Goku stick to it now!\nDont let snakeway wear\pon your mind!

#org 0x816602
= Well I am really not sure\nwhat to expect.\pBut ill try my very  best\nto make it to KingKai's planet!\pBye now ill guess I\nsee ya in  about one year.

'-----------
' Movements
'-----------
#org 0x813680
#raw 0x1 'Face Up
#raw 0xFE



Rezordaxx May 5th, 2014 7:26 AM

Quote:

Originally Posted by Spherical Ice (Post 8232242)
Oh, the movements list needs #raw 0xFE at the end too. It would help if you were more specific about what is going wrong, though.

Thanks ill try it.
sorry ill be more specific next time

The first script works now. I will try the delete pokemon script later.


All times are GMT -8. The time now is 9:12 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.