Jump to content

moving a npc


Recommended Posts

it's just a movement instruction for the given NPC's ID.

select the NPC, specify length of movement instruction

move instruction 1 & iterations

move instruction 2 & iterations ...

command IDs differ between games but it's really easy.

Moving an NPC:

You have three methods to move NPCs.

  • 0064 - Applymovement - You can tell them what movements to perform.
  • 006D - RelocateNPC - You can instantly relocate them to new coordinates.
  • 024F - MoveNPC - You can tell them to move coordinates (over a time period) from their current coordinates.

==========

0064 - Applymovement

Applymovement has many movement types. Give the NPC a movement and how many times it does that movement.

...time to move an NPC.
[color=blue]64 00[/color] [color=green]FF 00[/color] [color=purple]08 00 00 00[/color]         ApplyMovement 0xFF~hero (jump 0x00000008, start those movements, continue script)
[color=blue]65 00[/color]                     WaitMovement
[color=blue]1E 00[/color] [color=purple]16 00 00 00[/color]            Jump (0x00000016) past the movement instructions
   [color=gold]01 00 00 00[/color]                 Face Down for 0 iterations.
   [color=gold]4B 00 00 00[/color]                 Exclamation for 0 iterations (0 or 1 is ok)
   [color=gold]17 00 01 00[/color]                 Shuffle right 1 step (one can always have StoreHeroPosition -> different moves)
   [color=gold]14 00 01 00[/color]                 Shuffle up 1 step
   [color=gold]01 00 00 00[/color]                 Face Down for 0 iterations
   [u]FE 00 00 00[/u]                End Movement Instructions
... continue script

List of movement types

Link to comment
Share on other sites

it's just a movement instruction for the given NPC's ID.

select the NPC, specify length of movement instruction

move instruction 1 & iterations

move instruction 2 & iterations ...

command IDs differ between games but it's really easy.

Can you make an example for the 3th one? The 024F one please

Link to comment
Share on other sites

024F - MoveNPC
[color=blue]024F[/color] [color=red]MoveNPC[/color][color=green]
- u16: Overworld ID
- u16: X coordinate
- u16: Y coordinate
- u16: Z coordinate
- u16: Rapidity (how fast)
- u16: Face Direction (not used?)[/color]

[color=blue]4F 02 [/color] [color=green]03 00 19 00 0F 00 02 00 0C 00 02 00[/color]
relocate NPC=0x03 to (X,Y,Z)=(0x19,0x15,0x02), at speed 0x0C

Just read the thread, I explained how to alter some premade command strings.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...