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

Reaper 6

(Reaper 6) the six samurai YGO
  • 122
    Posts
    16
    Years
    • Seen Dec 8, 2009
    but i need only the command for choosing one of the three pokemon he offers what is it?
     
  • 860
    Posts
    17
    Years
    This is my replacement script for Professor Oak, to make him actually appear in the Lab. I have gone way wrong with this but I have no idea exactly what to do with it (note I've been scripting for only a week).
    Spoiler:
    where does it go wrong? cuz I think the prob is the warp part (not sure) but I think where you have ,warp $oakwarp, youd do this ,warp 0x3 0x4 0x3, hope I helped..;)
     
  • 74
    Posts
    16
    Years
    • Age 29
    • USA
    • Seen May 9, 2010
    HELP!!

    Hi, I'm new to hacking and I need help. I'm not sure that this is the right thread to ask but I
    want to add a warp panel to littleroot town. I have made the outside of a cave and want to
    add a warp to inside the cave. Can someone please tell me how to add a warp and the
    room where it ends? It would be much appreciated. I have included the urls of some pics.
    Spoiler:
     
    Last edited:

    Commander_Latios

    The man of Eternal Boredom...
  • 313
    Posts
    16
    Years
    ok, i'm not sure if this is possible, but can i use a script to make the player's sprite change? and by that, i don't mean give him green hair, i mean a sprite change as in, your character lays down in a bed and wakes up as a pokemon or something like that. i have two sprites all set up, but i'm not sure if i can swap them around...

    and again, i don't mean sprite editing. I've made two custom sprites, and I want the game to switch it to use the second sprite after progressing through the storyline.
     
    Last edited:

    kebbles

    Rom Hacker.
  • 616
    Posts
    16
    Years
    With this script, it works fine, but when they walk up to you it dosn't do the trainer battling music, like while there talking to you.

    Code:
    #org $go
    trainerbattle 1 0x001 $before $after
    message $beaten
    boxset 6
    release
    end
    
    #org $before
    $before 1 = Let's battle!
    
    #org $after
    $after 1 = I lost...
    
    #org $beaten
    $beaten 1 = You already won, why are you\nstill bothering me?!

    Can someone please take a look at it.
     

    Ghost

    [b][color=orange]ツ[/color][color=teal][i]In the Ma
  • 742
    Posts
    16
    Years
    Code:
    #org $start
    checkflag 0x200
    if B_true goto $done
    applymovement 0x03 $go
    pausemove 0
    message $hey
    $hey 1 =\c\h01\h06Ramon:Hey,the Professor is going\nto give us a pokemon.\pFirst,lets go to Mt.Waterfall.
    boxset 6
    applymovement 0x03 $now
    applymovement 0xFF $fol
    pausemove 0
    message $2
    $2 1 =\c\h01\h06Ramon:Whoo
    boxset 6
    applymovement 0x03 $noe
    applymovement 0x02 $kick
    pausemove 0
    message $you
    $you 1 =\c\h01\h06???:You guys think you're so bossy.\nNext time don't come near my house.\pRamon:I cannot take something like that.
    boxset 6
    applymovement 0x03 $6
    pausemove 0
    message $1
    $1 =\c\h01\h06Ramon:Who's that
    boxset 6
    applymovement 0x03 $ok
    applymovement 0x02 $fin
    pausemove 0
    message $that
    $that 1 =\c\h01\h06Ramon:I guess I scared him off\nLets keep going.
    boxset 6
    applymovement 0x03 $leave
    pausemove 0
    setflag 0x200
    release
    end
    #org $done
    release
    end
    #org $go
    $go 1 ; #binary 0x13 0x13 0x10 0x10 0xFE
    #org $now
    $now 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x01 0xFE
    #org $ok
    $ok 1 ; #binary 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x62 0xFE
    #org $fol
    $fol 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0xFE
    #org $6
    $6 1 ; #binary 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x62 0xFE
    #org $kick
    $kick 1 ; #binary 0x10 0x10 0x10 0x10 0x10 0xFE
    #org $noe
    $noe 1 ; #binary 0x15 0x62 0x62 0x62 0x62 0x62 0xFE
    #org $fin
    $fin 1 ; #binary 0x62 0x15 0x13 0x13 0x13 0x13 0x13 0x11 0x11 0x11 0x11 0x11 0x1E 0x60 0xFE
    #org $leave
    $leave 1 ; #binary 0x11 0x11 0x13 0x13 0x13 0x60 0xFE

    Why doesnt this script work,I step on the tile and notin happens
     

    4fetter0_0

    Banned
  • 36
    Posts
    16
    Years
    • Seen May 25, 2008
    Code:
    #org $start
    checkflag 0x200
    if B_true goto $done
    applymovement 0x03 $go
    pausemove 0
    message $hey
    $hey 1 =\c\h01\h06Ramon:Hey,the Professor is going\nto give us a pokemon.\pFirst,lets go to Mt.Waterfall.
    boxset 6
    applymovement 0x03 $now
    applymovement 0xFF $fol
    pausemove 0
    message $2
    $2 1 =\c\h01\h06Ramon:Whoo
    boxset 6
    applymovement 0x03 $noe
    applymovement 0x02 $kick
    pausemove 0
    message $you
    $you 1 =\c\h01\h06???:You guys think you're so bossy.\nNext time don't come near my house.\pRamon:I cannot take something like that.
    boxset 6
    applymovement 0x03 $6
    pausemove 0
    message $1
    $1 =\c\h01\h06Ramon:Who's that
    boxset 6
    applymovement 0x03 $ok
    applymovement 0x02 $fin
    pausemove 0
    message $that
    $that 1 =\c\h01\h06Ramon:I guess I scared him off\nLets keep going.
    boxset 6
    applymovement 0x03 $leave
    pausemove 0
    setflag 0x200
    release
    end
    #org $done
    release
    end
    #org $go
    $go 1 ; #binary 0x13 0x13 0x10 0x10 0xFE
    #org $now
    $now 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x01 0xFE
    #org $ok
    $ok 1 ; #binary 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x62 0xFE
    #org $fol
    $fol 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0xFE
    #org $6
    $6 1 ; #binary 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x62 0xFE
    #org $kick
    $kick 1 ; #binary 0x10 0x10 0x10 0x10 0x10 0xFE
    #org $noe
    $noe 1 ; #binary 0x15 0x62 0x62 0x62 0x62 0x62 0xFE
    #org $fin
    $fin 1 ; #binary 0x62 0x15 0x13 0x13 0x13 0x13 0x13 0x11 0x11 0x11 0x11 0x11 0x1E 0x60 0xFE
    #org $leave
    $leave 1 ; #binary 0x11 0x11 0x13 0x13 0x13 0x60 0xFE

    Why doesnt this script work,I step on the tile and nothing happens
    .......
    ..03 00
    ..52 40
    ..00 00
    ..00 00
     
  • 1,104
    Posts
    16
    Years
    This is my replacement script for Professor Oak, to make him actually appear in the Lab. I have gone way wrong with this but I have no idea exactly what to do with it (note I've been scripting for only a week).
    Spoiler:

    If you've only been scripting for a week, you wouldn't want to try and replace the Oak script and still keep the other events. I wrote a script for someone (I don't have it anymore), and you have set certain variables to activate level scripts, and set certain flags to activate other events/make people dissapear. The only advice I'll give you is, with the experience that you have, ignore that script or redo the other parts yourself.
     

    kebbles

    Rom Hacker.
  • 616
    Posts
    16
    Years
    This is for a pokeball item, like the ones laying around, it works fine but won't dissapear.
    I set the id to 219 in advancemap, maybe theres something wrong with the script?


    Code:
    #org $begin
    checkflag 0x219
    giveitem 0xD 1
    checkflag 0x219
    release
    end

    Can someone please take a look at it?
     

    WindBlows

    It's been a long time!
  • 749
    Posts
    17
    Years
    • Seen Aug 5, 2023
    I need help with one script.

    I need to know how to make a script of a item you find somewhere.

    E.g. [PLAYER] found a PokeBall. [Player] putted it on the bag.

    And the pokeball of the item disappears

    Or something like that. Please.

    thanks ^_^
     
  • 170
    Posts
    16
    Years
    I need help with one script.

    I need to know how to make a script of a item you find somewhere.

    E.g. [PLAYER] found a PokeBall. [Player] putted it on the bag.

    And the pokeball of the item disappears

    Or something like that. Please.

    thanks ^_^

    #raw 53
    #raw <people nr>
    #raw 00
    setflag 0x<number>

    that will make the pokeball dissapear.. in a script it would be like this:
    Code:
    #org $start
    checkflag 0x200
    if 1 goto $done
    giveitem 0x4 1
    #raw 53
    #raw 01 (the people number)
    #raw 00
    setflag 0x200
    release
    end
    
    #org $done
    release
    end
     

    Teh Baro

    In my times...!
  • 521
    Posts
    18
    Years
    #raw 53
    #raw <people nr>
    #raw 00
    setflag 0x<number>

    that will make the pokeball dissapear.. in a script it would be like this:
    Code:
    #org $start
    checkflag 0x200
    if 1 goto $done
    giveitem 0x4 1
    #raw 53
    #raw 01 (the people number)
    #raw 00
    setflag 0x200
    release
    end
    
    #org $done
    release
    end

    Actually the game does that through a callstd function.
    Remember this: the best answers are found in the original scripts from the game, not in the board. View them before asking
     

    TB Pro

    Old-timer
  • 2,708
    Posts
    19
    Years
    This is for a pokeball item, like the ones laying around, it works fine but won't dissapear.
    I set the id to 219 in advancemap, maybe theres something wrong with the script?


    Code:
    #org $begin
    checkflag 0x219
    giveitem 0xD 1
    [B]setflag[/B] 0x219
    release
    end

    Can someone please take a look at it?
    Lol little mistake bud, corrections in bold.
     
    Status
    Not open for further replies.
    Back
    Top