• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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] Pksv event scripts not running

  • 1
    Posts
    3
    Years
    • Seen Mar 3, 2022
    Hello,

    I'm a newbie to rom hacking and scripting.
    I am using Advance map and pksv editor to try and create events.
    The sign, person and warp events work.
    However, I'm unable to get script events to work.
    I've watched a bunch of tutorials but once I've compiled the script and changed the offset, I try the game and nothing happens.
    The player just moves around normally as if nothing is there.
    I'm creating a script in which when initiated, an npc walks towards the player and says stuff.

    This is what I'm using:
    #org 0x87402A6
    '-----------------
    lockall
    applymovement 0x18 @walk
    pauseevent 0x0
    textcolor RED
    message @text
    callstd MSG_LOCK
    releaseall
    end

    #org @text
    = Hello, \p How are you?.

    #org @walk
    M walk_right walk_right walk_right walk_right walk_right

    I also had to change var number to a random 4 digit 'cause otherwise, the player just froze in place of script initiation.
    So, what am I doing wrong?

    Also, I couldn't find any info on when we use applymovement for an npc, what information do we use to define which one it is? Is 0x18 the person event no?

    Thanks!
    oxserk
     
    If the var number for the script is set to 1 (or anything other than 0?) it won't run. Set it to a var you aren't using (you can find unused ones online).
     
    Back
    Top