hello!!
i’m having a dialogue problem here
when the player collide with one npc it turns all the npcs dialogue with the same first npc dialogue
like this :
and the same events for the other npc with just a little bit of changes(like collisions etc).
I was thinking of attaching IDs for the NPC’s so any other ideas please
I can already see the problem in your code: The NPC value seems to be given to all characters on screen, because there is no way that the game can differentiate between different NPCs if it isn’t told which ones are which. Check your code for the other NPC and make sure that the target object in the conditions column is named differently from the first NPC. Try something like “NPC_2”. There might be a way to differentiate NPCs using a string variable, but I don’t have the skill to do anything like that. Someone else on here might.
Using this event you can set it to some object
So whatever you set in this event will happen only to object of this type IF condition is satisfied
So if you have player is in collision with object display text above object
It will happen only to object in which player is collision with and not to all of them
Can you try moving it outside the “for each” event, then using the “not” condition and inserting the collision event inside it? (do not invert the collision event)
so here is some updates:
when the player collides with the first npc it gives the first problem and after finishing the dialogue if the player goes to the second npc it gives him the last dialogue that the npc should say like this
i tried going to him first but the game glitches and freezes when pressing the “e” button
heres a reorded video explaining what’s going on :https://youtu.be/NVOV2hzXYKA