The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Pksv event scripts not running

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old January 17th, 2022 (4:58 PM).
oxserk oxserk is offline
 
Join Date: Jan 2022
Posts: 1
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
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old January 25th, 2022 (12:09 AM).
Greenphx's Avatar
Greenphx Greenphx is offline
 
Join Date: Sep 2019
Location: Australia
Gender: Male
Posts: 106
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).
__________________
My Hacks:
Pokemon Inflamed Red (similar to Radical Red/Inclement Emerald)
Pokemon Fire Red 898 Randomizer
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:20 AM.