Announcement: Be excellent to each other.


Caravel Forum : Caravel Boards : General : How can I make an NPC move after dialogue is finished?
New Topic New Poll Post Reply
Poster Message
eatmorepies
Level: Goblin
Rank Points: 26
Registered: 11-24-2010
IP: Logged
icon How can I make an NPC move after dialogue is finished? (+2)  
Hello. How can I program my NPC to move after his dialogue is finished? I have the move command listed after the speech commands, but the NPC starts to move as soon as Beethro does.
07-26-2018 at 05:34 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
mauvebutterfly
Level: Smitemaster
Avatar
Rank Points: 720
Registered: 05-03-2015
IP: Logged
icon Re: How can I make an NPC move after dialogue is finished? (+2)  
The problem here is that dialogue is time-based, but gameplay is turn-based, so moving too quickly will cause these kinds of situations.

One solution to this problem is to use a cutscene to force the player to wait until the dialogue is finished.

If you want the player to be able to move while the NPC is talking, you'll have to set the NPC's movement trigger to be something that the player won't be able to do quickly. Then the NPC will sit around until the player triggers it to move later.

____________________________
106th Skywatcher
07-26-2018 at 07:30 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
ErikH2000
Level: Legendary Smitemaster
Avatar
Rank Points: 2794
Registered: 02-04-2003
IP: Logged
icon Re: How can I make an NPC move after dialogue is finished? (+2)  
Perfect answer from MB.

If you write the dialogue with this limitation in mind, you can sometimes figure out a better way to write it. And the limitation lends itself to shorter dialogue which is great for in-game.

-Erik

____________________________
The Godkiller - Chapter 1 available now on Steam. It's a DROD-like puzzle adventure game.
dev journals | twitch stream | youtube archive (NSFW)
08-29-2018 at 02:38 AM
View Profile Send Email to User Show all user's posts This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : Caravel Boards : General : How can I make an NPC move after dialogue is finished?
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.