View Single Post
Old January 28th, 2013 (2:18 PM).
FBI's Avatar
FBI FBI is offline
If my PM box is full, VM instead :x
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 949
Quote originally posted by kj3400:
Another question...
I have a script that involves someone moving to a particular spot, but as soon as I move out of eyeshot and come back, the person reverts back to where they initially were. How would I keep them from moving back, even after exiting and entering the map again?
This is actually a question that I'd be interested in too. The solution I think is a level script, similar to the one in the player's room in FireRed. It'd go like this:

movesprite2 0xPersonEventNumber 0xX-pos 0xY-pos
spritebehave 0xPersonEventNumber 0xBehaviourNumber

Behavior number is just what the person does (look down is 0x8 look around is 0x1...ect). This is for FireRed, though other gen III ROMs are likely similar if not the same.

Some of my stuff:
ASM request/resource thread
ASM tutorials thread
ASM Workshop
Pokémon Journeys