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

0m3GA ARS3NAL

Im comin' home...
  • 1,816
    Posts
    16
    Years
    I am just giving an example. lol
    There is a 24 hour one, but what is it for Fire red? the command..
    Thanks.
    Well, since Fire Red doesn't have an in-game clock... I wouldn't think there would be one...
    If there is, it would probably be found in a script... try thinking of a script in Fire red that has a time function, if any, then scan through it (look it over) if it has any, you can find it like that. (that is how I got the ones for Emerald Version.)
     

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    does anyone know how to do a script with multiple choices and answers such as when you open click a pc and see the different choices, any help?

    >Go to thethethethe's scripting tutorial, and you will find it.

    >And thanks for the reply 0m3GA AR$3NL.
     
  • 74
    Posts
    16
    Years
    • Seen Jan 28, 2013
    >Go to thethethethe's scripting tutorial, and you will find it.

    >And thanks for the reply 0m3GA AR$3NL.

    yea, ive seen that and that is the base of what im looking for, but i'm looking for inserting your own options not just the owns already i the game, does that make sense?
     

    0m3GA ARS3NAL

    Im comin' home...
  • 1,816
    Posts
    16
    Years
    yea, ive seen that and that is the base of what im looking for, but i'm looking for inserting your own options not just the owns already i the game, does that make sense?
    Well, first off, you need to find the offset for the multichoice box you are trying to find. (That, or use A-text)
    Then, edit the multichoice box, being sure not to overwrite anything.
    Then get the ID of the multichoice box. (Example 1F is
    5F
    4F
    3F
    2F
    1F
    EXIT)
    And use your custom box like that!
    (Choice #1 would be
    compare LASTRESULT 0x0
    if b_true goto @example

    and choice 2 would be
    compare LASTRESULT 0x1
    if b_true goto @example2)
    You get it?
    Here is a list of the multichoice box ID numbers
    Spoiler:
     
  • 1,619
    Posts
    16
    Years
    can anyone help me one this script its a give pokemon script ( im hacking ruby)
    what happens: i go to speak to my mum and the text wont activate so it doesnt do anything.
    im using XSE

    here is the script:

    #org 0x800000
    lock
    faceplayer
    checkflag 0x800
    if 0x0 goto 0x8800014
    if 0x1 goto 0x8800035
    release
    end
    '-----------------------
    #org 0x800014
    givepokemon 0x58 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    waitfanfare
    setflag 0x828
    msgbox 0x880003F '"hey hows it going kid you \nare fin..."
    callstd 0x6
    release
    end
    '-----------------------
    #org 0x800035
    msgbox 0x88000DE '"Umm sorry kid but i only caught\nyo..."
    callstd 0x6
    end

    '---------
    ' Strings
    '---------
    #org 0x80003F
    = hey hows it going kid you \nare finally 10 years old so that \pmeans you leave to go on your \njourney so here is your growlithe\ngood luck on your journey !
    #org 0x8000DE
    = Umm sorry kid but i only caught\nyou one pokemon,bye kid.
     
  • 857
    Posts
    15
    Years
    Spoiler:
    can anyone help me one this script its a give pokemon script ( im hacking ruby)
    what happens: i go to speak to my mum and the text wont activate so it doesnt do anything.
    im using XSE

    here is the script:

    #org 0x800000
    lock
    faceplayer
    checkflag 0x800
    if 0x0 goto 0x8800014
    if 0x1 goto 0x8800035
    release
    end
    '-----------------------
    #org 0x800014
    msgbox 0x880003F '"hey hows it going kid you \nare fin..."
    callstd 0x6
    givepokemon 0x58 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    waitfanfare
    setflag 0x800
    release
    end
    '-----------------------
    #org 0x800035
    msgbox 0x88000DE '"Umm sorry kid but i only caught\nyo..."
    callstd 0x6
    release
    end

    '---------
    ' Strings
    '---------
    #org 0x80003F
    = hey hows it going kid you \nare finally 10 years old so that \pmeans you leave to go on your \njourney so here is your growlithe\ngood luck on your journey !
    #org 0x8000DE
    = Umm sorry kid but i only caught\nyou one pokemon,bye kid.
    Well I think you should check your grammar, other then that, changes are in bold...
    It should work fine, if you used the /n,/p,/l right.
     

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    Spoiler:


    I did this from scratch.
    Try it.
     
  • 1,619
    Posts
    16
    Years
    Spoiler:


    I did this from scratch.
    Try it.
    hmm no it still doesnt work
     

    Ninja Caterpie

    AAAAAAAAAAAAA
  • 5,979
    Posts
    16
    Years
    No need to do that.
    After checkflag, put
    Code:
    if 0x0 goto @done
    I think before is was checking and then if it WASN'T set go to done. xD

    You should also fix up your grammar (tonnes of people hate bad grammar) and let you choose a nickname, give the music as well as tell you you got the Pokemon. For now, she'll say hello and you have the Pokemon. That's it.
     
  • 788
    Posts
    17
    Years
    • Seen Jun 1, 2024
    In a hidesprite script, when I take a step the person re-appears.
    How do I stop this?

    Set a flag in the script, and put the same flag in the person's people ID. That'll stop them from reappearing. So, after the hidesprite #raws, put a setflag, more than likely 0x200, and then put that flag in the person's people ID, so if the flag is 0x200, put 0200 as the ID.

    That should work.
     

    Daniel A.

    PokePower!
  • 82
    Posts
    15
    Years
    I have a script here:


    Code:
    #org $start
    checkflag 0x828
    if b_true goto $done
    message $1
    boxset 5
    compare LASTRESULT 0x1
    if b_true goto $take
    message $2
    boxset 6
    release
    end
    
    #org $take
    givepokemon 4 5 0
    fanfare 0x13E
    message $3
    boxset 4
    waitfanfare
    #raw 0x68
    setflag 0x828
    message $4
    boxset 5
    compare LASTRESULT 0x1
    if b_true gosub $name
    message $5
    boxset 6
    release
    end
    
    #org $name
    call 0x1A74EB
    return
    
    #org $done
    message $6
    boxset 6
    release
    end
    
    #org $1
    $1 1 =I'm sorry, I can't take care\nof my Charmander.\pCan you take care of it for me?
    
    #org $2
    $2 1 =That's okay. I'm sure someone\nelse will take it.
    
    #org $3
    $3 1 =\c\h01\h02You received a Charmander!
    
    #org $4
    $4 1 =\c\h01\h02Would you like to rename Charmander?
    
    #org $5
    $5 1 =Take Care of Charmander.
    
    #org $6
    $6 1 =I hope you're taking good care of\nCharmander.is correct?

    is it correct?
     

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    It's correct.
    Did you get it from thethethethe's tutorial?
    Is anything not working in it?
     

    Daniel A.

    PokePower!
  • 82
    Posts
    15
    Years
    It's correct.
    Did you get it from thethethethe's tutorial?
    Is anything not working in it?
    yes I did get it from there.

    The only problem is it says "invalid code" on about each line and then it says "processed 0 lines"... I tried installing it again and deleting the other and made pokescript in the pokewitch folder but that didn't work. It is still the same. Do you know the problem?
     
    Status
    Not open for further replies.
    Back
    Top