When your playable character interacts with another character, do you have to have the global interaction responses -- those set in the character menu. What if I want different interactions for different times in the game... when another character appears in a different room, say?
What is the code to dictate room-specific character responses?
WOW!!! This is the first time I help and I'm not asking for help...:P
Well... you have to set the character's interactions in the "Characters" option, which is in the left hand pane.
All the things you add or change in the items of the Interaction Editor are "global",as you said...it doen't matter which room the character is in...
I hope I could help.
That's the problem. I want to override to global. I was wondering if anyone knew of the code to do this.
Hummm...ok, I think you don't need to use any code, but let's wait some code expert comes and helps you...bye!
Well, you could check for the current room:
character talk interaction:
int PC = GetPlayerCharacter(); // get player character
if (character[PC].room == 1) { //if we in the 1st room
Display("You are in the room number 1);
}
if (character[PC].room == 2) { //if we in the 2nd room
Display("You are in the room number 2);
}
// if we in the same room where MAN is
if (character[PC].room == character[MAN].room) {
DisplaySpeech(MAN, "Im here!");
}