• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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