Dependent event also runs with player

xUMG

Hoho-oh?
Member
Joined
Oct 16, 2017
Posts
114
So, I used
Code:
pbAddDependency2(
   @event_id,"Liz",3)
to make event Liz follow me, but it does not show the running sprite I made.

The character sprite sheet for the event is BW002 and the running sprite for it is BW002_run, I tried to define it in the metadata as PlayerC but it does not work. I only need the event to follow me not to battle with me.

If it is not possible to do that way, then is there a way to make it possible?
 

Ulithium_Dragon

Trainer
Member
Joined
Sep 6, 2017
Posts
52
I don't believe that NPCs are set up to utilize running sprites is the problem. The player's sprite is defined separately from event graphics, and there are several things unique to the player that won't work with NPCs (such as the Outfit system).

You'd likely need to edit the code for dependent events and do some kind of check for:
1) If the player is running (there should be a global variable that controls this I think?)
2) If a running sprite exists for that NPC.

Dependent event data is all stored inside an "array of arrays", so you'd need to run some code to single out which dependant event is currently following the player, then access that array and forcibly change the graphics file inside it.
 

Mr42leon

Novice
Member
Joined
Jul 6, 2017
Posts
10
I don't know if it works, but my first try would be to create the regular NPC follow player, but to give the NPC 0 Pokémon, so, it would act like all of its Pokemon fainted and the player would battle alone.
At least, that would be my first try.
 
Top