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

AustinWolff

has left
100
Posts
12
Years
  • Game: Ruby
    Type: Trigger - Green "S"
    Script Editor: Pokescript
    Event: Movement, Setflags, RemoveSprite

    Spoiler:


    I am trying to make a guy go up to you, give you a few badges, then disappear. When I step on the script box, nothing happens!
     

    Attachments

    • personID1.JPG
      personID1.JPG
      42.5 KB · Views: 8
    • personID.JPG
      personID.JPG
      50.2 KB · Views: 8
    14
    Posts
    13
    Years
    • Seen Aug 16, 2013
    Okay, well i have made a script so that a guy comes up to me when i exit my house.

    #dynamic 0x800000

    #org @start
    checkflag 0x1000
    if 0x1 goto @nothing
    lock
    applymovement 0x03 @move
    waitmovement 0x0
    msgbox @talk
    callstd 0x6
    setflag 0x1000
    release
    end

    #org @nothing
    release
    end

    #org @move
    #raw 0x13
    #raw 0x13
    #raw 0xFE

    #org @talk
    = Hey [player]!\pOak is looking for you\nYou better go check his lab\nnow

    First of all i dont know how to make it so that when i walk out of my house he walks straight up to me

    And my second problem is that when i walk up to him and talk to him, everything just freezes.

    PLEASE HELP!

    to add onto that, how do i make it so that the guy walks away afterwards?

    to add onto that, how do i make it so that the guy walks away afterwards?

    to add on to that^
    how do i make is so the guy walks away afterwards and disappears
     
    Last edited:
    124
    Posts
    12
    Years
  • Game: Ruby
    Type: Trigger - Green "S"
    Script Editor: Pokescript
    Event: Movement, Setflags, RemoveSprite

    Spoiler:


    I am trying to make a guy go up to you, give you a few badges, then disappear. When I step on the script box, nothing happens!

    1. You forgot to add lock and faceplayer. Your movement scripts will still work, this just allows the NPC to look at the player while a message is occurring instead of adding an extra movement command.

    2. Your setvar needs to be at the top of the script.
    Also, it should be set out as: setvar 0x6000 0x1

    3. Jingle isn't a real command anymore.
    The commands are sound or fanfare.

    4. Applymovements use #raw, NOT #binary.
    E.G
    Code:
    applymovement @example
    waitmovement 0x0
    
    #org @example
    #raw 0x03
    #raw 0xFE

    5. All value commands must be written in HEX.
    The ones I'm pointing out to are:

    fadescreen 1
    removesprite 3

    Make sure they are written in HEX so:
    fadescreen 0x1
    removesprite 0x3
    pausemove 0x0
    (waitmovement in XSE)

    6. Have you written the setvar value in A-Map?
    Also have you changed the unknown 2 digit number to 03?

    Also I would recommend to use XSE. XSE uses more of the real commands that Pokemon can understand, but it is down to personal preference =]
    Hopefully, all these points will help!


    Okay, well i have made a script so that a guy comes up to me when i exit my house.

    #dynamic 0x800000

    #org @start
    checkflag 0x1000
    if 0x1 goto @nothing
    lock
    applymovement 0x03 @move
    waitmovement 0x0
    msgbox @talk
    callstd 0x6
    setflag 0x1000
    release
    end

    #org @nothing
    release
    end

    #org @move
    #raw 0x13
    #raw 0x13
    #raw 0xFE

    #org @talk
    = Hey [player]!\pOak is looking for you\nYou better go check his lab\nnow

    First of all i dont know how to make it so that when i walk out of my house he walks straight up to me

    And my second problem is that when i walk up to him and talk to him, everything just freezes.

    PLEASE HELP!

    to add onto that, how do i make it so that the guy walks away afterwards?

    to add onto that, how do i make it so that the guy walks away afterwards?

    to add on to that^
    how do i make is so the guy walks away afterwards and disappears

    It sounds like you've been trying to make a level script.
    You need setvar 0x???? in your script for it to work when you enter an area.

    You have also not set a box in your message.
    msgbox @talk
    callstd 0x6


    XSE doesn't use callstd anymore and it's not used as a boxset.
    To have a boxset, you need to put the boxset at the end of the msgbox command.

    Code:
    msgbox @talk 0x6
     
    Last edited:

    AustinWolff

    has left
    100
    Posts
    12
    Years
  • Spoiler:

    Spoiler:
     
    Last edited:
    124
    Posts
    12
    Years
  • Spoiler:


    Spoiler:

    XSE does know the command end.
    I use it all the time (you have to otherwise a script won't work)
    What version of XSE have you got?
    The commands I gave are for XSE because I stopped using PKSV because it was just to complicated to get the scripts to work...
    So far I see nothing wrong with your script.
    Have you added the setvar in A-Map?
     
    14
    Posts
    13
    Years
    • Seen Aug 16, 2013
    #dynamic 0x800000

    #org @start
    setvar 0x1
    checkflag 0x1000
    if 0x1 goto @nothing
    lock
    faceplayer
    applymovement 0x03 @move
    waitmovement 0x0
    msgbox @talk 0x6
    setflag 0x1000
    release
    end

    #org @nothing
    release
    end

    #org @move
    #raw 0x13
    #raw 0x13
    #raw 0xFE

    this is what i added after your advice Natw VonGrimm
    but when i want to compile it, it displays this message

    Erorr 13 'Type mismatch' on line 4.
    Missing #define or parameter.

    Line: setvar 0x1
     

    DrFuji

    [I]Heiki Hecchara‌‌[/I]
    1,691
    Posts
    14
    Years
  • #dynamic 0x800000

    #org @start
    setvar 0x1
    checkflag 0x1000
    if 0x1 goto @nothing
    lock
    faceplayer
    applymovement 0x03 @move
    waitmovement 0x0
    msgbox @talk 0x6
    setflag 0x1000
    release
    end

    #org @nothing
    release
    end

    #org @move
    #raw 0x13
    #raw 0x13
    #raw 0xFE

    this is what i added after your advice Natw VonGrimm
    but when i want to compile it, it displays this message

    Erorr 13 'Type mismatch' on line 4.
    Missing #define or parameter.

    Line: setvar 0x1

    That line is incorrect because you've set a value to be assigned (0x1) but you haven't said which variable it should be assigned to. Just think of a variable like a flag, instead, rather than being either off or on (0x0 or 0x1), it can range from 0x0 0xFFFF. You construct a setvar command like this:

    Code:
    setvar 0x[variable] 0x[value]

    Also, you need to know how to make a level script (i.e a script that activates the instant you walk/ warp into a map). This tutorial will certainly help you to recognise the features present in a level script and how to insert it correctly because it differs from an average green 'S' script tile.
     
    14
    Posts
    13
    Years
    • Seen Aug 16, 2013
    i did everythig that tutorial said, and nothing happened!
    and so i decided to use the exact same one that guy did and nothing happened!
    this is getting extremely frustrating!

    Hey i figured out the problem
    I just downloaded a new XSE and it worked.. strange huh?
     
    Last edited:
    124
    Posts
    12
    Years
  • #dynamic 0x800000

    #org @start
    setvar 0x1
    checkflag 0x1000
    if 0x1 goto @nothing
    lock
    faceplayer
    applymovement 0x03 @move
    waitmovement 0x0
    msgbox @talk 0x6
    setflag 0x1000
    release
    end

    #org @nothing
    release
    end

    #org @move
    #raw 0x13
    #raw 0x13
    #raw 0xFE

    this is what i added after your advice Natw VonGrimm
    but when i want to compile it, it displays this message

    Erorr 13 'Type mismatch' on line 4.
    Missing #define or parameter.

    Line: setvar 0x1

    You forgot to add the setvar variable.
    Code:
    setvar 0x???? 0x1

    I started from 0x5000+


    i did everythig that tutorial said, and nothing happened!
    and so i decided to use the exact same one that guy did and nothing happened!
    this is getting extremely frustrating!

    Hey i figured out the problem
    I just downloaded a new XSE and it worked.. strange huh?

    Old XSE is eXtremely outdated so it doesn't tend to work anymore.
    Good thing you downloaded the new version =]
     
    Last edited:
    14
    Posts
    13
    Years
    • Seen Aug 16, 2013
    okay well i have another problem!
    It is a grunt and he is supposed to say mind your own business and push me back. but all that happens is he pushes me back without saying anything

    note: this is only the segment of the code that is relevent

    #org @done
    msgbox @1 0x6
    applymovement 0xFF @move
    waitmovement 0x0
    release
    end

    #org @1
    = Hey!\pMind your own business!
     

    Quickster

    Dream or Drop?
    351
    Posts
    16
    Years
    • Seen Apr 4, 2016
    okay well i have another problem!
    It is a grunt and he is supposed to say mind your own business and push me back. but all that happens is he pushes me back without saying anything

    note: this is only the segment of the code that is relevent

    #org @done
    msgbox @1 0x6
    applymovement 0xFF @move
    waitmovement 0x0
    release
    end

    #org @1
    = Hey!\pMind your own business!

    Everything seems to be right... Maybe try putting a waitmsg after the msgbox?
     

    AustinWolff

    has left
    100
    Posts
    12
    Years
  • Spoiler:

    Spoiler:


    Spoiler:
     

    TheHippieGuy

    A Natural Street Freak
    1
    Posts
    12
    Years
    • Seen Jun 5, 2015
    Now, I', pretty sure this is something ridiculously simple that I should know (despite how horrible at scripting I am), but I've been making a slightly modified version of Emerald and need to make it so that after beating the Elite 4, Mirage Island and the Lilycove Department Store Rooftop Sale will become activated and stay activated. How could I go about doing this?
     
    12
    Posts
    12
    Years
    • Seen Oct 23, 2012
    Fire Red /// XSE

    Whenever I step on the spot meant to trigger the script, "text1" will display correctly, but the exclamation mark causes the game to freeze as the first letter of the next line, "t," displays. I'm using Advance Map 1.95 and I have the first Unknown set to 03 and the Var number set to 4050. Setting the other unknown to 0300 did not help. I have the first unknown set to 03 because I checked the earlier Advance Map and changing the first Unknown to 300 caused the first Unknown in the version I use to change to 03. Any help would be appreciated.

    Spoiler:
     
    124
    Posts
    12
    Years
  • Fire Red /// XSE

    Whenever I step on the spot meant to trigger the script, "text1" will display correctly, but the exclamation mark causes the game to freeze as the first letter of the next line, "t," displays. I'm using Advance Map 1.95 and I have the first Unknown set to 03 and the Var number set to 4050. Setting the other unknown to 0300 did not help. I have the first unknown set to 03 because I checked the earlier Advance Map and changing the first Unknown to 300 caused the first Unknown in the version I use to change to 03. Any help would be appreciated.

    Spoiler:

    You forgot to add waitmovement 0x0 AND the last raw command 0xFE.


    Spoiler:


    Spoiler:


    the thing is, it takes about 2 hours to insert a script into my game, because my computer is slow. I am working on inserting it right now and see if there are any other problems. I also see a problem with my FIRST picture I uploaded (one of the first posts on THIS page). I set the *unknown* 4 digit number to 0003, instead of the 2 digit *unknown* number to 03.

    about the XSE problem, I downloaded the newest version, and I copy and pasted a XSE script that someone posted. Everyone said the script worked fine with XSE, but when I hit *compile* it still gave me the same message "Unknown command end at line 6". what do you think is the problem?

    TWO HOURS???? Holy....
    Your supposed to set the 2 digit unknown value to $03.
    The 4 digit unknown value stays at $0000.

    I can't honestly answer your question. I don't think anyone has heard this issue before. XSE must know the command 'end'. Everyone uses it... =/

    I can only think of deleting XSE completely, making sure there's no trace of it on your computer (including settings.ini), re-download it again and try it again.
    If it does it again, then contact HackMew. I'm sure he will know the answer considering he made the program.
     
    Last edited:

    AustinWolff

    has left
    100
    Posts
    12
    Years


  • XSE does know the command end.
    I use it all the time (you have to otherwise a script won't work)
    What version of XSE have you got?
    The commands I gave are for XSE because I stopped using PKSV because it was just to complicated to get the scripts to work...
    So far I see nothing wrong with your script.
    Have you added the setvar in A-Map?

    my setvar in my script is 0x6000 0x1. What number would I put into the var value in Amap?

    also, thanks for the info above.
     
    124
    Posts
    12
    Years
  • my setvar in my script is 0x6000 0x1. What number would I put into the var value in Amap?

    also, thanks for the info above.

    You would put 6000 into A-Map.
    The 0x1 at the end just tells the game if the script is going to happen once or repeat.
    So 0x1 would only make the script happen once.
    If you wanted the script to repeat until you clear a flag, use checkflag and change 0x1 to 0x0.
     
    12
    Posts
    12
    Years
    • Seen Oct 23, 2012
    Okay, I've been looking into editing the contest stats from JPAN'S hacked FR, but the code has kind of got me confused and I'm having trouble understanding what did what in the explanation in the manual. I'm still on the pretty basic level and am unfamiliar with a bunch of these commands, but I still tried working it out. Is this how the script for changing a Pokemon's Cuteness value (and not doing anything else) would be written?

    Spoiler:
     

    AustinWolff

    has left
    100
    Posts
    12
    Years
  • Alright, I am using a ruby rom, but INSTEAD of pokescript I used XSE. Again, it is a script box problem. the point is when you step on it, a person moves 2 tiles left and ends the script. however, when i step on it nothing happens!

    Spoiler:


    I attached pics and here are the values:

    Var Number: 0405
    Var Value: 0000
    Unknown: 0300
     

    Attachments

    • problem.jpg
      problem.jpg
      89.1 KB · Views: 9

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    Alright, I am using a ruby rom, but INSTEAD of pokescript I used XSE. Again, it is a script box problem. the point is when you step on it, a person moves 2 tiles left and ends the script. however, when i step on it nothing happens!

    Spoiler:


    I attached pics and here are the values:

    Var Number: 0405
    Var Value: 0000
    Unknown: 0300

    try changing the var and unknown values into this...

    Var number: 0004
    Var value: 3000
    unknown: 0000
     
    Status
    Not open for further replies.
    Back
    Top