• 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.

[Archive] Script help thread

Status
Not open for further replies.
  • 5,256
    Posts
    16
    Years
    Is there any way to change the PC option in your house through scripting?

    Example:
    Ash booted up his PC.

    > Withdraw Items
    > Deposit Items
    > Play Mini-Game

    Bolded option.

    Any way?
     

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    Is there any way to change the PC option in your house through scripting?

    Example:
    Ash booted up his PC.

    > Withdraw Items
    > Deposit Items
    > Play Mini-Game

    Bolded option.

    Any way?

    Yes, use Advance Text for that.
    I think it's in the bottom.
     

    Hellsing

    The bird of Hermes is my name
  • 121
    Posts
    16
    Years
    Hey, I was wondering if it was possible to start a trainer battle, but have the script continue after the Player loses?

    Thanks in advance
     

    Thrace

    @tion
  • 1,048
    Posts
    16
    Years
    • Seen Oct 2, 2016
    Hey, I was wondering if it was possible to start a trainer battle, but have the script continue after the Player loses?

    Thanks in advance

    trainerbattle 0x1 [battleNumber] 0x0 [textBefore] [textAfter] [scriptAfter]
     

    Thrace

    @tion
  • 1,048
    Posts
    16
    Years
    • Seen Oct 2, 2016
    Oh woops didn't read it properly, my bad.

    trainerbattle 0x9 0x[trainerNumber] 0x3 [textBefore] [textAfter]
    goto [scriptAfter]

    Unfortunately if you use this the Oak dialouge appears like when you battle Rival for the first time.
     

    0m3GA ARS3NAL

    Im comin' home...
  • 1,816
    Posts
    16
    Years
    Oh woops didn't read it properly, my bad.

    trainerbattle 0x9 0x[trainerNumber] 0x3 [textBefore] [textAfter]
    goto [scriptAfter]

    Unfortunately if you use this the Oak dialouge appears like when you battle Rival for the first time.
    You can just use A-text or a hex editor to edit the text in the dialouge though. =D
    I do have one question on that subject though.
    If I were to delete all of the text from the dialouge box, will an empty box show up, or will the boxes disappear?
    And also, how do you define which script will be picked if you win or lose the battle?
    For instance, if you win the battle the opponent would say:
    "Aww, you are too good"
    and if you lose:
    "HA! I won!"

    How can I do that?
     

    Thrace

    @tion
  • 1,048
    Posts
    16
    Years
    • Seen Oct 2, 2016
    You can just use A-text or a hex editor to edit the text in the dialouge though. =D
    I do have one question on that subject though.
    If I were to delete all of the text from the dialouge box, will an empty box show up, or will the boxes disappear?
    And also, how do you define which script will be picked if you win or lose the battle?
    For instance, if you win the battle the opponent would say:
    "Aww, you are too good"
    and if you lose:
    "HA! I won!"

    How can I do that?
    Yeah I imagine it would since you're only editing the text.

    I made a mistake again, it should be [textLose] [textWin] instead of what I wrote. Those are only pointers to text anyway not for another script. To go to a script after you need to use the goto/call command.
     

    0m3GA ARS3NAL

    Im comin' home...
  • 1,816
    Posts
    16
    Years
    Yeah I imagine it would since you're only editing the text.

    I made a mistake again, it should be [textLose] [textWin] instead of what I wrote. Those are only pointers to text anyway not for another script. To go to a script after you need to use the goto/call command.
    Oh... I meant like when you fight Gary Oak in the very beginning of Fire Red Version.
    If you win, then you exit the battle screen. He says different text than if you lost.

    So, how would I do that?
     

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    I have made a script where you get the running shoes using the special command but after the event , i cant run using the b button. Can anyone help me? Thks

    The command for running shoes isn't a special.
    It's setflag 0x82F for Fire red.
    Hope that helps.
     

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    When you use fadescreen, is it possible to write text? As in, when the screen goes black, and before it's back to normal, a text appears. Like the one when you faint(Ash rushed to the pokemon center keeping......).
     

    destinedjagold

    I do not exist.
  • 8,593
    Posts
    17
    Years
    • Seen May 26, 2024
    When you use fadescreen, is it possible to write text? As in, when the screen goes black, and before it's back to normal, a text appears. Like the one when you faint(Ash rushed to the pokemon center keeping......).

    in FireRed, it's possible, but not in Ruby... :\
     
  • 32
    Posts
    15
    Years
    • Age 31
    • Seen Oct 17, 2008
    Can you show me how?
    Or a guide ? (I lost all the saved sites(favorites) on my Fire fox)
    Thanks.

    Im not quite to sure, but i think it
    goes like this.

    Code:
    fadescreen 0x1
    message $message
    boxset 6(whatever you want)
    fadescreen 0x0

    Ill go try it out myself.

    EDIT: it does work. I hope this helps.
     
    Last edited:

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    Im not quite to sure, but i think it
    goes like this.

    Code:
    fadescreen 0x1
    message $message
    boxset 6(whatever you want)
    fadescreen 0x0
    Ill go try it out myself.

    Thanks it worked.
    I only misspelled fadescreen.
    Thanks for the reply again.
     
    Status
    Not open for further replies.
    Back
    Top