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