• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

[Other] advance map & inserting script

qaz015393

pokemon revenge developer
  • 789
    Posts
    15
    Years
    • Seen Feb 10, 2025
    I need some help inserting my script and making it work right when I insert it in advance map. Now I didn't know if it did this right or not, i gave all people in the script the script offset and set var in advance map. Also I posted the script with some notes on what I wanted it to do, I also posted a video on what happens [in attachment] and what it looks like in advance map [like i said I gave all npcs the same var and script offset like the level script has]. Am I no way a pro in xse scripting, I know the basics and some other stuff from tutorials but I don't know how to do major complicated scripts like you experts XD but I am trying my best.


    Spoiler:


    Spoiler:
     
    Spoiler:


    Spoiler:


    Code:
    #org @start
    lockall
    checkgender
    compare 0x800D 0x1
    if 0x1 goto @female
    compare 0x800D 0x0
    if 0x1 goto @male
    applymovement MOVE_PLAYER @move12
    applymovement 0x4 @move13

    Why do you have that script after the goto command?
    If you just wanted a different msgbox for each gender, you'd use "call" and "return", such as:
    Code:
    #dynamic 0x800000
    
    #org @start
    lockall
    checkgender 
    compare 0x800D 0x1
    if 0x1 [COLOR="red"]call[/COLOR] @girl
    compare 0x800D 0x0
    if 0x1 call @boy
    ...
    '-----------------
    ...
    #org @girl
    msgbox @yourf 0x4
    closeonkeypress (I believe this is what you meant)
    return
     
    There's also a severe lack of 'waitmovement 0x0' (or pauses) in your script. A lot of the movements, once you fix the above issue, will mess up or fail to happen.

    Now I didn't know if it did this right or not, i gave all people in the script the script offset and set var in advance map.

    When using a level script the person events involved do not have to be given scripts (they could have totally independent, separate scripts). All you need to make sure is that they have the corresponding event number and a flag number, if you are making them hide/show.
     
    Code:
    #org @start
    lockall
    checkgender
    compare 0x800D 0x1
    if 0x1 goto @female
    compare 0x800D 0x0
    if 0x1 goto @male
    applymovement MOVE_PLAYER @move12
    applymovement 0x4 @move13

    Why do you have that script after the goto command?
    If you just wanted a different msgbox for each gender, you'd use "call" and "return", such as:
    Code:
    #dynamic 0x800000
    
    #org @start
    lockall
    checkgender 
    compare 0x800D 0x1
    if 0x1 [COLOR="red"]call[/COLOR] @girl
    compare 0x800D 0x0
    if 0x1 call @boy
    ...
    '-----------------
    ...
    #org @girl
    msgbox @yourf 0x4
    closeonkeypress (I believe this is what you meant)
    return


    Yeah thanks for the help.

    There's also a severe lack of 'waitmovement 0x0' (or pauses) in your script. A lot of the movements, once you fix the above issue, will mess up or fail to happen.



    When using a level script the person events involved do not have to be given scripts (they could have totally independent, separate scripts). All you need to make sure is that they have the corresponding event number and a flag number, if you are making them hide/show.

    Thanks for the help.



    I'll check later and see how it comes out when i get home.
     
    Do not forget to change the value of "Unknown" to 300 (if not work). Do not know why, but I have done a script that only worked with this 300 in Unknown.
    I set the Unknown for the script to 3... but which "Unknown" r u talking about?


    There's also a severe lack of 'waitmovement 0x0' (or pauses) in your script. A lot of the movements, once you fix the above issue, will mess up or fail to happen.



    When using a level script the person events involved do not have to be given scripts (they could have totally independent, separate scripts). All you need to make sure is that they have the corresponding event number and a flag number, if you are making them hide/show.

    I tried to fix the script and this is what i got now

    Spoiler:


    I'm using both tajaros's and diegiosawesome's xse scripting tuts. Now I can't get the apply movements to work in the script for some reason I have the script saved with the right moves but it doesn't compile right. This is becoming a problem. I added notes to where its not working.

    Spoiler:


    This is what I keep getting after I compile it the rom


    Spoiler:
     
    Back
    Top