Character interactions. Must be set globally?

Started by MCF, Fri 19/12/2003 21:44:02

Previous topic - Next topic

MCF

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?


Javier

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.
Javier ---> (msg me at javier_088@hotmail.com)

MCF

That's the problem.  I want to override to global.  I was wondering if anyone knew of the code to do this.

Javier

Hummm...ok, I think you don't need to use any code, but let's wait some code expert comes and helps you...bye!
Javier ---> (msg me at javier_088@hotmail.com)

Scorpiorus

#4
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!");

}

SMF spam blocked by CleanTalk