• 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.
219
Posts
16
Years
  • Thank you so much. It finally works. I swear I tried that though. I don't know.

    EDIT: But now after this script is run, it bypasses the message and movement:

    '---------------
    #org 0x801100
    lock
    special 0x16F
    setflag 0x82F
    setvar 0x4001 0x0
    setvar 0x8004 0x0
    setvar 0x8005 0x2
    special 0x174
    setvar 0x4050 0x1
    setflag 0x2C
    setflag 0x4001
    setflag 0x829
    special 0x181
    additem 0x4 0x5
    additem 0x15D 0x1
    release
    end
    There're two commands that I'm not sure if they're used correct:
    special 0x174
    special 0x181'especially this one
    I searched them in JPAN 's tut,but not sure they should be used there.
    Try to remove them.
     

    BlitŻ1

    guahh my dog is so cute
    472
    Posts
    15
    Years
  • I've tried looking for this document over the internet, here and on other forums, but I can't find it. So does anybody know all the sound effects for fire red? I mainly need the warp noise and some other sound effects, so if anybody can help me find it, it would be greatly appreciated ^^
     

    0d'

    38
    Posts
    14
    Years
    • Seen Nov 30, 2014
    Hello, guys.. I'm a kind newbie in scripting.. I started few days ago...
    I'm trying to do a script for my first hack.
    Thats what happen :
    It's one day before the player's 18th birthday, he was at the rival's place (which is his friend). He get back home (the player is orphan, so the one who take cares of him is his deceased dad's bestfriend) and talk to your adoption dad, he says that you should go get some sleep. When you wake up he's not there anymore.

    I tried making a script on my own, of course for trainning my skills.
    Spoiler:


    Things that are not working:
    The guy's sprite doesn't disappear.
    When the screen fades and warp the player to his room, he appears in the wrong X/Y position I've selected.

    Could someone help ?
    Sorry for my english, it's far from good. :\


    Thanks
     

    JPAN

    pokemon rom researcher
    104
    Posts
    15
    Years
    • Seen Jul 2, 2016
    to 0'd

    First, hidesprite only works correctly under some conditions.
    Hidesprite works with the second person number, the one in advance map appears after the "Delete event" button. Also, it is only permanent if the sprite has a unique Person ID. So, to make the sprite disappear permanently after the code, put an unique number in the Person ID field.

    Lastly all the warp commands I saw use
    warp 0xbank 0xmap 0xFF 0xcoordX 0xcoordY,
    while you used
    warp 0xbank 0xmap 0x00 0xcoordX 0xcoordY,
    So if you make the change there from 0x0 to 0xff, it should work.
     
    74
    Posts
    14
    Years
    • Age 29
    • USA
    • Seen Aug 22, 2010
    Game: FireRed
    Type: Sign
    Editor: XSE
    Script:
    Spoiler:



    So, when you start off the game, you are in the Boot Camp for the evil team of the game (Unnamed right now), and you just follow simple tasks that you would in a normal boot camp. There are signs at each trial that tell you what you must do. I have tried this multiple times, but it never seems to work. What is the problem with my script?
     

    monkeyman2092

    Aipom Awesome!!
    140
    Posts
    14
    Years
    • Seen Sep 7, 2009
    Game: FireRed
    Type: Sign
    Editor: XSE
    Script:
    Spoiler:



    So, when you start off the game, you are in the Boot Camp for the evil team of the game (Unnamed right now), and you just follow simple tasks that you would in a normal boot camp. There are signs at each trial that tell you what you must do. I have tried this multiple times, but it never seems to work. What is the problem with my script?

    Check your script now. I fixed it.
     

    0d'

    38
    Posts
    14
    Years
    • Seen Nov 30, 2014
    Sup, guys. Here I am again...
    So I changed some stuff in my script.
    Spoiler:


    The hidesprite is actually not working.

    Here's what I whant to do:
    Spoiler:


    That's it...

    Now could someone fix this script in a way that the guy disappears using hidesprite ?
    And tell me how does it work, cuz I also want to understand it.

    Thanks
     

    pokemon_hacking

    blah_maker
    24
    Posts
    15
    Years
    • Seen Sep 15, 2012
    can someone tell me wats wrong with this script
    #dynamic 0x801319
    #org @start
    lock
    faceplayer
    msgbox @1 0x6
    call 0x1A74EB
    release
    end

    #org @1
    = Hi.\nMy name is Diego.
     

    Curt_09

    Also known as Chozo
    557
    Posts
    15
    Years
  • can someone tell me wats wrong with this script
    #dynamic 0x801319
    #org @start
    lock
    faceplayer
    msgbox @1 0x6
    call 0x1A74EB
    release
    end

    #org @1
    = Hi.\nMy name is Diego.

    Check the script you are calling, 0x1A74EB. It needs to end with "return" so that it returns here, not with the "end" command which will end the whole thing without returning to release you.
     

    sasquatchd00d

    welcoming a clean head.
    264
    Posts
    15
    Years
  • Sup, guys. Here I am again...
    So I changed some stuff in my script.
    Spoiler:


    The hidesprite is actually not working.

    Here's what I whant to do:
    Spoiler:


    That's it...

    Now could someone fix this script in a way that the guy disappears using hidesprite ?
    And tell me how does it work, cuz I also want to understand it.

    Thanks

    The 0x13 of the hidesprite isn't in hex. The number 13 is D in hex. So you should have 0xD I believe. Try that and see if it works. I'm not much of a scripter so I may be wrong.
     

    pokemon_hacking

    blah_maker
    24
    Posts
    15
    Years
    • Seen Sep 15, 2012
    Check the script you are calling, 0x1A74EB. It needs to end with "return" so that it returns here, not with the "end" command which will end the whole thing without returning to release you.
    oh sweet thanks :D "writing this so its not 2 short okie"

    ok i need help with one more thing im using this in pokemon ruby why does this script warp me into tress
    '---------------
    #org 0x8011F0
    warp 0x0 0x0 0x9 0x0 0x0
    return
     
    Last edited:

    Gamer2020

    Accept no Imitations!
    1,062
    Posts
    15
    Years
  • Is it possible to get script offsets, from the offsets given in a-text?

    For example. I want to change the script so that the whole are you a boy or girl thing is gone, so the sprite of the male just fades in. Can I do this through A-text? Or do I have to find the script?

    Wow...

    I thnk that would be done with asm...

    which I don't know much about...
    Not really a script thing...
     

    Outbreak

    Brick Break
    51
    Posts
    14
    Years
  • Can someone modify this script to allow me to go to the desired place only after a new badge is obtained? htx in advance

    Spoiler:
     
    1,748
    Posts
    14
    Years
  • Whats wrong with my script? it doesn't work when I try it.

    Spoiler:


    When I step on the tile it doesn't work.

    Out Breaks problem:
    Spoiler:


    You forgot the check flag.


    Flags for badges
    #define RSBADGE_1 0x807
    #define RSBADGE_2 0x808
    #define RSBADGE_3 0x809
    #define RSBADGE_4 0x80A
    #define RSBADGE_5 0x80B
    #define RSBADGE_6 0x80C
    #define RSBADGE_7 0x80D
    #define RSBADGE_8 0x80E

    #define EMBADGE_1 0x867
    #define EMBADGE_2 0x868
    #define EMBADGE_3 0x869
    #define EMBADGE_4 0x86A
    #define EMBADGE_5 0x86B
    #define EMBADGE_6 0x86C
    #define EMBADGE_7 0x86D
    #define EMBADGE_8 0x86E

    #define FRBADGE_1 0x820
    #define FRBADGE_2 0x821
    #define FRBADGE_3 0x822
    #define FRBADGE_4 0x823
    #define FRBADGE_5 0x824
    #define FRBADGE_6 0x825
    #define FRBADGE_7 0x826
    #define FRBADGE_8 0x827

    I'm not sure what game or badge it is so I put them all down
    (EM emerald, FR firered, and RS ruby and sapphire.)
     
    Last edited:

    Outbreak

    Brick Break
    51
    Posts
    14
    Years
  • Can someone tell me wth is wrong with this script?
    It doesn't work...

    Spoiler:


    thx:nervous:
     

    monkeyman2092

    Aipom Awesome!!
    140
    Posts
    14
    Years
    • Seen Sep 7, 2009
    Can someone tell me wth is wrong with this script?
    It doesn't work...

    Spoiler:


    thx:nervous:

    You have a release but you don't have a lock.

    Try it now.
     

    NintendoWalkthrudude

    Creator of Pokemon Ninja!
    49
    Posts
    14
    Years
  • This doesnt work help me

    I got a large script I need help with.
    I did it from scratch in XSE btw.

    Anyways, I basically want the professor to ask you questions, and then give you certain pokemon based on the answers to the questions.

    Code:
    #dynamic 0x800000
    
    #org @start
    lock
    faceplayer
    countpokemon
    compare 0x800D 0x6
    if 0x1 goto @yespoke
    msgbox @yespoke 0x2
    compare LASTRESULT 0x1
    if 0x0 goto @nopoke
    msgbox @nopoke 0x5
    
    #org @yespoke
    = Oh hello again [player]!\pKeep training hard with your\npokemon okay?
    release
    end
    
    #org @nopoke
    = Lets begin okay?
    if 0x1 goto @yesno1
    if 0x0 goto @yesno1
    msgbox @yesno1 0x5
    closeonkeypress
    fadescreen 0x1
    fanfare 0x100
    special 0x9C
    waitfanfare
    fadescreen 0x0
    release
    end
    
    #org @yesno1
    = I'm going to ask you a\nseries of questions to determine\nwhat pokemon you get.\pAlright, here we go!\pDo you like ugliness?
    if 0x1 goto @yes0
    msgbox @yes1 0x6
    compare LASTRESULT 0x1
    if 0x0 goto @no0
    msgbox @no1 0x5
    release
    end
    
    #org @yes0
    = You like ugly things?\pWell this is ugly, here!
    givepokemon 0x1 0xDC 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @27 0x4
    waitfanfare
    closeonkeypress
    setflag 0x828
    msgbox @28 0x5
    compare LASTRESULT 0x1
    if 0x1 gosub @name7
    msgbox @29 0x6
    release
    end
    
    #org @no0
    = Good taste kid, good taste.\pDo you like power?
    if 0x1 goto @yes1
    msgbox @yes1 0x6
    compare LASTRESULT 0x1
    if 0x0 goto @no1
    msgbox @no1 0x5
    release
    end
    
    
    #org @yes1
    = Ah you do, that's\nreally good!\p Well here you go!
    givepokemon 0x1 0x6F 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @3 0x4
    waitfanfare
    closeonkeypress
    setflag 0x828
    msgbox @4 0x5
    compare LASTRESULT 0x1
    if 0x1 gosub @name
    msgbox @5 0x6
    release
    end
    
    #org @no1
    = You don't?\nAre you sure?
    if 0x1 goto @yes4
    msgbox @yes4 0x5
    if 0x0 goto @no4
    msgbox @no4 0x6 
    release
    end
    
    #org @yes4
    = Wow, you hate power!\nYou'd like this pokemon.\pHere you go I guess...
    givepokemon 0x1 0xAF 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @19 0x4
    waitfanfare
    closeonkeypress
    setflag 0x828
    msgbox @20 0x5
    compare LASTRESULT 0x1
    if 0x1 gosub @name5
    msgbox @21 0x6
    release
    end
    
    #org @no4
    = Ah you were playing with me!\pDo you like speed?
    if 0x1 goto @yes2
    msgbox @yes3 0x6
    if 0x0 goto @no2
    msgbox @no3 0x6
    release
    end
    
    
    #org @no2
    = You don't like speed eh?\nI know what to give you!\pHere you go!
    givepokemon 0x1 0x163 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @7 0x4
    waitfanfare
    closeonkeypress
    setflag 0x828
    msgbox @8 0x5
    compare LASTRESULT 0x1
    if 0x1 gosub @name2
    msgbox @9 0x6
    release
    end
    
    #org @yes2
    = You like speed eh? Do you\nalso like beauty?
    if 0x1 goto @yes3
    msgbox @yes3 0x6
    if 0x0 goto @no3
    msgbox @no3 0x6
    release
    end
    
    #org @yes3
    = Beauty and speed? Well, here\nyou go then kid!
    givepokemon 0xF0 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @11 0x4
    waitfanfare
    closeonkeypress
    setflag 0x828
    msgbox @12 0x5
    compare LASTRESULT 0x1
    if 0x1 gosub @name3
    msgbox @13 0x6
    release
    end
    
    #org @no3
    = You don't huh? Well I\nguess you deserve this.\pHere you go kid!
    givepokemon 0x1 0x51 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @15 0x4
    waitfanfare
    closeonkeypress
    setflag 0x828
    msgbox @16 0x5
    compare LASTRESULT 0x1
    if 0x1 gosub @name4
    msgbox @17 0x6
    release
    end
    
    
    #org @name
    call 0x1A74EB
    return
    
    #org @done
    msgbox @6 0x6
    release
    end 
    
    #org @name2
    call 0x1A74EB
    return
    
    #org @done2
    msgbox @10 0x6
    release
    end
    
    #org @name3
    call 0x1A74EB
    return
    
    #org @done3
    msgbox @14 0x6
    release
    end
    
    #org @name4
    call 0x1A74EB
    return
    
    #org @done4
    msgbox @18 0x6
    release
    end
    
    #org @name5
    call 0x1A74EB
    return
    
    #org @done5
    msgbox @22 0x6
    release
    end
    
    #org @name6
    call 0x1A74EB
    return
    
    #org @done6
    msgbox @26 0x6
    release
    end
    
    #org @name7
    call 0x1A74EB
    return
    
    #org @done7
    msgbox @26 0x6
    release
    end
    
    #org @3
    = [black_fr]You received a Rhyhorn!
    
    #org @4
    = [black_fr]Would you like to give a\nnickname to Rhyhorn?
    
    #org @5
    = Please take care of\nRhyhorn.
    
    #org @6
    = Are you taking good care\nof your pokemon?
    
    #org @7
    = [black_fr]You received a Duskull!
    
    #org @8
    = [black_fr]Would you like to give a\nnickname to Duskull?
    
    #org @9
    = Please take care of\nDuskull.
    
    #org @10
    = Are you taking good care\nof your pokemon?
    
    #org @11
    = [black_fr]You received a Magby!
    
    #org @12
    = [black_fr]Would you like to give a\nnickname to Magby?
    
    #org @13
    = Please take care of\nMagby.
    
    #org @14
    = Are you taking good care\nof your pokemon?
    
    #org @15
    = [black_fr]You received a Magnemite!
    
    #org @16
    = [black_fr]Would you like to give a\nnickname to Magnemite?
    
    #org @17
    = Please take care of\nMagnemite.
    
    #org @18
    = Are you taking good care\nof your pokemon?
    
    #org @19
    = [black_fr]You received a Togepi!
    
    #org @20
    = [black_fr]Would you like to give a\nnickname to Togepi?
    
    #org @21
    = Please take care of\nTogepi.
    
    #org @22
    = Are you taking good care\nof your pokemon?
    
    #org @27
    = [black_fr]You received a Swinub!
    
    #org @28
    = [black_fr]Would you like to give a\nnickname to Swinub?
    
    #org @29
    = Please take care of\nSwinub.
    
    #org @30
    = Are you taking good care\nof your pokemon?
     

    Outbreak

    Brick Break
    51
    Posts
    14
    Years
  • You have a release but you don't have a lock.

    Try it now.

    I tryed but it doesn't compile...it shows me this:

    eXtreme Script Editor v1.1.1
    -------------------------------------
    08-16-2009 10:24:13 PM
    -------------------------------------
    Opening output:
    Version.gba...
    Processing input script...
    1 - #ORG
    > lNewOffset = 0x3B4DEB
    2 - (6A) - LOCK [+1]
    3 - (5A) - FACEPLAYER [+1]
    4 - (2B) - CHECKFLAG [+3]
    > iWord = 0x828
    5 - (??) - IF (native) [+6]
    > bCondition = 0x1
    This is a jumping IF, 0x06.
    > pTarget = 0x83B4E58
    6 - (0F) - MSGBOX (native) [+8]
    > pText = 0x83B4E09
    > bType = 0x2
    7 - (4F) - APPLYMOVEMENT [+7]
    > iWord = 0xFF
    > pPointer = 0x83B4E55
    8 - (51) - WAITMOVEMENT [+3]
    > iWord = 0x0
    9 - (6C) - RELEASE [+1]
    10 - (02) - END [+1]
    13 - #ORG
    > lNewOffset = 0x3B4E58
    14 - (6C) - RELEASE [+1]
    15 - (02) - END [+1]
    21 - #ORG
    > lNewOffset = 0x3B4E09
    22 - RAW TEXT [+74]
    > sText = "No-one is allowed\nto leave this Village\nuntil we have finished\nsearching."
    28 - #ORG
    > lNewOffset = 0x3B4E55
    29 - #RAW
    > bOut = 0xE
    30 - #RAW
    > bOut = 0xFE
    -------------------------------------
    Cleaning up...
    Closing output...
    Finished processing input in 0.034 seconds.

    Where is the offset for adv map?
     

    0d'

    38
    Posts
    14
    Years
    • Seen Nov 30, 2014
    Originally Posted by 0d'
    Sup, guys. Here I am again...
    So I changed some stuff in my script.
    Spoiler:


    The hidesprite is actually not working.

    Here's what I whant to do:
    Spoiler:



    That's it...

    Now could someone fix this script in a way that the guy disappears using hidesprite ?
    And tell me how does it work, cuz I also want to understand it.

    Thanks
    The 0x13 of the hidesprite isn't in hex. The number 13 is D in hex. So you should have 0xD I believe. Try that and see if it works. I'm not much of a scripter so I may be wrong.

    Still not working, bro. But thanks for helping anyways.

    Now someone who may now it. Could help ?

    EDIT:

    I get it now, it's working.
     
    Last edited:
    74
    Posts
    14
    Years
    • Age 29
    • USA
    • Seen Aug 22, 2010
    Hmmm... My problem still hasn't been answered. I MIGHT know the possible issue with it, but I need a little bit of verification. This is the script.
    It is for FireRed, it is a Sign.
    Spoiler:



    Now, when I look at it in XSE, the offset at the top of the XSE window still says 0x, but in grey, so I cannot type there. I believe that is my problem on why the game won't set the script. How should I fix this problem?

     
    Status
    Not open for further replies.
    Back
    Top