• 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.
1
Posts
11
Years
    • Seen May 6, 2012
    Script doesn't work? Pokescript/Pkmadv/AdvanceMap1.92

    (Programs being used in this Pokescript / Pkmadv / AdvanceMap 1.92)

    I've been trying to make a script to give a Eevee as a starter for my rom (I've made new maps and warps so Pallet Town is no longer existent in my rom as I want to redo everything).

    All of my scripts and flags thus far are working okay except for the one to give me a Pokemon.

    It's mainly based on flags which all seem to work fine. It's just a issue of actually receiving the Pokemon and the ball disappearing.

    If anyone could help, I'd appreciate it.


    Talking to the Aide in the lab initiates the event: (Working as far as I know)
    Code:
    #org $AideTalk
    lock
    faceplayer
    checkflag 0x1200
    if 0x01 goto $AlreadyTalked
    message $StartFirstPokemon
    $StartFirstPokemon 1 = Professor Willow told me that\nyou would be coming by.\nShe said you can have the\ppokémon that she left on the counter!
    boxset 6
    setflag 0x1200
    release
    end
    
    #org $AlreadyTalked
    message $GoodLuck
    $GoodLuck 1 = Good luck on your adventures!
    setflag 0x1201
    boxset 6
    release
    end

    The Pokeball Script: (Text & script that makes you talk to the aide works, however I don't recieve the Pokemon and the ball doesn't disappear)
    Code:
    #org $FirstPokemon
    lock
    faceplayer
    checkflag 0x1200
    if 0x01 goto $FirstPokemonDone
    message $NotDone
    $NotDone 1 = Perhaps I should talk to\nProfessor Willow's Aide first!
    boxset 6
    release
    end
    
    #org $FirstPokemonDone
    lock
    faceplayer
    message $talk
    $talk 1 = Here's a Pokémon!
    boxset 6
    givepokemon 133 5 0x8B
    removesprite 1
    release
    end

    EDIT: I figured out why I didn't receive the Pokemon, However the issue with the ball disappearing is still there.

    Thanks in advance.
     
    Last edited:

    DrFuji

    [I]Heiki Hecchara‌‌[/I]
    1,691
    Posts
    14
    Years
  • (Programs being used in this Pokescript / Pkmadv / AdvanceMap 1.92)

    I've been trying to make a script to give a Eevee as a starter for my rom (I've made new maps and warps so Pallet Town is no longer existent in my rom as I want to redo everything).

    All of my scripts and flags thus far are working okay except for the one to give me a Pokemon.

    It's mainly based on flags which all seem to work fine. It's just a issue of actually receiving the Pokemon and the ball disappearing.

    If anyone could help, I'd appreciate it.


    Talking to the Aide in the lab initiates the event: (Working as far as I know)
    Code:
    #org $AideTalk
    lock
    faceplayer
    checkflag 0x1200
    if 0x01 goto $AlreadyTalked
    message $StartFirstPokemon
    $StartFirstPokemon 1 = Professor Willow told me that\nyou would be coming by.\nShe said you can have the\ppokémon that she left on the counter!
    boxset 6
    setflag 0x1200
    release
    end
    
    #org $AlreadyTalked
    message $GoodLuck
    $GoodLuck 1 = Good luck on your adventures!
    setflag 0x1201
    boxset 6
    release
    end

    The Pokeball Script: (Text & script that makes you talk to the aide works, however I don't recieve the Pokemon and the ball doesn't disappear)
    Code:
    #org $FirstPokemon
    lock
    faceplayer
    checkflag 0x1200
    if 0x01 goto $FirstPokemonDone
    message $NotDone
    $NotDone 1 = Perhaps I should talk to\nProfessor Willow's Aide first!
    boxset 6
    release
    end
    
    #org $FirstPokemonDone
    lock
    faceplayer
    message $talk
    $talk 1 = Here's a Pokémon!
    boxset 6
    givepokemon 133 5 0x8B
    removesprite 1
    release
    end

    EDIT: I figured out why I didn't receive the Pokemon, However the issue with the ball disappearing is still there.

    Thanks in advance.

    You need to set a flag when you want the ball to disappear and then put that flag's number into the 'Person ID' of the ball in Advance Map. If you set the flag that is attached to the ball then it should disappear forever, unless you clear that flag in a later script.

    Also, I'd advise against using PokeScript as it was made years ago and can be buggy at times. You should use a script editor that was made more recently like XSE.
     
    48
    Posts
    12
    Years
    • Seen Jul 30, 2012
    Hey guys, I was wondering if anyone could help me? If this requires inbox, I'd love it! I want for a character to run to me and talk to me, any ideas!
     

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    Hey guys, I was wondering if anyone could help me? If this requires inbox, I'd love it! I want for a character to run to me and talk to me, any ideas!

    It's called scripting.
    Download XSE, a great scripting tool to date.
    DrFuji provided a download link two post below this post o'mine.
    After, read scripting tutorials in the Tutorials section.
     
    Last edited:
    8
    Posts
    16
    Years
    • Seen May 13, 2015
    Spoiler:


    This is a givepokemon script but when i approach the NPC, i can only hear the sounds when buttons are pressed when talking to npcs... there is no text box appearing.
     

    DrFuji

    [I]Heiki Hecchara‌‌[/I]
    1,691
    Posts
    14
    Years
  • Spoiler:


    This is a givepokemon script but when i approach the NPC, i can only hear the sounds when buttons are pressed when talking to npcs... there is no text box appearing.

    It sounds like you don't have the latest version of XSE. Try downloading this one, compile your script with it and see if it works.
     
    8
    Posts
    16
    Years
    • Seen May 13, 2015
    It sounds like you don't have the latest version of XSE. Try downloading this one, compile your script with it and see if it works.

    Whoa, it worked! Thanks alot DrFuji! Really appreciate your help! :D



    Sorry... but I have encountered another problem :x

    Spoiler:


    The text and the battle is alright, but after battling the pokemon, the npc does not disappear even though there is the hidesprite already.

    EDIT: I changed hidesprite 0x800F to hidesprite 0x0B (person event number 11) but it still remains the same...
     
    Last edited:

    Satoshi Ookami

    Memento Mori
    14,254
    Posts
    15
    Years
  • Hidesprite is pretty buggy command.
    You should use applymovement and waitmovement with commands that make sprite disappear and move it to somewhere else.
    And also... use higher flags ;) 400 or something =)
     
    48
    Posts
    12
    Years
    • Seen Jul 30, 2012
    Please help! Having scripting troubles as a starter... I have simply remodeled the scene in CERULEAN CITY where you encounter the bridge and your rival appears and battles you.

    Here is the remake:
    3y0df.png

    All I have done is take the things from CERULEAN CITY and dropped them here, expecting the same thing to happen.

    When I walk to this spot, it completely freezes the game, but the music plays normally:
    2r5gfpj.png


    What is my problem?

    Here is the script I'm using (same from Cerulean City)

    Spoiler:


    Please help me fix this problem!

    New problem, + fixes!

    I copied everything, absoloutley everything!

    But still, Gary doesn't appear but I battle him, like so... + there is no music (no rival theme)
    29e65xc.png


    I'm guessing I have to pair the script with the rival, and how is this possible?
    Even when we're are about to battle he is know where to be seen;
    2up4sb8.png


    What's going on? Thanks!
     
    Last edited:
    10,078
    Posts
    15
    Years
    • UK
    • Seen Oct 17, 2023
    Bengraphicsdesign

    One thing that stands out for me:

    movesprite2 0x8 0x17 0x0

    Is this the correct co-ordinates or is this copy and pasted from the original?

    As to the music, I'm not entirely sure why it's not working.
     
    17
    Posts
    12
    Years
    • Seen Aug 1, 2016
    Ok, I need some help.

    I wrote my script, and when I compiled it I got "Unkown keyword: ssed at line 37"

    Line 37 is blank, and it's in between 2 pointers, @msg3 and @move

    Spoiler:
     
    Last edited:
    5,256
    Posts
    16
    Years
  • Spoiler:

    The reason your script didn't compile was because the dialogue went onto another line. I've fixed it in the spoiler above.
     
    17
    Posts
    12
    Years
    • Seen Aug 1, 2016
    Spoiler:
    The reason your script didn't compile was because the dialogue went onto another line. I've fixed it in the spoiler above.

    Thank you, I didn't realize that happened.
     

    Cyru

    -
    47
    Posts
    12
    Years
  • Okay, so im using Poketscript, and when i'n using Yes/ no answers, how would i get it to loop around back to the first question in this script below?

    Spoiler:


    P.S I know the script is missing vars and stuff but this was just a practise so i know how =)
     
    Last edited:
    54
    Posts
    13
    Years
    • Seen Jul 5, 2013
    I have a movesprite issue:

    I want my character to start the same way as Crono in Chrono Trigger, e.g. starts in his bed with his mother waking him up.

    Everything went fine, except that I use movescript at the beginning of the script to move the character in the bed (also, if someone knows how to start from a black screen I'd be glad to hear), but once the script ends, my character is "translated" to the position specified by the movesprite, and thus bumps into the room walls even though he is a lot far from them.

    Is there a command to "recenter" the camera? Thanks
     
    152
    Posts
    16
    Years
    • Seen Mar 23, 2016
    I'm attempting to use a rudimentary warping script, but when it gets to the warp, it makes the door sound and then leads to the game crashing and going black. What am I doing wrong?

    Code:
    #dynamic 0x0100003E
    #org @start
    lock
    faceplayer
    msgbox @1 0x6
    msgbox @2 0x5
    compare 0x800D 0x1
    if 0x1 goto @yes
    release
    end
    
    #org @1
    = You open the drawer...\p...\pAnd find a ladder!
    
    #org @2
    = Would you like to\nuse it?
    
    #org @yes
    msgbox @okay 0x6
    fadescreen 0x1 < I've tried it without these
    warp 0x0 0x65 0x0 0x0 0x0 < I've tried it with the params "0x0 0x65 0xFF 0x2 0x2" as well, to no avail.
    fadescreen 0x0 < Again, tried it without these
    release
    end
    
    #org @okay
    = You step down the ladder...
     
    28
    Posts
    12
    Years
    • Seen May 1, 2022
    I decided to use my older copy and am currently back to where i was when i lost all my progress :/

    anyways, i am having trouble finding a tutorial on making a rival battle script, one that changes the trainer used based on certain events (mainly which starter was chosen)

    i did not see it in this tutorial but may be mistaken. thanks for any help

    (i already searched google and could not find any help)
     

    droomph

    weeb
    4,285
    Posts
    12
    Years
  • I decided to use my older copy and am currently back to where i was when i lost all my progress :/

    anyways, i am having trouble finding a tutorial on making a rival battle script, one that changes the trainer used based on certain events (mainly which starter was chosen)

    i did not see it in this tutorial but may be mistaken. thanks for any help

    (i already searched google and could not find any help)
    Look at an example script from the game itself. That should help you get an idea of what you need to do.
     

    blue

    gucci
    21,057
    Posts
    16
    Years
  • I'm getting the "Too Less Parameters on Line 8. The correct number is 4." - It's been a while since I've done scripting so I wasn't surprised that it was kind of messed up, can anyone help here?

    Script:
    Spoiler:
     
    Status
    Not open for further replies.
    Back
    Top