Command: Enemy Talk

Discussion in 'RGSS3 Scripts (RMVX Ace)' started by Tsukihime, Apr 20, 2013.

  1. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,061
    Location:
    Toronto
    First Language:
    English
    This script allows you to set up enemy talk events during battle and use a talk command to interact with enemies.

    [​IMG]

    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>[​IMG]Enemy talk events are set up as troop event pages.

    [​IMG]

    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.
     
    Last edited by a moderator: Apr 15, 2015
    #1
  2. deilin

    deilin Ranger/Elementalist Veteran

    Messages:
    1,189
    Likes Received:
    173
    First Language:
    English
    Interesting...

    I've done similar with events and states.
     
    #2
  3. Shaz

    Shaz Veteran Veteran

    Messages:
    37,711
    Likes Received:
    11,419
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    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?
     
    #3
  4. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,061
    Location:
    Toronto
    First Language:
    English
    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.
     
    Last edited by a moderator: Apr 20, 2013
    #4
  5. Sidbot

    Sidbot Villager Member

    Messages:
    21
    Likes Received:
    4
    Really neat, could lead to a shin megami tensei style system!
     
    #5

Share This Page