The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Ayuda con script

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old December 1st, 2019 (6:26 AM). Edited December 1st, 2019 by DarkWolf..
DarkWolf.'s Avatar
DarkWolf. DarkWolf. is offline
 
Join Date: Nov 2019
Posts: 2
Hola, los que sepan de script me pueden ayudar..
Les cuento mí situación, estoy creando un hack ROM y cree un script que hace que el personaje tenga que pagar cierta cantidad de dinero para pasar a algún lugar.
Pero el problema está que al hacer en el juego el evento de conseguir la Pokédex (Pokémon Rojo fuego), mí evento deja de funcionar.
Estuve intentando solucionarlo pero no sé cómo...
Me gustaría que me ayuden.

Acá voy a dejar el script para que me digan si tal vez hice algo mal yo.

Script:
#dynamic 0x800000

#org @start
applymovement 0x2 @mov1
waitmovement 0x0
showmoney 0x0 0x0 0x0
msgbox @pregunta 0x5
compare LASTRESULT 0x1
if 0x1 goto @si
applymovement 0xFF @mov2
waitmovement 0x0
hidemoney 0x0 0x0
release
end

#org @si
checkmoney 2000 0x0
compare LASTRESULT 0x1
if 0x1 goto @pagar
goto @SinDinero

#org @SinDinero
msgbox @noDinero 0x6
applymovement 0xFF @mov2
waitmovement 0x0
hidemoney 0x0 0x0
release
end

#org @pagar
paymoney 2000 0x0
updatemoney 0x0 0x0 0x0
applymovement 0xFF @mov3
waitmovement 0x0
hidemoney 0x0 0x0
release
end

#org @pregunta
= Si quieres pasar necesitas tener\nal menos un pokemon contigo y\lpagar $2000, dime, ¿ Quieres\lpasar?
#org @noDinero
= Lo siento, no puedo dejarte pasar.
#org @mov1
#raw 0x1
#raw 0xFE

#org @mov2
#raw 0x9
#raw 0xFE

#org @mov3
#raw 0x8
#raw 0xFE
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old December 1st, 2019 (11:39 AM).
Vendily's Avatar
Vendily Vendily is offline
 
Join Date: Aug 2015
Nature: Calm
Posts: 1,604
Quote:
Originally Posted by DarkWolf. View Post
<Snipped>
Hi DarkWolf, Welcome to Pokecommunity. I moved your thread here, to ROM Hacking Help. You're much more likely to get help here, since this is the place for it.
__________________
| VPP Stats

Common Errors (and How to Fix Them) in Essentials
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old December 1st, 2019 (12:35 PM).
DarkWolf.'s Avatar
DarkWolf. DarkWolf. is offline
 
Join Date: Nov 2019
Posts: 2
Ah perdón, no sabía. Cómo no sé mucho de inglés me metí al azar xd
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old December 1st, 2019 (1:27 PM).
jensmoking's Avatar
jensmoking jensmoking is offline
Little boygirl.
 
Join Date: Oct 2019
Location: Argentina
Nature: Lonely
Posts: 69
No sé´ḿúćho de scripts, pero lo traduzco por si alguien en ingles si sabe :V

English:
I made a script so the player has to pay some money to go somewhere.
The problem is that when doing the script to get the Pokédex (Fire Red), my script doesn't work.

Here the script so you can tell me if I did something wrong.
(//Translations)

Script:
#dynamic 0x800000

#org @start
applymovement 0x2 @mov1
waitmovement 0x0
showmoney 0x0 0x0 0x0
msgbox @pregunta 0x5 //@question
compare LASTRESULT 0x1
if 0x1 goto @si //@yes
applymovement 0xFF @mov2
waitmovement 0x0
hidemoney 0x0 0x0
release
end

#org @si //@yes
checkmoney 2000 0x0
compare LASTRESULT 0x1
if 0x1 goto @pagar //@pay
goto @SinDinero //@WithoutMoney

#org @SinDinero //@WithoutMoney
msgbox @noDinero 0x6 //@noMoney
applymovement 0xFF @mov2
waitmovement 0x0
hidemoney 0x0 0x0
release
end

#org @pagar //@pay
paymoney 2000 0x0
updatemoney 0x0 0x0 0x0
applymovement 0xFF @mov3
waitmovement 0x0
hidemoney 0x0 0x0
release
end

#org @pregunta //@question
= Si quieres pasar necesitas tener\nal menos un pokemon contigo y\lpagar $2000, dime, ¿ Quieres\lpasar? //If you wanna go in, you need at least a pokemon with you and $2000; Do you wana enter?
#org @noDinero //@noMoney
= Lo siento, no puedo dejarte pasar. //Sorry, can't let you in
#org @mov1
#raw 0x1
#raw 0xFE

#org @mov2
#raw 0x9
#raw 0xFE

#org @mov3
#raw 0x8
#raw 0xFE
__________________

Name: Spotty
Adopt one yourself! @Pokémon Orphanage
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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 -8. The time now is 9:15 AM.