• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Script] Ayuda con script

  • 2
    Posts
    4
    Years
    • Seen Nov 4, 2020
    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
     
    Last edited:

    jensmoking

    Little boygirl.
  • 69
    Posts
    4
    Years
    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
     
    Back
    Top