• 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.
38
Posts
15
Years
    • Seen Aug 27, 2009
    I meant that im too much of a beginner that i cant figure out the script, that a NPC will give me an item, without the box [accept yes/no].

    I'd like it like:

    NPC: i see that..blabla take this
    *player recieved a potion*
    NPC: good luck on your quest

    now i have this, but XSE cant even compile it.

    Spoiler:
     

    Lyzo

    Back from vacation
    261
    Posts
    17
    Years
  • I meant that im too much of a beginner that i cant figure out the script, that a NPC will give me an item, without the box [accept yes/no].

    I'd like it like:

    NPC: i see that..blabla take this
    *player recieved a potion*
    NPC: good luck on your quest

    now i have this, but XSE cant even compile it.

    Spoiler:

    I would get rid of the setflag and the checkflag
    Make the script like this:

    Spoiler:


    When you're using a msgbox you don't need the release and end
    The rest of the script is fine. Mabye you want to change the #dynamic 0x2DD1F4
    to #dynamic 0x800000.
     
    38
    Posts
    15
    Years
    • Seen Aug 27, 2009
    when I try that script, i get the error
    "too much parameters on line 7. The correct amount is 2"

    line 7 is the line with the add item command.

    I'm curious, why would I want to change the offset to 80000?

    (im using Free Space finder to find offsets, also I wont use any original offsets for my hack, im planning to make my own world without any routes/towns from Kanto, if possible)

    edit: i found that in the additem command, the last 0x0 must be removed.
     

    Lyzo

    Back from vacation
    261
    Posts
    17
    Years
  • when I try that script, i get the error
    "too much parameters on line 7. The correct amount is 2"

    line 7 is the line with the add item command.

    I'm curious, why would I want to change the offset to 80000?

    (im using Free Space finder to find offsets, also I wont use any original offsets for my hack, im planning to make my own world without any routes/towns from Kanto, if possible)

    edit: i found that in the additem command, the last 0x0 must be removed.
    If you're using a free space finder then don't change it ;)

    For the item command. Try changing it to giveitem and change the last part (0x0) to 0x6.

    Change:

    Code:
    additem 0x0E 0x1 0x0
    
    Change to:
    
    giveitem 0x0E 0x1 0x6
     
    38
    Posts
    15
    Years
    • Seen Aug 27, 2009
    I meant that when using the above script, the man says his first line once, and then nothing happens, i get no item.
     
    152
    Posts
    15
    Years
  • Ok, so I made a quiz script... and theres several things I've found wrong with it...
    >If you get a question wrong, she does not let you retake the quiz (though the setflag should only activate if you get it right) and when you beat the quiz, she repeats the '@winner' message twice and does not give you the prize. Then when you try to talk to her, she says nothing.

    Anyways, I took out the messages but hopefully it's still fixable :/ I'll be trying to fix it. Thanks for any help!
    Spoiler:
    still need help :(
    still need help with this script :/
     
    38
    Posts
    15
    Years
    • Seen Aug 27, 2009
    Spoiler:


    This works as in that the player obtaines an item, but when i speak to the man again. i get the item again.
     

    Andryandrew

    Italian Asm Hacker
    117
    Posts
    17
    Years
    • Age 30
    • Seen Jul 4, 2015
    Spoiler:


    This works as in that the player obtaines an item, but when i speak to the man again. i get the item again.
    you have to add a "setflag" construct:
    #dynamic 0x2DD1F4

    #org @start
    checkflag 0x950
    if B_TRUE goto @end

    lock
    faceplayer
    msgbox @hello 0x6
    additem 0x0E 0x1 0x0
    msgbox @bye 0x6
    setflag 0x950
    release
    end

    #org @end
    end


    #org @hello
    = The outer world is dangerous.\nHere, take this.

    #org @bye
    = Good luck on your quest.

    if you want the man say something different when you talk him again just modify the #org @end part of script

    still need help with this script :/
    for the last msgbox simply you have to modify last parametre of giveitem instruction:
    giveitem 0xCD 0x1 0x0
    because 0x6 cause the repetition of last msgbox...

    for the flag, I think flag 109 is a too low number... use 1009 instead, it maybe work
     
    Last edited:

    Deja Vu

    Smug Lord
    348
    Posts
    15
    Years
    • Seen Jun 28, 2014
    I stripped a few script offsets from unused places, and put them on some people I am using elsewhere, but I can't edit the script with my editor! When I compile it into the game and save, then go back to check, he says the original quote! It worked before! Any tips?
    (Note: I'm not sure if this is important but I got a string of dialogue boxes in AdvanceMap telling me of an error and to contact Lu-Ho?[I know that's a forum member, I just want to know if it has anything to do with my situation.])
     

    hot_kage

    I am like a rose cute and calm
    35
    Posts
    15
    Years
  • omfg soory i come back with a script apperantly my 0x5's suck.
    Code:
    #dynamic 0x26ECB8
    
    #org @start
    lock
    faceplayer
    message @rockclimb 0x5
    if 0x1 goto @yes 
    if 0x0 goto @end
    release
    end
    
    #org @yes
    msgbox @rockclimb2 0x6
    applymovement 0xFF @move
    doanimation 0x25
    release
    end
    
    #org @end
    release
    end
    
    #org @rockclimb 
    = Would [PLAYER] Like To Climb Rocks?
    
    #org @rockclimb2
    = [green_fr][player] Started Climbing The Rocks..
    
    #org @move
    #raw 0x14 0x1E 0xFE

    problem: when i press yes it just stops :(
    any ideas
     

    Vrai

    can you feel my heart?
    2,896
    Posts
    15
    Years
    • Age 29
    • Seen Oct 24, 2022
    Spoiler:

    You haven't used 0x5 properly, is all. You need to use a compare command in place of the if commands you've used.

    Code:
    msgbox @rockclimb2 0x5
    compare LASTRESULT (or 0x800D) 0x0 (or 0x1)
    if 0x1 goto @..
     
    152
    Posts
    15
    Years
  • for the last msgbox simply you have to modify last parametre of giveitem instruction:
    giveitem 0xCD 0x1 0x0
    because 0x6 cause the repetition of last msgbox...

    for the flag, I think flag 109 is a too low number... use 1009 instead, it maybe work
    Do you, or anyone, know how to make it so when you answer incorrectly, she lets you retake the quiz? When you answer incorrectly, it doesn't let you take it again, :/
     
    Last edited:
    14
    Posts
    16
    Years
    • Seen Jul 1, 2009
    hey im new to scripting could some one please tell me how to obtain an item from some one and then not get it again afterwards?
     

    Hoshiko Aki

    Avatar rules
    109
    Posts
    15
    Years
    • Seen Oct 17, 2011
    Code:
    '---------------
    #org 0x8000F4
    checkflag 0x828
    if 0x1 goto 0x8800111
    applymovement MOVE_PLAYER 0x8800114
    waitmovement 0x0
    msgbox 0x8800117 MSG_FACE '"[player]: Better look for a pokemo..."
    end
    
    '---------------
    #org 0x800111
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x800117
    = [player]: Better look for a pokemon.
    
    
    '-----------
    ' Movements
    '-----------
    #org 0x800114
    #raw 0x62 'Exclamation Mark (!)
    #raw 0x12 'Step Left (Normal)
    #raw 0xFE 'End of Movements

    This script is not good.
    He freezing if i walk on the spot.

    Can somebuddy help?
     

    hot_kage

    I am like a rose cute and calm
    35
    Posts
    15
    Years
  • msgbox @rockclimb2 0x5
    compare LASTRESULT (or 0x800D) 0x0 (or 0x1)
    if 0x1 goto @..

    could you please evaulate..

    you mean the script is like this:
    Code:
    dynamic 0x26ECB8
    
    #org @start
    lock
    faceplayer
    [B]message @rockclimb 0x5
    compare LASTRESULT 0x800D 0x1
    if 0x0 goto @end[/B]
    release
    end
    
    #org @yes
    msgbox @rockclimb2 0x6
    applymovement 0xFF @move
    doanimation 0x25
    release
    end
    
    #org @end
    release
    end
    
    #org @rockclimb 
    = Would [PLAYER] Like To Climb Rocks?
    
    #org @rockclimb2
    = [green_fr][player] Started Climbing The Rocks..
    
    #org @move
    #raw 0x14 0x1E 0xFE
     

    TB Pro

    Old-timer
    2,708
    Posts
    19
    Years
  • Code:
    '---------------
    #org 0x8000F4
    checkflag 0x828
    if 0x1 goto 0x8800111
    applymovement MOVE_PLAYER 0x8800114
    waitmovement 0x0
    msgbox 0x8800117 MSG_FACE '"[player]: Better look for a pokemo..."
    end
    
    '---------------
    #org 0x800111
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x800117
    = [player]: Better look for a pokemon.
    
    
    '-----------
    ' Movements
    '-----------
    #org 0x800114
    #raw 0x62 'Exclamation Mark (!)
    #raw 0x12 'Step Left (Normal)
    #raw 0xFE 'End of Movements

    This script is not good.
    He freezing if i walk on the spot.

    Can somebuddy help?
    Ugh, put Var-Number: 5340 and Var-Value: 0300 in A-Map.
     

    Robert Conley

    GPXPlus.net/user/Robert+Conley
    330
    Posts
    15
    Years
  • OK so Iam trying to make a script where a person says something and then gives you a pokemon. and depending on whether your party is full or not give you the pokemon.

    Here's what I have:
    PHP:
    '---------------
    #Dynamic 0x71B1C8
    
    #org @start
    msgbox 0x871B1E0 msg_face '"hey take this pokemon...\p"
    countpokemon
    compare LASTRESULT 0x6
    if 0x1 goto 0x871B1D4
    msgbox @msg1 0x2
    givepokemon 0x19 0x10 0x0 0x0 0x0 0x0
    end
    
    #org @71B1D4
    msgbox @msg2 0x2
    end
    
    '---------
    'Strings
    '---------
    #org @msg1
    = Ok you can have the pokemon
    
    #org @msg2
    = Sorry youre part is full:p
    
    #org @0x71B1E0
    = hey take this pokemon...\p
    It still gives me the pokemon but the pokemon is at level 16 when it should be at lvl 10. Also this happens:

    Pokemon-FireRedGBA.png
    Start talking
    Pokemon-FireRedGB1A.png
    receive pokemon
    Pokemon-FireRed2GBA.png
    not sure

    Also where do I get the pokemons numbers for scripting? I only know that the above one is Pikachu from a document within XSE.
     
    Status
    Not open for further replies.
    Back
    Top