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

BananasGoMoo

Pokemon Electrum
149
Posts
15
Years
  • haha, well I converted the code to XSE form, it compiled but I'm facing a new problem, the professor doesn't seem to give me a pokemon and the texts are broken off..

    here's the new script:
    Spoiler:


    (note: I know 1e is the TM multichoice thing from Celadon, I'm planning to edit that)

    firstly, did you insert it to an offset where there was enough free space? if not, then thats why your text is being cut off (maybe)

    also, are you allowed to put a line in the middle there?

    also, not sure what else is wrong, maybe someone who knows more than me can help better.
     
    780
    Posts
    14
    Years
  • I'm posting this again,because nobody answered.

    OK,I have a problem with a script.Whenever I modify it so you can get certain Pokemon,but when you try to get get another it says what happens AFTER you get the Pokemon.What's wrong?

    Game:Emerald
    Type:givepokemon

    Scripts:
    Spoiler:

    Spoiler:
     

    justdieplz

    Pokemon White Enthusiast
    29
    Posts
    15
    Years
  • REPOSTING BECAUSE OF NO ANSWER!

    I Have a problem with my script that is like this.


    Code:
    #Dynamic 0x200
    
    #org @main
    lock
    faceplayer
    checkflag 0x200
    if 0x1 goto @end
    msgbox @msg1
    boxset 6
    givepokemon 0x37 0x10 0x0 0x0 0x0 0x0
    msgbox @msg2
    boxset 6
    setflag 0x200
    release
    end
    
    #org @end
    msgbox @msg3
    boxset 6
    release
    end
    
    #org @msg1
    = Here, I have\n a present for\p you. Take my pokemon.
    
    #org @msg2
    = Take good care of it,\nand everything will be fine.
    
    #org @msg3
    = How is my pokemon doing?

    It should be giving me a VULPIX Lv. 10, but instead I get a GOLDUCK Lv.16.

    I'm using a Fire Red rom, if that makes a difference, and if my code isn't wrong, I would love a better rom that I could use. Just send me the rom. Ty
     

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • REPOSTING BECAUSE OF NO ANSWER!

    I Have a problem with my script that is like this.


    Code:
    #Dynamic 0x200
    
    #org @main
    lock
    faceplayer
    checkflag 0x200
    if 0x1 goto @end
    msgbox @msg1
    boxset 6
    givepokemon [B][COLOR="Red"]0x25 0xA[/COLOR][/B] 0x0 0x0 0x0 0x0
    msgbox @msg2
    boxset 6
    setflag 0x200
    release
    end
    
    #org @end
    msgbox @msg3
    boxset 6
    release
    end
    
    #org @msg1
    = Here, I have\n a present for\p you. Take my pokemon.
    
    #org @msg2
    = Take good care of it,\nand everything will be fine.
    
    #org @msg3
    = How is my pokemon doing?

    It should be giving me a VULPIX Lv. 10, but instead I get a GOLDUCK Lv.16.

    I'm using a Fire Red rom, if that makes a difference, and if my code isn't wrong, I would love a better rom that I could use. Just send me the rom. Ty

    You need to concert from hex to dec.
    Changes in quote, BOLD RED.
     

    Doom Chaos

    I don't have a title
    44
    Posts
    15
    Years
  • if its a level script, you need to put a setvar 0x7000 0x1 or up at the top, if its a trigger script, put a
    checkflag 0x_
    if 0x1 goto @end
    setflag 0x_

    and just put this anywhere in the script

    @end
    release
    end

    Late reply I know, but anyway.
    -I raised the variable to 7000, now once I leave the lab, the same message displays over and over again and NEVER stops. The message is about the rival saying "I'll battle with my POKéMON, Smell you later".
    -A level script is something that happens EVERYTIME you enter a map, right?
    -What's a trigger?
    -When you said add "checkflag 0x_...setflag 0x_", the _ is the same hex or the two different flags? And where do I add it in my script?
     

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • Late reply I know, but anyway.
    -I raised the variable to 7000, now once I leave the lab, the same message displays over and over again and NEVER stops. The message is about the rival saying "I'll battle with my POKéMON, Smell you later".
    -A level script is something that happens EVERYTIME you enter a map, right?
    -What's a trigger?
    -When you said add "checkflag 0x_...setflag 0x_", the _ is the same hex or the two different flags? And where do I add it in my script?

    Okay, let me see your script, I'll fix it since people seem lazy today.
     

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • Ty Omega, but how do I go about converting?

    I already fixed your script.

    Since you are trying to make it give you pokemon #37, you need to turn 37 into HEX format... Open up XSE and make sure the calculator on the side of it is in DEC format.Then click 37, and then click the HEX button.

    You will see the number 25.

    Then just use that in XSE, by adding an 0x in front, to make 0x25.

    This is the same process with EVERY hex number.

    (Try to learn how to count in HEX... It will help)
     

    Doom Chaos

    I don't have a title
    44
    Posts
    15
    Years
  • Spoiler:


    It was edited straight from the original OAK one, you know, when you exit Pallet Town at the beginning. Thanks for helping by the way =D
     

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • Spoiler:


    It was edited straight from the original OAK one, you know, when you exit Pallet Town at the beginning. Thanks for helping by the way =D
    I want you to tell me EXACTLY what you want to happen....
     

    Doom Chaos

    I don't have a title
    44
    Posts
    15
    Years
  • I want you to tell me EXACTLY what you want to happen....

    Oooh, my bad again... Anyway, this is what is supposed to happen:
    You exit the house, as soon as you are outside, OAK is here, talks to you and brings you to the lab's location (unrelated, the door won't open, but I don't really mind). Then you are in the lab and the story goes on (that's a different script I'll have to do, I probably am gonna need help again... I am having a lot of difficulties for hacking...).
     

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • Oooh, my bad again... Anyway, this is what is supposed to happen:
    You exit the house, as soon as you are outside, OAK is here, talks to you and brings you to the lab's location (unrelated, the door won't open, but I don't really mind). Then you are in the lab and the story goes on (that's a different script I'll have to do, I probably am gonna need help again... I am having a lot of difficulties for hacking...).

    Well, the script is really jumbled, but I tried here... if this does not work at all, then I dunno what is going on...
     

    Doom Chaos

    I don't have a title
    44
    Posts
    15
    Years
  • Well, the script is really jumbled, but I tried here... if this does not work at all, then I dunno what is going on...

    Maybe I shouldn't have edited the script and I should start fresh again? And about the lab script, I
    want to remove all the OAK scripts and the RIVAL one (keeping only the scientists and the POKéBALLs.
    But if I want to create a script for the prof, I need to unlock the POKéBALLs (you need to talk to OAK
    before taking a POKéMON, but if I delete OAK, it won't work, right?). Any tips?
     

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • Maybe I shouldn't have edited the script and I should start fresh again? And about the lab script, I
    want to remove all the OAK scripts and the RIVAL one (keeping only the scientists and the POKéBALLs.
    But if I want to create a script for the prof, I need to unlock the POKéBALLs (you need to talk to OAK
    before taking a POKéMON, but if I delete OAK, it won't work, right?). Any tips?

    LOL, hold on a minute, I sense a disturbance...
    I forgot to post the script! lol

    here you go.

    Code:
    #dynamic 0x800000
    
    #org @start
    lock
    checkflag 0x1000
    if b_true goto @done
    showsprite 0x3
    goto @snippet1
    release
    end
    
    #org @snippet1
    setvar 0x8004 0x0
    setvar 0x8005 0x2
    special 0x174
    textcolor 0x0
    pause 0x1E
    playsong 0x12E 0x0
    preparemsg @PROF1
    waitmsg
    pause 0x55
    closeonkeypress
    applymovement 0xFF @move1
    waitmovement 0x0
    sound 0x15
    pause 0x1E
    preparemsg @PROF2
    waitmsg
    pause 0x1E
    closeonkeypress
    applymovement 0x3 @move0
    applymovement 0xFF @move3
    waitmovement 0x0
    pause 0x1E
    setdooropened 0x7 0x9
    doorchange
    applymovement 0x3 @move4
    applymovement 0xFF @move5
    waitmovement 0x0
    setdoorclosed 0x7 0x9
    doorchange
    setvar 0x4055 0x1
    setvar 0x4050 0x1
    setflag 0x2C
    setflag 0x4001
    setflag 0x1000
    warp 0x4 0x3 0xFF 0x6 0xC
    waitstate
    
    #org @done
    release
    end
    
    #org @PROF1
    = PROF: There you are, [player]!
    
    #org @PROF2
    = PROF: I have been looking for you \nall morning. \pBut at last, you are here! \pAs you may know, I am the \nPROFESSOR, and I live near here. \pFollow me!
    
    #org @move1
    #raw 0x62
    #raw 0xFE
    
    #org @move0
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x11
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x03
    #raw 0xFE
    
    #org @move3
    #raw 0x10
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x11
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0xFE
    
    #org @move4
    #raw 0x11
    #raw 0x60
    #raw 0xFE
    
    #org @move5
    #raw 0x13
    #raw 0x11
    #raw 0x60
    #raw 0xFE
     
    3
    Posts
    14
    Years
  • fire red hack
    ok so i have this script where
    you choose a pokemon, then the other pokeballs are offlimits
    but when i exit the map and return, the pokeball is still there
    heres my script
    Spoiler:
     

    ColbieCallaitPie

    Yummy Yummy Groovy Pie
    6
    Posts
    14
    Years
    • Seen Jul 20, 2009
    fire red hack
    ok so i have this script where
    you choose a pokemon, then the other pokeballs are offlimits
    but when i exit the map and return, the pokeball is still there
    heres my script
    Spoiler:
    no one wants to help a noob blehhhhh :P
     
    Last edited:

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • fire red hack
    ok so i have this script where
    you choose a pokemon, then the other pokeballs are offlimits
    but when i exit the map and return, the pokeball is still there
    heres my script
    Spoiler:

    Don't you DARE listen to him, that was incredibly disrespectful here, and we here at PC are PROUD to help anyone who may need help. At least I am.
    Check the quote, I fixed up your script to make the Pokeball disappear.
    Now, what YOU have to do to make this work for sure, is make your Pokeball sprite have a
    'Person ID' of 1000, okay?
    Changes to your script are in BOLD RED.
     
    3
    Posts
    14
    Years
  • Don't you DARE listen to him, that was incredibly disrespectful here, and we here at PC are PROUD to help anyone who may need help. At least I am.
    Check the quote, I fixed up your script to make the Pokeball disappear.
    Now, what YOU have to do to make this work for sure, is make your Pokeball sprite have a
    'Person ID' of 1000, okay?
    Changes to your script are in BOLD RED.
    hmm
    when i put the code in and set the person ID to 1000
    i got the same effect
    pokeball disappeared, left map, reentered lab and its still there
     
    Status
    Not open for further replies.
    Back
    Top