Kingofdemons666

Villager
Member
Joined
Jan 18, 2023
Messages
6
Reaction score
1
First Language
English
Primarily Uses
RMVXA
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!
 

EntangledPear

Previously No Patience (now patient enough)
Veteran
Joined
Sep 12, 2018
Messages
195
Reaction score
98
First Language
Slovak
Primarily Uses
RMVXA
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.
 

Kingofdemons666

Villager
Member
Joined
Jan 18, 2023
Messages
6
Reaction score
1
First Language
English
Primarily Uses
RMVXA
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.
 

kyonides

Reforged is laughable
Veteran
Joined
Nov 17, 2019
Messages
1,071
Reaction score
498
First Language
English
Primarily Uses
RMXP
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.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,820
Reaction score
1,369
First Language
English
Primarily Uses
RMVXA
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
 

Kingofdemons666

Villager
Member
Joined
Jan 18, 2023
Messages
6
Reaction score
1
First Language
English
Primarily Uses
RMVXA
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?
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,820
Reaction score
1,369
First Language
English
Primarily Uses
RMVXA
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)
 

Latest Threads

Latest Profile Posts

Have to be more organised and serious. It helps that im running out of time at work :|. so much to do. Trying to make game studio proffessional. www.bmpgames.com
imgur links are back!
now I CAN keep getting away with NOT replacing them with updated renders!
yay!
I forgot RPG Maker even existed. Such good memories. Might boot up steam and download MV one more time
10 pieces of KFC chicken for US$12.30, delivery included. Cheap or expensive? :aswt:
Ugh-I HATE this! There's construction going on in my area and because of that my Internet connection is wonky; this site in particular keeps constantly freezing up on me; I can't even barely type a single sentence without the page freezing in the middle of it! I hope this changes soon.

Forum statistics

Threads
131,548
Messages
1,220,751
Members
173,220
Latest member
ZecaVn
Top