• 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.
  • 1,372
    Posts
    18
    Years
    • Seen Jan 18, 2021
    Frostbite said:
    Can someone give me a brief explanation on how to repoint text using Hexecute?

    First you need to locate the pointers of the text, like with Gold the code would be: [4C][Pointer- 2byte]. After the 4C code, you would just need to put in the new pointers/location. That is repointing the data to a new location.
     

    Geeked

    Pokemon Crimson Version
  • 352
    Posts
    16
    Years
    • Seen Oct 9, 2012
    the movement doesn't happen in this script? its supposed to be a rival battle..

    Code:
    #ORG $begin
    checkflag 0x828
    if B_false goto $done
    checkflag 0x222
    if b_true goto $done
    #raw 0x53 0x03 0x00
    applymovement 0xFF $1
    pausemove 0x0
    applymovement 0x03 $2
    pausemove 0
    message $8
    boxset 6
    trainerbattle 1 0x001 $after
    message $further
    boxset 6
    applymovement 0x03 $3
    pausemove 0
    setflag 0x222
    release
    end
    
    #org $done
    release
    end
    
    #ORG $1
    #raw 0x62 0xFE
    
    #ORG $2
    #raw 0x13 0x13 0x13 0x13 0x13 0x13
    #raw 0x13 0x13 0xFE
    
    #ORG $after
    $after 1 = You won...Eh...
    
    #ORG $further
    $further 1 = My name is Xray, We will battle soon in the future, Good luck, And train hard!
    
    #ORG $3
    #raw 0x12
    #RAW 0x12
    #RAW 0x12
    #RAW 0x12
    #RAW 0x12
    #RAW 0xFE
    
    #org $8
    $8 1 =???: Let's Battle!
     
  • 131
    Posts
    17
    Years
    • Seen Jun 16, 2014
    the movement doesn't happen in this script? its supposed to be a rival battle..

    Code:
    #ORG $begin
    checkflag 0x828
    if B_false goto $done
    checkflag 0x222
    if b_true goto $done
    applymovement 0xFF $1
    pausemove 0x0
    applymovement 0x03 $2
    pausemove 0
    message $8
    boxset 6
    trainerbattle 1 0x001 $after
    message $further
    boxset 6
    applymovement 0x03 $3
    pausemove 0
    setflag 0x222
    release
    end
    
    #org $done
    release
    end
    
    #ORG $1
    #raw 0x62 0xFE
    
    #ORG $2
    #raw 0x13 0x13 0x13 0x13 0x13 0x13
    #raw 0x13 0x13 0xFE
    
    #ORG $after
    $after 1 = You won...Eh...
    
    #ORG $further
    $further 1 = My name is Xray, We will battle soon in the future, Good luck, And train hard!
    
    #ORG $3
    #raw 0x12
    #RAW 0x12
    #RAW 0x12
    #RAW 0x12
    #RAW 0x12
    #RAW 0xFE
    
    #org $8
    $8 1 =???: Let's Battle!


    Try like this:

    #ORG $begin
    checkflag 0x828
    if B_false goto $done
    checkflag 0x222
    if b_true goto $done
    #raw 0x55 0x03 0x00
    applymovement 0xFF $1
    pausemove 0
    applymovement 0x03 $2
    pausemove 0
    trainerbattle 1 0x001 $8 $after $further1
    end

    #org $further1
    message $further
    boxset 6
    applymovement 0x03 $3
    pausemove 0
    setflag 0x222
    release
    end

    #org $done
    #raw 0x53 0x03 0x00
    release
    end

    #ORG $1
    $1 1 ; #binary 0x62 0xFE

    #ORG $2
    $2 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0xFE

    #ORG $after
    $after 1 = You won...Eh...

    #ORG $further
    $further 1 = My name is Xray, We will battle soon in the future, Good luck, And train hard!

    #ORG $3
    $3 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0xFE

    #org $8
    $8 1 =???: Let's Battle!
     
    Last edited:

    Geeked

    Pokemon Crimson Version
  • 352
    Posts
    16
    Years
    • Seen Oct 9, 2012
    Okay, the movements still arn't happening I tried this script the way you posted too, Aquila, but no movements..

    Code:
    #ORG $begin
    checkflag 0x828
    if B_false goto $done
    checkflag 0x222
    if b_true goto $done
    #raw 0x55 0x03 0x00
    applymovement 0xFF $1
    pausemove 0x0
    applymovement 0x03 $2
    pausemove 0
    trainerbattle 1 0x001 $8 $after $further1
    end
    
    #org $further1
    message $further
    boxset 6
    applymovement 0x03 $3
    pausemove 0
    setflag 0x222
    release
    end
    
    #org $done
    release
    end
    
    #ORG $1
    #raw 0x62 0xFE
    
    #ORG $2
    #raw 0x13 0x13 0x13 0x13 0x13 
    #raw 0x13 0x13 0x13 0xFE
    
    #ORG $after
    $after 1 = You won...Eh...
    
    #ORG $further
    $further 1 = My name is Xray, We will battle soon in the future, Good luck, And train hard!
    
    #ORG $3
    #raw 0x12 0x12 0x12 0x12 0x12 0xFE
    
    #org $8
    $8 1 =???: Let's Battle!

    the battle happens, and all the talking,, but no movements, and yes its the correct people number >.<
     
  • 131
    Posts
    17
    Years
    • Seen Jun 16, 2014
    Okay, the movements still arn't happening I tried this script the way you posted too, Aquila, but no movements..

    Code:
    #ORG $begin
    checkflag 0x828
    if B_false goto $done
    checkflag 0x222
    if b_true goto $done
    #raw 0x55 0x03 0x00
    applymovement 0xFF $1
    pausemove 0x0
    applymovement 0x03 $2
    pausemove 0
    trainerbattle 1 0x001 $8 $after $further1
    end
    
    #org $further1
    message $further
    boxset 6
    applymovement 0x03 $3
    pausemove 0
    setflag 0x222
    release
    end
    
    #org $done
    release
    end
    
    #ORG $1
    #raw 0x62 0xFE
    
    #ORG $2
    #raw 0x13 0x13 0x13 0x13 0x13 
    #raw 0x13 0x13 0x13 0xFE
    
    #ORG $after
    $after 1 = You won...Eh...
    
    #ORG $further
    $further 1 = My name is Xray, We will battle soon in the future, Good luck, And train hard!
    
    #ORG $3
    #raw 0x12 0x12 0x12 0x12 0x12 0xFE
    
    #org $8
    $8 1 =???: Let's Battle!

    the battle happens, and all the talking,, but no movements, and yes its the correct people number >.<

    What rom do you use? If you use Fire Red my script should work.... I tried it myself....
     

    Geeked

    Pokemon Crimson Version
  • 352
    Posts
    16
    Years
    • Seen Oct 9, 2012
    Yes, Im using Firered, Its still not working >.<
     

    Dr.Razor

    Yellow Remaker
  • 101
    Posts
    16
    Years
    hi,
    when i insert this script the game just freeze,
    so what's the probleme?
    Code:
    #org $start
    message $1
    boxset 6
    applymovement 0x11 $move
    pausemove 0x0
    applymovement 0x10 $move2
    pausemove 0x0
    applymovement 0x09 $move2
    pause 0x30
    playsound 0x112
    nop
    message $2
    boxset 6
    applymovement 0x04 $move3
    applymovement 0xFF $move3
    pausemove 0
    fadesound 0x12C
    nop
    release
    end
    
    
    #org $move
    #raw 0x1D 0x1D 0x1D 0x1D 0x1D 0x14 0x1F 0xFE
    
    #org $move2
    #raw 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE
    
    #org $move3
    #raw 0x1E 0x1E 0x1E 0x1E 0x1E 0x1E 0xFE
    
    #org $1
    $1 1 =Ahhhhhhh!!!
    
    #org $2
    $2 1 =Qui ose se mettre sur la\nroute de la TEAM ROCKET?\pOn se reverra...
     

    Kurosaki Ichigo

    Flannery's #1 Obsessor
  • 2,489
    Posts
    18
    Years
    I'm pretty new to all this and a lot of it makes no sense to me...so if someone could aid me scripting and such I would be very happy. ^^
     

    Geeked

    Pokemon Crimson Version
  • 352
    Posts
    16
    Years
    • Seen Oct 9, 2012
    OMFG, someone please help me!!!

    Code:
    #ORG $begin
    checkflag 0x828
    if B_false goto $done
    checkflag 0x222
    if b_true goto $done
    #raw 0x55 0x03 0x00
    applymovement 0xFF $1
    pausemove 0
    applymovement 0x03 $2
    pausemove 0
    trainerbattle 1 0x001 $8 $after $further1
    end
    
    #org $further1
    message $further
    boxset 6
    applymovement 0x03 $3
    pausemove 0
    setflag 0x222
    release
    end
    
    #org $done
    #raw 0x53 0x03 0x00
    release
    end
    
    #ORG $1
    $1 1 ; #binary 0x62 0xFE
    
    #ORG $2
    $2 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0xFE
    
    #ORG $after
    $after 1 = You won...Eh...
    
    #ORG $further
    $further 1 = My name is Xray, We will battle soon in the future, Good luck, And train hard!
    
    #ORG $3
    $3 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0xFE
    
    #org $8
    $8 1 =???: Let's Battle!

    theres only one movement, thats the first one!!!!!!!!
     
  • 4
    Posts
    16
    Years
    • Seen Mar 19, 2009
    Hi !
    (Oh, it's my first post :p)

    So, this's my script, I know there are mistakes, but I don't find it !

    Code:
    #org $start
    lock
    faceplayer
    message $msgstart
    boxset 6
    #raw 0x8F 0x03 0x00
    compare 0x800D 0x0
    if 0x1 goto $option1
    compare 0x800D 0x1
    if 0x1 goto $option2
    compare 0x800D 0x2
    if 0x1 goto $option3
    end
    release
    
    #org $msgstart
    $msgstart 1 =Hi.\nWhen I was young,\p I was a super Trainer !\n But now,\l I get just this pokemon...\p I want you take it,\l and this egg...
    
    #org $option1
    givepokemon 144 5 0
    #raw 0x7A 0x00 0x97
    #raw 53
    #raw 3
    #raw 00
    end
    release
    
    #org $option2
    givepokemon 145 5 0
    #raw 0x7A 0x0 0xFB
    #raw 53
    #raw 3
    #raw 00
    end
    release
    
    #org $option2
    givepokemon 146 5 0
    #raw 0x7A 0x01 0x99
    #raw 53
    #raw 3
    #raw 00
    end
    release


    Thanks in advance ;)
     

    Geeked

    Pokemon Crimson Version
  • 352
    Posts
    16
    Years
    • Seen Oct 9, 2012
    Okay guys! I fixed it, the movements were the wrong way, he was supposed to be walking left, not right! Thank You Aquila!
     

    linkandzelda

    Ex-rom hacker turned indie game developer
  • 777
    Posts
    17
    Years
    i have a problem. its been awhile since i asked anyone for scripting help but i need to know if there is a remove pokemon command.

    thanks in advnace
    link
     

    BakingBluePotatoe

    The Red Death Alchemist
  • 2,281
    Posts
    16
    Years
    For Daniel: NEVER, I repeat, NEVER use the same offset twice(or more) in one script.
    For Kitsune:
    Spoiler:

    It STILL does that! >.<

    somebody help me, please! >.<
     
  • 91
    Posts
    17
    Years
    • Seen Nov 1, 2010
    try this. not sure if it works.
    and 0x60.. dang you have 60 people sprites in your map?

    Code:
    #org $start
    callasm 0x71B771
    #raw 0x1
    checkflag 0x200
    if b_true goto $done
    givepokemon 4 5 0x8B
    message $take
    boxset 6
    applymovement 0x60 $balldiss
    [COLOR="Red"]pausemove 0[/COLOR]
    callasm 0x71B771
    #raw 0x01
    setflag 0x828
    setflag 0x200
    release
    end
    
    #org $done
    release
    end
    
    #org $take
    $take 1 = \v\h01's mind: This must be\nthe ball she ment! I wonder how this\pis special? Oh well, I guess\nI'll find out soon enough!
    
    #org $balldiss
    balldiss 1 ; #binary 0x60 0xFE
     

    BakingBluePotatoe

    The Red Death Alchemist
  • 2,281
    Posts
    16
    Years
    try this. not sure if it works.
    and 0x60.. dang you have 60 people sprites in your map?

    Code:
    #org $start
    callasm 0x71B771
    #raw 0x1
    checkflag 0x200
    if b_true goto $done
    givepokemon 4 5 0x8B
    message $take
    boxset 6
    applymovement 0x60 $balldiss
    [COLOR="Red"]pausemove 0[/COLOR]
    callasm 0x71B771
    #raw 0x01
    setflag 0x828
    setflag 0x200
    release
    end
    
    #org $done
    release
    end
    
    #org $take
    $take 1 = \v\h01's mind: This must be\nthe ball she ment! I wonder how this\pis special? Oh well, I guess\nI'll find out soon enough!
    
    #org $balldiss
    balldiss 1 ; #binary 0x60 0xFE

    it's the lab... it has 2 less than the real one in FR O_O

    heh... I was modifying the sample script with the shiny thing, and... well, yeah.
     

    tknight

    Knight of Time
  • 11
    Posts
    17
    Years
    • Seen Feb 16, 2017
    can any one help me i made a script for ScriptED but it does not work
    here it is
    Code:
    #org 0x278EC4
    lock
    Faceplayer
    msgbox 0x278EC5
    callstd 0x6
    
    applymovement 0x13 0x278EC6
    pausemove 0x0
    msgbox 0x278EC7
    callstd 0x6
    trainerbattle 0 0x001 0x278EC8 0x278EC9
    msgbox 0x278ECA
    callstd 0x6
    playsound 0x112
    nop
    applymovement 0x13 0x278ECB
    pausemove 0x0
    applymovement 0xFF 0x278ECC
    applymovement 0x13 0x278ECC
    pausemove 0x30
    msgbox 0x278ECD
    applymovement 0xFF 0x278ECE
    fadesound 0x11F
    nop
    warp 0x1 0x123 0x6
    Release
    End
    
    #org 0x278EC5 1
     = GRUNT 1: The time gate is up\n and running.\p
    GRUNT 2: good get it ready.
    
    #org 0x278EC6
    #raw 0x62 0x00 0x10 0x10
    
    #org 0x278EC7 1
     = GRUNT 2: What you do here kid\n get out of here or\p get ready to battle.
    
    #org 0x278EC8
    0x278EC8 1 = Get ready to lose kid.
    
    #org 0x278EC9
    0x278EC9 1 = No! how did i lose
    
    #org 0x278ECA
     = Ok kid you are coming with me.
    
    #org 0x278ECB
    #raw 0x12 0x4E 0x10 0x13 0x01
    
    #org 0x278ECC
    #raw 0x11 0x11 0x11 0x11 0x11
    
    #org 0x278ECD 1
     = Ok kid go into the time gate.
    
    #org 0x278ECE
    #raw 0x11 0x11
     
  • 24
    Posts
    16
    Years
    • Seen Sep 22, 2011
    So... yeah... This script won't even compile. It keeps giving me an error saying

    "Run-Time Error '457': this key is already associated with an element of this collection"
    The only thing I can fathom out of that is that I repeated an offset, but I've checked over and over again and I can't find any repeated offsets.

    Spoiler:
     

    /Circa

    a face in the clouds.
  • 881
    Posts
    16
    Years
    i have a problem. its been awhile since i asked anyone for scripting help but i need to know if there is a remove pokemon command.

    thanks in advnace
    link

    I don't think so, if you want the whole part rid of then you clearflag, but a certain Pokemon I don't beleive is possible.

    So... yeah... This script won't even compile. It keeps giving me an error saying

    The only thing I can fathom out of that is that I repeated an offset, but I've checked over and over again and I can't find any repeated offsets.

    Spoiler:

    Everything in red is a repeat.
    Also, in some parts, that are too many spaces.
     
    Status
    Not open for further replies.
    Back
    Top