• 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.
  • 21
    Posts
    15
    Years
    • Seen Apr 24, 2010
    Ok sorry for bothering you agein but i have a new problem when i completed the script i press comile script and then i have some error like:
    -" Unknown keyword 'Lock" at line 4 "
    please help me.
     

    Xatoku

    Game Developer
  • 451
    Posts
    15
    Years
    Ok sorry for bothering you agein but i have a new problem when i completed the script i press comile script and then i have some error like:
    -" Unknown keyword 'Lock" at line 4 "
    please help me.

    That means there's an error at line 4, paste the script please.
     

    Giratina the master

    A Member looking for ROM help
  • 94
    Posts
    15
    Years
    • Seen Feb 8, 2010
    um why does when i put a script trade it tlls me when i compile it tells me \
    unknown word give pokemon at line X
     

    triplexh18

    call me Oscizor
  • 17
    Posts
    15
    Years
    The script worked perfectly thanks

    but i'd like to know if you can be able to change the battle theme to maybe a gym leader battle instead of getting the generic trainer battle theme
     
  • 41
    Posts
    16
    Years
    • Seen Apr 4, 2014
    How would i script an event so that I'm alllowed in only if I have a certain pokemon?
     

    Pokepal17

    More cowbell~
  • 1,519
    Posts
    15
    Years
    The script worked perfectly thanks

    but i'd like to know if you can be able to change the battle theme to maybe a gym leader battle instead of getting the generic trainer battle theme

    Change the trainer class to gym leeader or use the ASM music hack (there's a tut for it in documents and tuts)

    How would i script an event so that I'm alllowed in only if I have a certain pokemon?

    Read the rules, this is not a request thread *reports*
     

    NatureKeeper

    Guest
  • 0
    Posts
    Umm.. Guys I have got a little question...

    Code:
    '---------------
    #org 0x9001B0
    lock
    faceplayer
    checkflag 0x1342
    if 0x0 goto 0x89001C4
    if 0x1 goto 0x89001E9
    release
    end
    '---------------
    #org 0x9001C4
    lock
    faceplayer
    showpokepic 0x1 0x0 0x3
    msgbox 0x89001F6 MSG_FACE '"I'm sure you want BULBASAUR,\nrigh..."
    givepokemon 0x1 0x5 0x40 0x0 0x0 0x0
    hidepokepic
    setflag 0x1342
    release
    end
    '---------------
    #org 0x9001E9
    lock
    faceplayer
    msgbox 0x890023E MSG_FACE '"Ok, don't say thanks."
    release
    end
     
    '---------
    ' Strings
    '---------
    #org 0x9001F6
    = I'm sure you want BULBASAUR,\nright?\n[player]:But.. /nSay no word! /nTake it!
    #org 0x90023E
    = Ok, don't say thanks.

    The Code makes glitches I cannot define:

    *Bubasaur's Pallete is wrong.

    *Problems with text

    So can any body fix it up?

    Quotes:
    ElusionM said:
    How would i script an event so that I'm alllowed in only if I have a certain pokemon?
    diegoisawsome's MEGA-HUGE XSE Scripting Tutorial
     

    Tropical Sunlight

    The Faltine
  • 3,476
    Posts
    16
    Years
    '---------------
    #org 0xA6A886
    lock
    faceplayer
    checkflag 0x57A
    if 0x1 goto 0x8A6A8B0
    if 0x0 goto 0x8A6A89A
    release
    end
    '---------------
    #org 0xA6A8B0
    msgbox 0x8A6A9C4 0x6 '"Please don't bother me.\pI'm in th..."
    release
    end
    '---------------
    #org 0xA6A89A
    msgbox 0x8A6A8FD 0x6 '"This mansion is pretty old, so\nit..."
    checkitem 0x163 0x3
    if 0x1 goto 0x8A6A8BB
    release
    end
    '---------------
    #org 0xA6A8BB
    msgbox 0x8A6A96B 0x6 '"What is this? Is this maybe the\nn..."
    yesnobox 0x6 0x5
    if 0x0 goto 0x8A6A8EF
    if 0x1 goto 0x8A6A8D5
    release
    end
    '---------------
    #org 0xA6A8EF
    msgbox 0x8A6AA21 0x6 '"[green_fr]PLAYER: Sorry..."
    release
    setbyte2 0xF 0x2 <-- I get this instead of an end and a paremeter.
    '---------------
    #org 0xA6A8D5
    applymovement 0x4 0x8A6A8F8
    setflag 0x57A
    removeitem 0x163 0x1
    msgbox 0x8A6AA05 0x6 '"[green_fr]PLAYER: Sure, have it!"
    release
    end

    '---------
    ' Strings
    '---------
    #org 0xA6A9C4
    = Please don't bother me.\pI'm in the DISTORTION WORLD right\nnow.
    #org 0xA6A8FD
    = This mansion is pretty old, so\nit's quite dangerous to goinside.\pAnd it's kind of creepy,\ndon't you think?
    #org 0xA6A96B
    = What is this? Is this maybe the\nnew NINTENDO DSi?\pCan I have it, please?\nI'm so bored[.]
    #org 0xA6AA21
    = [green_fr]PLAYER: Sorry...
    #org 0xA6AA05
    = [green_fr]PLAYER: Sure, have it!

    '-----------
    ' Movements
    '-----------
    #org 0xA6A8F8
    #raw 0x10 'Step Down (Normal)
    #raw 0xF 'Step Right (Slow)
    #raw 0x2 'Face Left
    #raw 0xFE 'End of Movements
    Yo guys It's me with another script that doesn't work.
     

    Pokepal17

    More cowbell~
  • 1,519
    Posts
    15
    Years
    Yo guys It's me with another script that doesn't work.

    '---------------
    #org 0xA6A886
    lock
    faceplayer
    checkflag 0x57A
    if 0x1 goto 0x8A6A8B0
    if 0x0 goto 0x8A6A89A
    release
    end
    '---------------
    #org 0xA6A8B0
    msgbox 0x8A6A9C4 0x6 '"Please don't bother me.\pI'm in th..."
    release
    end
    '---------------
    #org 0xA6A89A
    msgbox 0x8A6A8FD 0x6 '"This mansion is pretty old, so\nit..."
    checkitem 0x163 0x3
    compare 0x800D 0x1
    if 0x1 goto 0x8A6A8BB
    release
    end
    '---------------
    #org 0xA6A8BB
    msgbox 0x8A6A96B 0x6 '"What is this? Is this maybe the\nn..."
    yesnobox 0x6 0x5
    if 0x0 goto 0x8A6A8EF
    if 0x1 goto 0x8A6A8D5
    release
    end
    '---------------
    #org 0xA6A8EF
    msgbox 0x8A6AA21 0x6 '"[green_fr]PLAYER: Sorry..."
    release
    setbyte2 0xF 0x2 <-- I get this instead of an end and a paremeter.
    '---------------
    #org 0xA6A8D5
    applymovement 0x4 0x8A6A8F8
    setflag 0x57A
    removeitem 0x163 0x1
    msgbox 0x8A6AA05 0x6 '"[green_fr]PLAYER: Sure, have it!"
    release
    end

    '---------
    ' Strings
    '---------
    #org 0xA6A9C4
    = Please don't bother me.\pI'm in the DISTORTION WORLD right\nnow.
    #org 0xA6A8FD
    = This mansion is pretty old, so\nit's quite dangerous to goinside.\pAnd it's kind of creepy,\ndon't you think?
    #org 0xA6A96B
    = What is this? Is this maybe the\nnew NINTENDO DSi?\pCan I have it, please?\nI'm so bored[.]
    #org 0xA6AA21
    = [green_fr]PLAYER: Sorry...
    #org 0xA6AA05
    = [green_fr]PLAYER: Sure, have it!

    '-----------
    ' Movements
    '-----------
    #org 0xA6A8F8
    #raw 0x10 'Step Down (Normal)
    #raw 0xF 'Step Right (Slow)
    #raw 0x2 'Face Left
    #raw 0xFE 'End of Movements

    The Checkitem needs a compare 0x800D/LASTRESULT
     

    Tropical Sunlight

    The Faltine
  • 3,476
    Posts
    16
    Years
    #org 0xA6A8EF
    msgbox 0x8A6AA21 0x6 '"[green_fr]PLAYER: Sorry..."
    release
    setbyte2 0xF 0x2 <-- I get this instead of an end and a paremeter.
    '---------------
    #org 0xA6A8D5
    applymovement 0x4 0x8A6A8F8
    Wuttabout this?
    And btw, it still doesn't work.
    And this time, it's not FSF's fault. I searched the offset manually.
     

    NatureKeeper

    Guest
  • 0
    Posts
    Somebody could you please tell me?

    There may be one complicated way:

    -Get a ? Pokémon

    -Put a shiny as it's front sprite and a regular as its backsprite. Then,

    Code:
    showbackpic 0x(HEXNO) 0x(XAXIS) 0x(YAXIS)

    I think that does it, except if you are planning to replace the 25 Pokémon.

    Hope I helped:

    NatureKeeper said:
    *Bubasaur's Pallete is wrong.

    Ehm?
     
  • 21
    Posts
    15
    Years
    • Seen Apr 24, 2010
    There you go Xatoku:
    #Dynamic 0x800000

    #ORG @Main
    Lock
    FacePlayer
    Message @Speak
    BoxSet 0x6
    Release
    End

    #ORG @Speak
    = This is a message!
     

    ~Teh Panda~

    Back in hacktion
  • 918
    Posts
    16
    Years
    • Seen Jul 20, 2022
    Yo guys It's me with another script that doesn't work.

    I am pretty sure you cannot have a flag check the yes and no at the same time, if it is no then you would take ou the check and make it so it proceeds under the check for yes.

    @riolu86
    #Dynamic 0x800000

    #ORG @Main
    Lock
    FacePlayer
    Message @Speak 0x6 *right place
    BoxSet 0x6 <------ Wrong place for the boxset
    Release
    End

    #ORG @Speak
    = This is a message!
     

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    Been a while since I last checked this thread.

    For ~Watermelon.

    #org 0xA6A8BB
    msgbox 0x8A6A96B 0x6 '"What is this? Is this maybe the\nn..."
    yesnobox 0x6 0x5
    if 0x1 goto 0x8A6A8D5
    goto 0x8A6A8EF
    end
    '---------------
    #org 0xA6A8EF
    msgbox 0x8A6AA21 0x6 '"[green_fr]PLAYER: Sorry..."
    release
    end
    '---------------
    #org 0xA6A8D5
    applymovement 0x4 0x8A6A8F8
    setflag 0x57A
    removeitem 0x163 0x1
    msgbox 0x8A6AA05 0x6 '"[green_fr]PLAYER: Sure, have it!"
    release
    end
     

    Crocky

    SuperScarlet!
  • 97
    Posts
    15
    Years
    • Seen Jul 23, 2020
    I have no idea on where to start on a script where the professor gives you the pokedex and starter pokemon can someone give me the base for the script?
     
  • 41
    Posts
    16
    Years
    • Seen Apr 4, 2014
    Ok, guys. I've got a problem.
    I've made a script so that if I don't have a certain pokemon(for this example, Pikachu), the guy will not move aside for me. I've used a checkpokemon script. However, if I don't have a Pikachu, the "Not allowed" message comes fine. However, when I DO have the Pikachu, he doesn't follow the applymovement, and top of that, the GAME FREEZES!

    Here is the Code, please proof-read it for me; the last time I did anything related to hacking was 2007 and only for like a month; I've forgotten everything I knew and now have to relearn everything to also match with the new tools and the updates everyone is releasing:
    Code:
    '---------------
    #org 0x71AC40
    lock
    faceplayer
    setvar 0x8004 0x19
    special2 LASTRESULT 0x17C
    compare LASTRESULT 0x1
    if 0x1 goto 0x871AD70
    msgbox 0x871AD90 MSG_NORMAL '"Sorry, you're not allowed."
    release
    end
    
    '---------------
    #org 0x71AD70
    applymovement 0x5 0x871ADA0
    
    '---------
    ' Strings
    '---------
    #org 0x71AD90
    = Sorry, you're not allowed.
    
    
    '-----------
    ' Movements
    '-----------
    #org 0x71ADA0
    #raw 0xE8 'movE8
    #raw 0x0 'Face Down
    #raw 0xD5 'movD5
    #raw 0xE0 'movE0
    #raw 0xE0 'movE0
    #raw 0xE3 'movE3
    #raw 0xEB 'movEB
    #raw 0xD9 'movD9
    #raw 0xD8 'movD8
    #raw 0xAD 'movAD

    I have no idea on where to start on a script where the professor gives you the pokedex and starter pokemon can someone give me the base for the script?

    For what rom?

    I can probably provide you the scripts, but for what rom?
     
    Last edited:
    Status
    Not open for further replies.
    Back
    Top