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

Derlo

Tired....
  • 135
    Posts
    16
    Years
    to disable special ...

    Hello!
    I have a new question!
    Is there some command to disable a command SPECIAL?
    I observed a script and I saw him/it that:


    ...
    special 0x138
    pause 0x20
    clearspecial
    ...

    But I didn't manage to do to work in POKESCRIPT in a ROM of FR.
    If anybody knows how is it that command or the code hexadecimal (#raw??) of him please does post here!

    THANKS!!!
     
  • 4
    Posts
    17
    Years
    • Seen Mar 22, 2008
    How should I use the script in a person to insert him when I can not even compile
     

    Larsie13

    Guest
  • 0
    Posts
    Everytime I add a script, or a signpost to a map, the entire map gets all glitchy. I can't read any signposts anymore, and all warps are broken (meaning I can't use them anymore). But the scripts have been checked, and there are no mistakes. Also I've reinstalled Pokéscript and PkmnADV, but I still get the same problem...
     
  • 39
    Posts
    16
    Years
    jerry and my prblem is still a big prblem...and i decided to learn Hex.So...can anyone translate this familiar script into Hex?
    #org $begin
    lock
    faceplayer
    message $howareyou
    $howareyou 1 =Hey \v\h01!\nHows your journey going?
    boxset 6
    release
    end

    i know its 6A 5A 0F 00 0C 00 80 08 09 06 6C 02 C2 D9 ED 00 FD 01 00 FE C2 E3 EB E7 00 ED E3 E9 E6 00 DE E3 E9 E6 E2 D9 ED 00 DB E3 DD E2 DB AC FF ---just to 800000

    i just couldn't understand this part:0F 00 0C 00 80 08
    0F 00 xx xx xx 08 means message, but what is 0C 00 80? it's the offset 80000C? but i didn't put anything at this offset..and this part works well
     

    Jack of Bl♠des

    Former goderator
  • 194
    Posts
    16
    Years
    Hello there people. I was wondering if anybody had the script for the Birch Event in Pokemon Ruby (as well as the interaction with his bag). I want to change what he says and be able to edit it so that instead of choosing a Starter, I will to be given one predetermined Pokemon when I talk to the Bag. Once I have the script for that, I should be able to tinker it to my liking.

    I would appreciate it big time and take care to credit you.


    Nevermind, I've worked it out on my own.
     
    Last edited:
  • 1,104
    Posts
    16
    Years
    jerry and my prblem is still a big prblem...and i decided to learn Hex.So...can anyone translate this familiar script into Hex?
    #org $begin
    lock
    faceplayer
    message $howareyou
    $howareyou 1 =Hey \v\h01!\nHows your journey going?
    boxset 6
    release
    end

    i know its 6A 5A 0F 00 0C 00 80 08 09 06 6C 02 C2 D9 ED 00 FD 01 00 FE C2 E3 EB E7 00 ED E3 E9 E6 00 DE E3 E9 E6 E2 D9 ED 00 DB E3 DD E2 DB AC FF ---just to 800000

    i just couldn't understand this part:0F 00 0C 00 80 08
    0F 00 xx xx xx 08 means message, but what is 0C 00 80? it's the offset 80000C? but i didn't put anything at this offset..and this part works well

    You used a pointer $howareyou. So ofcourse that is going to be assigned to a certain hex value as well. So you count up the bytes for the first part.
    6A 5A 0F 00 0C 00 80 08 09 06 6C 02
    There are 12 bytes. We convert that to hex, which gives us 0C, So we add that OC to 0x800000, and it gives us teh pointer 0x80000C for where the message starts. Does that explain that pointer?
     

    tImE

    It's still me, 44tim44 ;)
  • 673
    Posts
    17
    Years
    Hi everyone,
    could someone help me with
    this ruby script?
    cause the setmaptile commands doesnt
    work XD!!

    #org $start
    applymovement 0x01 $utropmove_old
    pausemove 0
    applymovement 0xFF $utropmove_you
    pausemove 0
    applymovement 0x01 $utropmove_old_2
    pausemove 0
    message $payin
    $payin 1 = Excuse me are you a trainer?
    boxset 5
    compare LASTRESULT 1
    if 1 goto $pay
    message $no
    $no 1 = Okay, then go away.
    applymovement 0x01 $moveback
    end

    #org $utropmove_old
    #raw 0x56 0x04 0x04 0xFE

    #org $utropmove_you
    #raw 0x56 0x00 0x04 0x03 0x07 0x01 0xFE

    #org $utropmove_old_2
    #raw 0x03 0x07 0x00 0xFE

    #org $moveback
    #raw 0x01 0x05 0x02 0x06 0x01 0x05 0x00 0xFE

    #org $pay
    message $paynow
    $paynow 1 = Oh, you are!\nThen Welcome to BattleGround!
    boxset 6
    applymovement 0x01 $moveback
    setmaptile 12 10 0207 1
    setmaptile 12 9 020F 0
    setmaptile 13 10 0201 0
    setmaptile 13 9 0201 0
    setmaptile 13 11 0201 0
    setmaptile 12 11 0213 0
    warp 0x4 0x3 0x4
    end

    I hope you have time to help me...

    //44tim44
     

    Lord Skall

    Zeik Tuvai
  • 15
    Posts
    16
    Years
    • Seen Apr 25, 2009
    I still have a problem with my script. It only shows the first two lines of text. (Prof. Kauri: Hello \v\h01, \n your turning 14 today\p)

    Script:
    Spoiler:

    Could someone help me with it?
     
  • 1,104
    Posts
    16
    Years
    Hi everyone,
    could someone help me with
    this ruby script?
    cause the setmaptile commands doesnt
    work XD!!

    Code:
    #org $start
    applymovement 0x01 $utropmove_old
    pausemove 0
    applymovement 0xFF $utropmove_you
    pausemove 0
    applymovement 0x01 $utropmove_old_2
    pausemove 0
    message $payin
    $payin 1 = Excuse me are you a trainer?
    boxset 5
    compare LASTRESULT 1
    if 1 goto $pay
    message $no
    $no 1 = Okay, then go away.
    applymovement 0x01 $moveback
    end
    
    #org $utropmove_old
    #raw 0x56 0x04 0x04 0xFE
    
    #org $utropmove_you
    #raw 0x56 0x00 0x04 0x03 0x07 0x01 0xFE
    
    #org $utropmove_old_2
    #raw 0x03 0x07 0x00 0xFE
    
    #org $moveback
    #raw 0x01 0x05 0x02 0x06 0x01 0x05 0x00 0xFE
    
    #org $pay
    message $paynow
    $paynow 1 = Oh, you are!\nThen Welcome to BattleGround!
    boxset 6
    applymovement 0x01 $moveback
    setmaptile 12 10 0x0207 1
    setmaptile 12 9 0x020F 0
    setmaptile 13 10 0x0201 0
    setmaptile 13 9 0x0201 0
    setmaptile 13 11 0x0201 0
    setmaptile 12 11 0x0213 0
    [B]special 0x8E[/B]
    warp 0x4 0x3 0x4
    end

    I hope you have time to help me...

    //44tim44

    Sorry, I haven't used setmaptile in a while. So I fixed what I remembered, but if that doesn't work, put the special 0x8E, before the setmaptiles. My memory is just a little hazy on this command.
     

    tImE

    It's still me, 44tim44 ;)
  • 673
    Posts
    17
    Years
    Thanks thex4!

    ...but there's still a problem when
    the script warps you to refresh map/or if you
    go out and in again the tiles are just like before again XD!!

    //44tim44
     
  • 5
    Posts
    16
    Years
    • Seen Apr 6, 2008
    Hey i this is m first post, and i also wanted to ask around for some help.
    I'm a new hacker to let you know,
    i don't have a single script editorfile ,(and i also need a trainer edito file)
    so can some one help?
     

    +Sneasel™

    It's a meeee, itman!
  • 1,032
    Posts
    17
    Years
    Hey i this is m first post, and i also wanted to ask around for some help.
    I'm a new hacker to let you know,
    i don't have a single script editorfile ,(and i also need a trainer edito file)
    so can some one help?

    do you have an MSN? If you do, i can send you the programs.
    If not, find Pokescript and PokeAdv, or use ScriptED, look around in the toolbox.
     

    Luck

    ¯\_(ツ)_/¯
  • 6,779
    Posts
    16
    Years
    • Seen May 20, 2023
    Can anyone tell me if this script works or not?
    If it doesn't can anyone tell me what i have to correct to make it work?
    Its a kid giving you a PIKACHU with a light ball attached.


    #ORG $begin
    lock
    faceplayer
    checkflag 0x325
    I B_true found $gotoit
    message $q
    boxset 6
    givepokemon 25 1 0 CA
    setflag 0x325
    release
    end

    #org $gotoit
    message $hello
    boxset 6
    release
    end

    org $hi
    $hi 1 = Are you taking care/nof my old PIKACHU?

    #org $q
    $q 1 = I found this PIKACHU/ninjured near my house./pBut i'm not a trainer/nso you can have it.
     

    cooley

    ///Keepin' it simple
  • 1,148
    Posts
    17
    Years
    No That script will not work. It will freeze or something...

    Try this:

    Code:
    #org $begin
    lock
    faceplayer
    checkflag 0x325
    If B_true found $gotoit
    message $q
    boxset 6
    givepokemon 0x19 0x1 0xCA
    setflag 0x325
    release
    end
    
    #org $gotoit
    message $hello
    boxset 6
    release
    end
    
    org $hi
    $hi 1 = Are you taking care\nof my old PIKACHU?
    
    #org $q
    $q 1 = I found this PIKACHU\ninjured near my house.\pBut I'm not a trainer\nso you can have it.

    For the givepokemon thingy the numbers are in hexadeciamal so 0x25 = 0x19
    And can be written without "0x"

    This:
    givepokemon 19 1 CA

    or

    givepokemon 0x19 0x1 0xCA
    -------------------------------------------

    Anyways, I was decompiling some scripts and I found these commands:
    CMD_2F 0x9 0x192800
    and
    pauseevent 0x0

    anyone knows what these mean?
     
  • 1,104
    Posts
    16
    Years

    Anyways, I was decompiling some scripts and I found these commands:
    CMD_2F 0x9 0x192800
    and
    pauseevent 0x0

    anyone knows what these mean?

    You'd have to show the whole script, because bytes get mixed up when commands aren't understood by the program. So that could be something totally different to what that shows there.
    And, I'd assume pauseevent is just pausemove under a different alias.
     

    cooley

    ///Keepin' it simple
  • 1,148
    Posts
    17
    Years
    You'd have to show the whole script, because bytes get mixed up when commands aren't understood by the program. So that could be something totally different to what that shows there.
    And, I'd assume pauseevent is just pausemove under a different alias.

    Ah Man, I have to really write the WHOLE script? Its Gary's script and I viewed it in PKSV.
    I could give you the offset, but not the script. It's on LeafGreen by the way...

    Offset = $16326B
     

    Luck

    ¯\_(ツ)_/¯
  • 6,779
    Posts
    16
    Years
    • Seen May 20, 2023
    Hey thanks for the script info cooley!
    Read the message i sent you and i read foullumps scripting guide.
    it said pikachu was no. 25 but i believe you.
     
  • 1,104
    Posts
    16
    Years
    Ah Man, I have to really write the WHOLE script? Its Gary's script and I viewed it in PKSV.
    I could give you the offset, but not the script. It's on LeafGreen by the way...

    Offset = $16326B

    You've got me stumped there. Most likely becasue I don't know what 0x2F is for. And I was just looking through all the other notepads that come with PKSV, and it looks like score_under just added something even though he didn't know what it did. I decompiled it myself and I came up with this. I guess we'll just have to wait for XSE, and hope that Hackmew has it defined in the program.
    Code:
    #org 0x163283
    #raw 0xC7 0x00   'Msg Colour
    playsound 0x13B
    nop
    compare 0x4001 0x0
    if 0x1 gosub 0x163315
    compare 0x4001 0x1
    if 0x1 gosub 0x163327
    applymovement 0x01 0x1A75B7
    pausemove 0
    applymovement 0x01 0x1A79B9
    pausemove 0
    message 0x179CDB
    boxset 4
    setvar 0x800F 0x1
    compare 0x4031 0x02
    if 0x1 gosub 0x163339
    compare 0x4031 0x1
    if 0x1 gosub 0x163344
    compare 0x4031 0x0
    if 0x1 gosub 0x163365
    #raw 0x2F 0x09 0x00
    pause 0x19
    fadesound 0x153
    nop
    setvar 0x405D 0x1
    #raw 0x6B
    end
     
    Status
    Not open for further replies.
    Back
    Top