• 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 Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.
19
Posts
12
Years
    • Seen Aug 31, 2013
    allright...

    i have a little problem here...
    i just got the give pokemon script..
    i'm using it to pokemon emerald ROM...

    here

    #dynamic 0x800000

    #org @start
    lock
    faceplayer
    checkflag 0x828
    if 0x1 goto @how
    msgbox @give 0x5
    compare 0x800D 0x1
    if 0x1 goto @get
    compare 0x800D 0x0
    if 0x1 goto @ok
    end

    #org @get
    countpokemon
    compare 0x800D 0x6
    if 0x1 goto @deposit
    givepokemon 0x19 0x5 0x44 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @receive 0x4
    waitfanfare
    closeonkeypress
    setflag 0x828
    msgbox @givenickname 0x5
    compare 0x800D 0x1
    if 0x1 goto @name
    compare 0x800D 0x0
    if 0x1 goto @go
    end

    #org @ok
    msgbox @oh 0x6
    release
    end

    #org @name
    setvar 0x8004 0x0
    call @nickname
    goto @takecare

    #org @nickname
    fadescreen 0x1
    special 0x9E
    waitstate
    return

    #org @go
    closeonkeypress
    goto @takecare

    #org @takecare
    msgbox @please 0x6
    release
    end

    #org @how
    msgbox @check 0x6
    release
    end

    #org @deposit
    msgbox @seems 0x6
    release
    end

    #org @give
    = Hello there.\pBy any chance would you want to\nhave this Pikachu?

    #org @oh
    = Oh, I see...

    #org @receive
    = [black_fr]\v\h01 received a Pikachu from the\nOld Man.

    #org @givenickname
    = [black_fr]Would you like to give your\nPokémon a nickname?

    #org @please
    = Please take care of my dear\nPikachu.

    #org @check
    = How's my old Pokémon?

    #org @seems
    = Sepertinya Party mu penuh\lsebaiknya taruh sebagian di\nPokémon Center terdekat

    the problem is, when i want to give a nickname into my pokemon but i goes to a clock... not going to give nickname...

    whats problem.. ?

    thankss
     

    Wobbu

    bunger bunger bunger bunger
    2,794
    Posts
    12
    Years
  • allright...

    i have a little problem here...
    i just got the give pokemon script..
    i'm using it to pokemon emerald ROM...

    here



    the problem is, when i want to give a nickname into my pokemon but i goes to a clock... not going to give nickname...

    whats problem.. ?

    thankss

    Spoiler:


    The biggest problem was that you used the wrong special. Nicknames are not an easy thing to go about, so try doing the changes in red. It's been a long time since I've made a 100% working givepokemon script, but it should work. If it doesn't then feel free to reply.
     
    Last edited:
    19
    Posts
    12
    Years
    • Seen Aug 31, 2013
    Spoiler:


    The biggest problem was that you used the wrong special. Nicknames are not an easy thing to go about, so try doing the changes in red. It's been a long time since I've made a 100% working givepokemon script, but it should work. If it doesn't then feel free to reply.

    hi. thanks for reply..
    it's work, but, why its renaming my first pokemon in party.. ?
    not giving nickname the pokemon that has given to me.. ?
     

    Wobbu

    bunger bunger bunger bunger
    2,794
    Posts
    12
    Years
  • its renaming my first pokemon in party.. ?
    not giving nickname the pokemon that has given to me.. ?

    I was hoping that wouldn't happen... Either that or it would have you nickname a ??? Pokémon.

    I think I figured out what I did wrong.
    Change this part
    Code:
    #org @name
    setvar 0x8004 0x0
    call @nickname
    call @nickname2
    goto @takecare

    to this
    Code:
    #org @name
    setvar 0x8004 0x0
    call @nickname2
    call @nickname
    goto @takecare

    Call @nickname2 should happen before call @nickname.
     
    19
    Posts
    12
    Years
    • Seen Aug 31, 2013
    I was hoping that wouldn't happen... Either that or it would have you nickname a ??? Pokémon.

    I think I figured out what I did wrong.
    Change this part
    Code:
    #org @name
    setvar 0x8004 0x0
    call @nickname
    call @nickname2
    goto @takecare

    to this
    Code:
    #org @name
    setvar 0x8004 0x0
    call @nickname2
    call @nickname
    goto @takecare

    Call @nickname2 should happen before call @nickname.

    Well thanks for you help sir...
    it's worked like a charm... :D
    thanks again.. :D

    okay i want to ask this too..

    about battle legendary pokemon
    here i found the script from rayquaza event..

    Spoiler:

    and the problem is..
    the battle background still a from rayquaza ( rock / underground )

    can i change it to another battle background.. ?
     
    Last edited:
    18
    Posts
    10
    Years
    • Seen Jul 11, 2019
    Hi, I'm trying to edit the Red Fire Rom. But i've got a lot of problems such as a freeze of the game when executing a script, etc.. So i have different questions:

    - Which version of the rom should i use? (GB, US..etc)
    - How can i see which flags/vars values can i use?

    For example, i'd put this script in a point:

    Code:
    #dynamic 0x800000
    
    #org @Start
    lockall
    checkflag 0x1200
    if 0x1 goto @Fine
    msgbox @Notizia 0x6
    applymovement 0xFF @Sorpreso
    waitmovement 0xFF
    msgbox @Pensiero 0x6
    setflag 0x1200
    release
    end
    
    #org @Fine
    msgbox @Pensiero2 0x6
    end
    
    #org @Notizia
    = bla bla
    
    #org @Sorpreso
    #raw 0x62
    #raw 0XFE
    end
    
    #org @Pensiero
    = bla bla
    end
    
    #org @Pensiero2
    = bla bla

    But the only script that the game execute is the "!" above the character. I think the syntax is good.. can you help me? Thanks very much
     

    Wobbu

    bunger bunger bunger bunger
    2,794
    Posts
    12
    Years
  • Well thanks for you help sir...
    it's worked like a charm... :D
    thanks again.. :D

    okay i want to ask this too..

    about battle legendary pokemon
    here i found the script from rayquaza event..

    Spoiler:


    and the problem is..
    the battle background still a from rayquaza ( rock / underground )

    can i change it to another battle background.. ?

    The battle art is determined by the tile that you're standing on. Simply change the tile(s) that you will be standing on when you approach Rayquaza.

    Hi, I'm trying to edit the Red Fire Rom. But i've got a lot of problems such as a freeze of the game when executing a script, etc.. So i have different questions:

    - Which version of the rom should i use? (GB, US..etc)
    - How can i see which flags/vars values can i use?

    For example, i'd put this script in a point:

    Code:
    #dynamic 0x800000
    
    #org @Start
    lockall
    checkflag 0x1200
    if 0x1 goto @Fine
    msgbox @Notizia 0x6
    applymovement 0xFF @Sorpreso
    waitmovement 0xFF
    msgbox @Pensiero 0x6
    setflag 0x1200
    release
    end
    
    #org @Fine
    msgbox @Pensiero2 0x6
    end
    
    #org @Notizia
    = bla bla
    
    #org @Sorpreso
    #raw 0x62
    #raw 0XFE
    end
    
    #org @Pensiero
    = bla bla
    end
    
    #org @Pensiero2
    = bla bla

    But the only script that the game execute is the "!" above the character. I think the syntax is good.. can you help me? Thanks very much

    Any language should work. Either change the lockall command to lock, or change the release command to releaseall. I don't know if that's what's causing the issue, but it won't hurt. Also, check out these threads.
     
    18
    Posts
    10
    Years
    • Seen Jul 11, 2019
    Thanks very much. I used to code in assembly x8086, so i know how it works, i think that it's a problem of offsets.. Do you know how can i access and see which value can i use about flags and vars? And have you a list of all the vars existing in the rom for events? Thanks very very much.
     

    Wobbu

    bunger bunger bunger bunger
    2,794
    Posts
    12
    Years
  • Prepare for a giant wall of text.

    Spoiler:
     
    18
    Posts
    10
    Years
    • Seen Jul 11, 2019
    Thanks very much, so all the values that aren't here could be used? Just last question, i'm sorry for the insistence: do you know the range of the offsets that i can use? (about flags e vars)
     

    Wobbu

    bunger bunger bunger bunger
    2,794
    Posts
    12
    Years
  • If you mean offsets that have free space, anything 0x800000 (FR/LG) / 0xE40000 (Emerald) and higher are safe

    I wouldn't say all of the unused flags and vars are safe. Any flag above the 800s may overwrite vars, and some flags have hidden purposes. The safest range from 200-2FF. Safe vars range from 4011 to 40FF. All of these safe values are for FR and likely LG.

    I would also like to add that it is possible to expand these safe values.
     
    19
    Posts
    12
    Years
    • Seen Aug 31, 2013
    well, i put rayquaza with his script into another tile..
    let's say in a grass

    but still battle art in underground / rock

    sorry for my english..
     
    18
    Posts
    10
    Years
    • Seen Jul 11, 2019
    Hi, I'm trying to edit the Red Fire Rom. But i've got a lot of problems such as a freeze of the game when executing a script, etc.. So i have different questions:

    - Which version of the rom should i use? (GB, US..etc)
    - How can i see which flags/vars values can i use?

    For example, i'd put this script in a point:

    Code:
    #dynamic 0x800000
    
    #org @Start
    lockall
    checkflag 0x1200
    if 0x1 goto @Fine
    msgbox @Notizia 0x6
    applymovement 0xFF @Sorpreso
    waitmovement 0xFF
    msgbox @Pensiero 0x6
    setflag 0x1200
    release
    end
    
    #org @Fine
    msgbox @Pensiero2 0x6
    end
    
    #org @Notizia
    = bla bla
    
    #org @Sorpreso
    #raw 0x62
    #raw 0XFE
    end
    
    #org @Pensiero
    = bla bla
    end
    
    #org @Pensiero2
    = bla bla

    But the only script that the game execute is the "!" above the character. I think the syntax is good.. can you help me? Thanks very much

    Anyone else can help me? My scripts won't work!
     
    18
    Posts
    10
    Years
    • Seen Jul 11, 2019
    I try to insert an easy script, just a message box in a point. But when i go in that point, my game freeze. I really don't know why, it's the US version.
     

    karatekid552

    What happens if I push it?....
    1,771
    Posts
    11
    Years
  • There is the script and the advance-map screen.

    You're using an old XSE version. Get the new one from Gamer2020's tool thread. You will then need to change your msgbox command to look like this:

    msgbox @pointer 0xX

    Where X is:

    0x2 = it's a normal message box, with inbuilt lock and faceplayer (so if you want to use this, then you don't need the lock and faceplayer command).
    0x3 = it's a message box for signposts (like "WELCOME TO PALLET TOWN").
    0x5 = it's a message box for yes/no scripts.
    0x6 = it's a normal message box.
     
    19
    Posts
    12
    Years
    • Seen Aug 31, 2013
    Anyone know about Ferry Ship Script.. ?

    i want to make a new Town buat i can access just with it...
    what script i needed for this. .?
    thanks
     
    Status
    Not open for further replies.
    Back
    Top