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

[Archive] Script help thread

Status
Not open for further replies.

Vrai

can you feel my heart?
  • 2,896
    Posts
    15
    Years
    • Age 29
    • Seen Oct 24, 2022
    Hi i'm new to scripting just wondering if anyone knows what the script is for a "dark/ evil atomsphere/lighting" on a map?

    I would think that that would have something to do with A-map, but I probably aren't right..

    Maybe if you would explain what you mean a little more, then you could get better help.
     
  • 857
    Posts
    15
    Years
    Hi i'm new to scripting just wondering if anyone knows what the script is for a "dark/ evil atomsphere/lighting" on a map?

    List of weather from thethethethe's tut:
    Code:
    None = 0x0
    Reflected Clouds = 0x1
    Normal = 0x2 
    Rain = 0x3
    3 Snowflakes = 0x4
    Thunderstorm = 0x5 
    Fog = 0x6
    Snow = 0x7
    Sandstorm = 0x8
    Diagonal Fog = 0x9
    Thin Fog = 0xA
    Bit Dark = 0xB
    Overheat = 0xC
    Thunderstorm2 = 0xD
    None = 0xE
     

    Tony the Awesome

    mi nombre es tony
  • 233
    Posts
    16
    Years
    • Seen Mar 13, 2010
    I need help with the music script again -_-
    Spoiler:

    What happens is that when I press no, it turns out like this.
    [Archive] Script help thread

    Nothing happens...
    Then I could just press A a few times and it'll remove the box.
    Then when I click on the script again, it turns out like this
    [Archive] Script help thread

    No message box. At first, it comes out blank, then when I click A a couple times,
    the yes/no pops up. And then the same thing happens over and over again...
     
    Last edited:

    machomuu

    Stuck in Hot Girl Summer
  • 10,507
    Posts
    16
    Years
    Spoiler:

    otherwise it's just a messed up double yes/no script.
     

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    Can I have help?

    Spoiler:

    Thanks!
    PS: It's a level script.

    In level scripts, you should use setvar's. Refer to Cooley's tutorial for level scripting.
    Fixes are in bold.
     

    Sierraffinity

    Desperately trying to retire from ROM hacking
  • 1,069
    Posts
    16
    Years
    Quote:
    Originally Posted by diegolovespika [Archive] Script help thread
    Can I have help?

    Content hidden:
    Click here to view.
    #dynamic 0x2FBE03

    #org @start
    checkflag 0x206
    if 0x1 goto @end
    lock
    setvar 0x7000 0x1
    applymovement 0xFF @down
    waitmovement 0x0
    applymovement 0x1 @outofway
    waitmovement 0x0
    applymovement 0xFF @out
    waitmovement 0x0
    applymovement 0x1 @backin
    waitmovement 0x0
    textcolor 0x0
    msgbox @welcome
    boxset 0x6
    release
    end

    #org @end
    release
    end

    #org @down
    #raw 0x10
    #raw 0xFE

    #org @outofway
    #raw 0x11
    #raw 0x12
    #raw 0xFE

    #org @out
    #raw 0x10
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x10
    #raw 0x10
    #raw 0x01
    #raw 0xFE

    #org @backin
    #raw 0x13
    #raw 0x10
    #raw 0xFE

    #org @welcome
    = Welcome to Saren City.\pWe hope you had a comfy ride!





    Thanks!
    PS: It's a level script.


    In level scripts, you should use setvar's. Refer to Cooley's tutorial for level scripting.
    Fixes are in bold.
    Actually, that "if 0x0 goto" line was correct. And thanks for pointing me to Cooley! I'll definitely read up on it!
     

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    I need help with the music script again -_-
    Spoiler:

    What happens is that when I press no, it turns out like this.
    [Archive] Script help thread

    Nothing happens...
    Then I could just press A a few times and it'll remove the box.
    Then when I click on the script again, it turns out like this
    [Archive] Script help thread

    No message box. At first, it comes out blank, then when I click A a couple times,
    the yes/no pops up. And then the same thing happens over and over again...

    Tony, I think the mistake is in this:

    Code:
    compare LASTRESULT 0x0
    if 0x1 goto @yes
    compare LASTRESULT 0x0
    if 0x1 goto @no

    You 'compared 0x800D 0x0' for the yes, and for the no. So try changing the first
    compare LASTRESULT 0x0 to compare LASTRESULT 0x1
    No sure though.
     

    Sierraffinity

    Desperately trying to retire from ROM hacking
  • 1,069
    Posts
    16
    Years
    Aargh! I spent all of today trying to find out: WHAT'S WRONG???
    This is the script that warps you:
    Spoiler:

    This is the level script:
    Spoiler:

    For some reason, the level script doesn't activate.
    I have the flag in A-Map set to 7000, the value set to zero, and I've fixed A-Map's error with the level script.
    HELP ME PLEASE!!!!!!!!!!!!
     

    Tony the Awesome

    mi nombre es tony
  • 233
    Posts
    16
    Years
    • Seen Mar 13, 2010
    Tony, I think the mistake is in this:

    Code:
    compare LASTRESULT 0x0
    if 0x1 goto @yes
    compare LASTRESULT 0x0
    if 0x1 goto @no

    You 'compared 0x800D 0x0' for the yes, and for the no. So try changing the first
    compare LASTRESULT 0x0 to compare LASTRESULT 0x1
    No sure though.

    Oh. lol. I guess i wasn't paying attention >_<
    Now, the problem is, that when I click Yes, it goes to the NO pointer and when I click No it goes to the yes pointer.
    Spoiler:
     

    0m3GA ARS3NAL

    Im comin' home...
  • 1,816
    Posts
    16
    Years
    Aargh! I spent all of today trying to find out: WHAT'S WRONG???
    This is the script that warps you:
    Spoiler:

    This is the level script:
    Spoiler:

    For some reason, the level script doesn't activate.
    I have the flag in A-Map set to 7000, the value set to zero, and I've fixed A-Map's error with the level script.
    HELP ME PLEASE!!!!!!!!!!!!

    I dont know anything about level scripts... but 7000... ummm, can you explain?

    and my question....

    I need help making level scripts... are they writen the same way as regular scripts? can someone help me, (Or point me in the direction of a handy dandy tutorial?)
     

    Ninja Caterpie

    AAAAAAAAAAAAA
  • 5,979
    Posts
    16
    Years
    For OmegaArsenal, there's tutorial by cooley in the Docs and Tuts section. It's called "Secret of the Move Camera Scripts (and EXTRAS)" The extras include level scripts.
     

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    Oh. lol. I guess i wasn't paying attention >_<
    Now, the problem is, that when I click Yes, it goes to the NO pointer and when I click No it goes to the yes pointer.
    Spoiler:

    Then reverse this:

    Code:
    compare LASTRESULT 0x0
    if 0x0 goto 0x8800991
    compare LASTRESULT 0x1
    if 0x1 goto 0x88009BF

    to

    Code:
     compare LASTRESULT 0x1
    if 0x0 goto 0x8800991
    compare LASTRESULT 0x0
    if 0x1 goto 0x88009BF
     

    score_under

    Inactive; Former ROM hack tool author, ❤️
  • 526
    Posts
    18
    Years
    Then reverse this:

    Code:
    compare LASTRESULT 0x0
    if 0x0 goto 0x8800991
    compare LASTRESULT 0x1
    if 0x1 goto 0x88009BF
    to

    Code:
     compare LASTRESULT 0x1
    if 0x0 goto 0x8800991
    compare LASTRESULT 0x0
    if 0x1 goto 0x88009BF
    For goodness' sake.
    It's got one goto.
    If that first if/goto command is not taken then it will DEFINITELY take the second one.
    What does this tell us?
    The second one does not need an if.
    Code:
    compare LASTRESULT 0
    if 1 goto 0x8800991
    jump 0x88009BF
    That should work.
     

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    For goodness' sake.
    It's got one goto.
    If that first if/goto command is not taken then it will DEFINITELY take the second one.
    What does this tell us?
    The second one does not need an if.
    Code:
    compare LASTRESULT 0
    if 1 goto 0x8800991
    jump 0x88009BF
    That should work.

    Dude, ok no need for all that. Just say that I am wrong.

    What does setworldmapflag or something do?
     
  • 224
    Posts
    16
    Years
    • Seen Mar 8, 2016
    @Hiche: According to XSE setworldmapflag: Sets the flag used to allow the player to fly to a specific place. FR/LG only.

    Hope that helped.

    I just learned how to make level scripts, and everything is working fine except for one problem I'm running into. You see I set a flag in the beginning of the game to hide a sprite in one of the houses in pallet town. That flag was 112. So the sprite was hidden. Then I went and made a script that when I talk to a man he leads him to his house, and in his house I put a level script where he gives me a Pokemon (celebi). It all works fine, and I get the Celebi and everything. I made it so that the flag I set in the beginning of the game is cleared when I talk to the man, because I want the sprite in the house that he's leading me to to be visible again. So, the sprite is visible again and all works fine. HOWEVER, my problem is that when I go into the house without talking to the old man, as soon as I enter the house, the game freezes... Or at least the character freezes. I've been trying to solve this for like 2 weeks but to no avail... any help?

    Here are my 2 scripts:

    The first one, when the old man leads me to his house (this one works fine)

    Spoiler:


    Here is the LEVEL script:

    Spoiler:


    I'm not sure If I posted this same issue here before and pmed a lot of people but I still didn't get it to work. Oh and the type of level script I'm doing is the "validates values, loads handler to 0x30000EB0" since that's the only one I know how to use and if I try to experiment with the other types it leads to failure.. so yeah.... Oh and people keep telling me stuff like don't use flags used in the game and variables use in the game but I already know that and I tried using different variables and flags it made no difference.
     

    Sierraffinity

    Desperately trying to retire from ROM hacking
  • 1,069
    Posts
    16
    Years
    @Hiche: According to XSE setworldmapflag: Sets the flag used to allow the player to fly to a specific place. FR/LG only.

    Hope that helped.

    I just learned how to make level scripts, and everything is working fine except for one problem I'm running into. You see I set a flag in the beginning of the game to hide a sprite in one of the houses in pallet town. That flag was 112. So the sprite was hidden. Then I went and made a script that when I talk to a man he leads him to his house, and in his house I put a level script where he gives me a Pokemon (celebi). It all works fine, and I get the Celebi and everything. I made it so that the flag I set in the beginning of the game is cleared when I talk to the man, because I want the sprite in the house that he's leading me to to be visible again. So, the sprite is visible again and all works fine. HOWEVER, my problem is that when I go into the house without talking to the old man, as soon as I enter the house, the game freezes... Or at least the character freezes. I've been trying to solve this for like 2 weeks but to no avail... any help?

    Here are my 2 scripts:

    The first one, when the old man leads me to his house (this one works fine)

    Spoiler:


    Here is the LEVEL script:

    Spoiler:


    I'm not sure If I posted this same issue here before and pmed a lot of people but I still didn't get it to work. Oh and the type of level script I'm doing is the "validates values, loads handler to 0x30000EB0" since that's the only one I know how to use and if I try to experiment with the other types it leads to failure.. so yeah.... Oh and people keep telling me stuff like don't use flags used in the game and variables used in the game but I already know that and I tried using different variables and flags it made no difference.
    I have an idea...

    Spoiler:

    Also change that byte in A-Map. But that's not all!
    In that level script that hides the sprite in the house, use the variable 7001.
    I was messed up in the same way.
    I don't know why I keep pressing Enter after every sentence.
     

    destinedjagold

    I do not exist.
  • 8,593
    Posts
    17
    Years
    • Seen May 26, 2024
    I have a question about warp scripts in XSE...

    an example warp script would look like this...
    Code:
    warp 0xA 0x1 0x3 0xFD02 0xB401

    my question is, what does the 0xFD02 and 0xB401 mean?
    they differ from different scripts in-game though... :\
     

    Ninja Caterpie

    AAAAAAAAAAAAA
  • 5,979
    Posts
    16
    Years
    Code:
    '---------------
    #org 0x2DDCFC
    faceplayer
    msgbox 0x82DD400 MSG_NORMAL '"Hah! Hah! Hey there, kid! People\n..."
    trainerbattle 0x1 0xB7 0x0 0x82DD445 0x82DD4C5 0x82DD328
    end
    
    '---------------
    #org 0x2DD328
    msgbox 0x82DD69F MSG_NORMAL '"Haha...You got lucky kid. That was..."
    compare PLAYERFACING 0x2
    if 0x0 goto 0x82DD71E
    goto 0x82DD727
    
    '---------------
    #org 0x2DD71E
    applymovement 0x5 0x82DDD19
    end
    
    '---------------
    #org 0x2DD727
    applymovement 0x5 0x82DDCE9
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x2DD400
    = Hah! Hah! Hey there, kid! People\ncall me the King of the Mountain!
    
    #org 0x2DD445
    = So what do you want?\p...\pWhat? You want to pass? Hah.\nAlright then.\pIf you, puny little kid, can beat\nme, I'll let you pass!\l
    
    #org 0x2DD4C5
    = No way!
    
    #org 0x2DD69F
    = Haha...You got lucky kid. That was\nmy weak team.\pA deal's a deal, I'll let you\npass.\pThis won't be the last time you\nsee me!
    
    
    '-----------
    ' Movements
    '-----------
    #org 0x2DDD19
    #raw 12 'Step Left (Normal)
    #raw 10 'Step Down (Normal)
    #raw 10 'Step Down (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 60 'Hide
    #raw FE 'End of Movements
    
    #org 0x2DDCE9
    #raw 10 'Step Down (Normal)
    #raw 10 'Step Down (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 12 'Step Left (Normal)
    #raw 60 'Hide
    #raw FE 'End of Movements
    It's the decompiled one because I don't have the original. It does everything except move... It doesn't freeze, it just stops. Then, when I talk to him again, he just says the first part...


    NINJA'D BY TIME!

    Time, uh...the first one is Map bank, then map, then warp, then X coordinate, then Y coordinate. I don't see why there's both warp and coordinates, but anyway.
     
  • 224
    Posts
    16
    Years
    • Seen Mar 8, 2016
    I have an idea...

    Spoiler:

    Also change that byte in A-Map. But that's not all!
    In that level script that hides the sprite in the house, use the variable 7001.
    I was messed up in the same way.
    I don't know why I keep pressing Enter after every sentence.

    As I said... I've tried changing around variables and that is not the problem.. nor is the byte in A-Map I know how to fix that. My problem is that the game FREEZES if I enter the map without talking to the old man first, but I DON'T want the game to freeze. Kind of like when you go into the lab in FR without first trying to go into the grass, how there is nobody there until you go into the grass. Also can somebody clarify how to use the different types of level scripts? I tried messing around with em but it never works... And unfortunately there's no tutorial on how to use diff. types of level scripts? Also anyone else know why my game freezes up?

    Oh and @ Dark Latiku.. Try taking out this part of the script:

    compare PLAYERFACING 0x2
    if 0x0 goto 0x82DD71E

    I'm not so good at working with decompiled scripts but when I write applymovement scripts I don't have that in my script.
     
    Status
    Not open for further replies.
    Back
    Top