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

thethethethe's Scripting Tutorial

12345

Sky
157
Posts
16
Years
    • Seen Aug 18, 2016
    I want to a sprite move in another place forever after active a script
    EX: My character is in A location and After I want this character is in B location forever.
    Can you help me?
    ~~~~~~~
    Sorry, if i have another question i will go to help thread
     
    1,104
    Posts
    16
    Years
  • I want to a sprite move in another place forever after active a script
    EX: My character is in A location and After I want this character is in B location forever.
    Can you help me?
    ~~~~~~~
    Sorry, if i have another question i will go to help thread
    Like the girl in pallet town that constantly moves at the beginning of the game.
    Mixture of a movesprite and a level script.
    Movesprite, layout is same between XSE and Pokescript, you can look here.
    Level Script, Cooley's tutorial, Baro's Spanish Tutorial, wherever else there is one.
     

    pokemon_hacking

    blah_maker
    24
    Posts
    15
    Years
    • Seen Sep 15, 2012
    can somone help me i made this script but all it does it move to the side i want it to say the script then move to the side
    #org $start
    message $hru
    applymovement 0x04 $move
    pausemove 0x0
    applymovement 0xFF $move2
    pause 0x30
    applymovement 0x04 $move3
    applymovement 0xFF $move3
    pausemove 0
    release
    end
    #ORG $hru
    $hru 1 = \c\h01\h06Hello, how are you \n\v\h01?
    thanks in advanced
     
    1,104
    Posts
    16
    Years
  • can somone help me i made this script but all it does it move to the side i want it to say the script then move to the side
    #org $start
    message $hru
    applymovement 0x04 $move
    pausemove 0x0
    applymovement 0xFF $move2
    pause 0x30
    applymovement 0x04 $move3
    applymovement 0xFF $move3
    pausemove 0
    release
    end
    #ORG $hru
    $hru 1 = \c\h01\h06Hello, how are you \n\v\h01?
    thanks in advanced

    The tutorial is there for a reason... You should try reading it.
    Since you said it does move side to side, I'll just assume you left the movements out of this post.
    The problem lies here.
    Code:
    #org $start
    message $hru
    applymovement 0x04 $move
    What needs to follow a message command to appear?
    Boxset
    All 'message' does is copy the text from the rom to the ram.
    The boxset allows it to appear.
    So that little section should appear like this.
    Code:
    #org $start
    message $hru
    boxset 0x6
    applymovement 0x04 $move
     

    pokemon_hacking

    blah_maker
    24
    Posts
    15
    Years
    • Seen Sep 15, 2012
    thank u so much
    i am so happy now

    wat am I doing wrong
    #org $start
    message $hi
    boxset 0x6
    applymovement 0xFF $move
    pausemove 0x0
    applymovement 0xFF $move2
    pause 0x30
    applymovement 0x04 $move3
    applymovement 0xFF $move3
    pausemove 0
    goto 0x1 $battle
    goto 0x2 $warp
    release
    end
    #ORG $hi
    $hi 1 = \c\h01\h06Hello, where am i \n\v\h01?
    #org $move
    #raw 0x06 0x06 0x06 0xFE
    #org $move2
    #raw 0x54 0xFE
    #org $move3
    #raw 0x55 0xFE

    #org $battle
    giveitem 13 1
    release
    end

    #org $warp
    message $****
    boxset 6
    warp 0x0 0x9 0x1
    end
    #org $****
    $**** 1 =going to your house\ni see.
     
    Last edited:
    8
    Posts
    15
    Years
    • Seen Sep 17, 2010
    hey im new to scripting and im trying to do a legendary battle with celebi and heres my script:
    #org $start
    lock
    faceplayer
    message $1
    boxset 6
    cry 0xA1 251
    nop
    nop
    wildbattle 251 50 0x8B
    fadescreen 0
    #raw 0x53 0x0F 0x80
    setflag 0x200
    release
    end
    #org $1
    $1 1 =Celebi:cele,cele,bi

    and every time i try to compile it says run time error 9 subscript out of range
    plz help!!!
     

    pokemon_hacking

    blah_maker
    24
    Posts
    15
    Years
    • Seen Sep 15, 2012
    hi need help

    how to make this start stop from restarting from the begging
    Code:
    #ORG $start
    lock
    faceplayer
    message $talk
    boxset 6
    goto $movement1
    release
    end
     
    #ORG $talk
    $talk 1 = \c\h01\h04hey wats up
     
    #ORG $movement1
    applymovement 0xFF $walk
    pausemove 0x0
    pause 0x30
    message $talk2
    boxset 6
    goto $aaa
    release
    end
     
    #ORG $talk2
    $talk2 1 = \c\h01\h04 kool 
     
    #org $walk
    #raw 0x03 0x04 0x35 0x47 0xFE
     
    #org $aaa
    if B_true goto $finish
    message $fed
    boxset 6
    warp 0x1 0x1 0x0
    release
    end
     
    #ORG $fed
    $fed 1 = \c\h01\h04nm g2g bye.
     
    #ORG $finish
    release
    end
     
    Last edited:
    23
    Posts
    16
    Years
    • Seen Apr 24, 2011
    Hey, brilliant tutorial, learnt to script in one week! But i have a problem with one of my scripts (sorry if it's in the wrong place):

    Spoiler:


    It all goes well, but Ho-oh is assigned to 04, so he should fly past /v/h01, but i think he gets stuck on the movement permissions, how can i make the person event of ho-oh ignore movement permissions? or is it impossible?
     
    1,104
    Posts
    16
    Years
  • thank u so much
    i am so happy now

    wat am I doing wrong
    Spoiler:
    First of all it doesn't look like you understand the goto command. Once you goto a part of a script you can't return.
    You may want to read over that section.

    hey im new to scripting and im trying to do a legendary battle with celebi and heres my script:
    Spoiler:

    and every time i try to compile it says run time error 9 subscript out of range
    plz help!!!
    Try learning how to script. Don't just copy scripts straight out of the tutorial. That's a problem in Pokescript. It occurs in the 0x8B. Just change it to 0x0.

    Hey, brilliant tutorial, learnt to script in one week! But i have a problem with one of my scripts (sorry if it's in the wrong place):

    Spoiler:


    It all goes well, but Ho-oh is assigned to 04, so he should fly past /v/h01, but i think he gets stuck on the movement permissions, how can i make the person event of ho-oh ignore movement permissions? or is it impossible?

    Glad it helped.
    Applymovements are immune to movement permissions. If don't have some form of pause, the movements will stop as there is not time for the moves to complete.
     
    39
    Posts
    16
    Years
  • Well, I think I'd better ask here. Posting message isn't convenient.
    The people ID, also a kind of flag. So how many of them have been used in the game? If I put some people on the map, what IDs can I give them?
     
    1,104
    Posts
    16
    Years
  • Well, I think I'd better ask here. Posting message isn't convenient.
    The people ID, also a kind of flag. So how many of them have been used in the game? If I put some people on the map, what IDs can I give them?

    Well the available amount is the flags that are available.
    I don't think you understand the point of the people id. There only use is to allow NPC's to disappear. If they don't disappear, they have there people id as 0000.
     
    39
    Posts
    16
    Years
  • Well, I wonder if thethethethe knows how to get the trainer info by hex editor? I cant use tools for I'm hacking a Chinese FR. I've almost found most of the info, but some are still unknown.

    I find the trainer by searching his name. befor the name, there are four(or 3 maybe)bytes. I think they are the trainer class info, but I don't have any list of the class byte. So do you have any?

    After it, there are a lot of 00, and in them, a 01 and 02(or 03) appears. What do they mean?
     
    1,104
    Posts
    16
    Years
  • Well, I wonder if thethethethe knows how to get the trainer info by hex editor? I cant use tools for I'm hacking a Chinese FR. I've almost found most of the info, but some are still unknown.

    I find the trainer by searching his name. befor the name, there are four(or 3 maybe)bytes. I think they are the trainer class info, but I don't have any list of the class byte. So do you have any?

    After it, there are a lot of 00, and in them, a 01 and 02(or 03) appears. What do they mean?

    Why are you asking about this here? You can pm me about that.
    It really doesn't have too much to do with this scripting thread.
     
    5
    Posts
    16
    Years
    • Seen Jun 20, 2011
    legendary battle script

    elow,,,is there someone can give me the legendary battle script for pokemon firered?
     

    pokemon_hacking

    blah_maker
    24
    Posts
    15
    Years
    • Seen Sep 15, 2012
    thethethethe i wondering if u can tell me how to contiue a script after u have warped

    eample
    Spoiler:
     
    1,104
    Posts
    16
    Years
  • yer there is like in firered for the profeser
    No there isn't. There is no a way for a script to continue after a warp.
    That event is actually two scripts. Seamless, huh?
    One is a normal event script in Pallet Town, in which Oak takes you back to the lab, and the second is a level script in Prof Oak's lab, which involves the conservation with Gary. They work together so well it seems like there is only one script.
     
    Back
    Top