Disable NPC from Facing towards Player without Direction Lock

metronome

Veteran
Veteran
Joined
Aug 21, 2014
Messages
338
Reaction score
144
First Language
English (Sure!)
Primarily Uses
Let's say you want to make an NPC that will say different dialogue based on the direction she is facing. If you call this NPC from her back, she will say "A". If you call this NPC from her other sides, she will say "B". And of course you want to make her looks naturally alive. So you make her walk randomly with no direction lock.

Problem is, when you call the NPC from her back, she will say "B" instead of "A". The NPC will automatically face your character when she is called before the conditional branch is proccessed.

There is this script: https://forums.rpgmakerweb.com/index.php?threads/disable-npc-lock.17721/ back in RMVA days (thanks to Shaz). Do we have this kind of plugin for RMMV? Or is there any way to do it without plugin?

I have been searching, and I might not be the best keyword searching human-engine out there, so.......

Thanks for at least reading.
 

Gamefall Team

Nebula Games Leader
Veteran
Joined
Jan 10, 2017
Messages
348
Reaction score
473
First Language
Italian
Primarily Uses
RMMZ
Hi! I made a version of the plugin you need for MV, inspired by the original made by Shaz for VX. Credits may be given to her and about me credit are appreciated, but not necessary! Hope that this would solve your problem :kaopride:
GTP_NoLock(MV).rar
 

Attachments

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
If that doesn't work for you, you can do it by having the sprite's dialogues in conditional branches depending on which way the player is facing.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,669
First Language
German
Primarily Uses
RMMV
or you can use a custom move route including the commands for direction lock off before the move and on after it - that is a bit more tricky with timing, but can be done as well.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top