Command: Enemy Talk

This script allows you to set up enemy talk events during battle and use a talk command to interact with enemies.



Download

Get it at Hime Works!

Installation

Place this script below Command Manager and above Main

Usage

To add the talk command, tag actors with

<cmd: enemy_talk>
command_talk3.gif
Enemy talk events are set up as troop event pages.



To create an enemy talk event page, create a comment of the form

<enemy talk event: x>Where x is the index of the enemy that this will apply to. The first enemyhas an index of 1.

To trigger this talk event, you must use the "talk" command on the enemy

during battle. The event will run once the action is executed.

To check who is currently talking, in your script calls you can use

Code:
$game_temp.talking_actor
to get a reference to a Game_Actor object. This can be used in conditional branches.
Interesting...

I've done similar with events and states.
So this differs from regular "talk in battle event" in that it puts the Talk command in the action list, and you can initiate it at any time?
So this differs from regular "talk in battle event" in that it puts the Talk command in the action list, and you can initiate it at any time?
Yes, that's pretty much the only difference. Not particularly significant but I wanted to use the command manager to write something lol

I have updated the script with the ability to check who is currently talking

$game_temp.talking_actorThis returns a Game_Actor object.You can use this in conditional branches if you want to set conditions depending on the who is talking, or properties of the currently talking actor. Maybe the succubus only talks to men, for example, so if the current talking actor is not a man...she'll just ignore her.

Also a minor tweak to the sprites: the battler that you're talking to will light-up while talking.
Really neat, could lead to a shin megami tensei style system!
Does this still work after so many years?
Does this still work after so many years?
It hasn't changed.

Original thread: https://forums.rpgmakerweb.com/threads/command-enemy-talk.11895/