[Shin Megami Tensei Project] Tsukihime's Enemy Talk Command Help

Hello everyone.

As the title says, im trying to make a shin megami tensei fan game and i want it to be as similar as the games as possible.
If you don't know about this franchise, there's a mechanic which allows the player to talk to the enemy and request things such as money, items or even join you.

Im trying to recreate that in my game with the script ''Command: Enemy Talk'' by tsukihime, and there's an option to make the script check which actor is currently talking to the enemy, allowing the dev to make different dialogues for each party member when talking to the enemy.

Problem is, i can't get it to work, i can make conversations but not for each party member, they all have the same dialogues.
This is the code that needs to be used so the script can check the actor that is talking: $game_temp.talking_actor

On tsukihime's page says that it needs to be put on conditional branches, but even then it still shows the same text for every party member, maybe it needs to be specified how to make the script recognize each actor? if so, then how? please help!
Can you show us a screenshot of the event? It's hard to say what's wrong when we don't know how you set everything up.
Here's how i set it up.

epic.png


As you can see i put 2 different branches for each actor so they can have different dialogues with the enemies, but every time i use the talk command on the enemy the two dialogues appear for all of the actors.

What happens in my game is this: if eric talks to the enemy, both the ''eric talked to the enemy'' text and ''natalie talked to the enemy'' text appear one after the other. This too happens if natalie is the one talking to the enemy, i don't know how to make the script recognize which actor is talking.
Huh? For a conditional statement to work, you gotta need something to be compared with in the first place. $game_temp.talking_actor is what? An ActorID? So which one is it supposed to be? Non existing? (nil in Ruby) You need the equality operator == to make it work there.
is what? An ActorID?
The code shows it to be @subject
So I assume it's the entire actor data. So I would think $game_temp.talking_actor.id would get the actor id and then do the comparison
Ruby:
  def execute_enemy_talk_action
    $game_temp.talking_actor = @subject
So I would think $game_temp.talking_actor.id would get the actor id and then do the comparison
You mean that it could work if i add .id (and then put the actor's id) at the end of the code?
You can try.
Conditional Branch: Script: $game_temp.talking_actor.id == 1
let us know if that works.
You can also try printing the data and see if is what we think it is.
script: msgbox_p($game_temp.talking_actor)
$game_temp.talking_actor.id == 1
Just tried it and it worked, thanks a lot!

Original thread: https://forums.rpgmakerweb.com/threads/shin-megami-tensei-project-tsukihimes-enemy-talk-command-help.154799/