hey all, I'm trying to make the main char talk when looked at, grabbed, or talked to, rather than just displaying a message. I've looked through the manual and everything else i could think of, but i can't figure it out. I would appreciate any help.
You need to choose the name of your character from the list in the Message editor. THe default is "Normal Text". Change it to the name of your character.
lol how did i miss that. thanks!
..um, wait, im in the global messages thing, no name chooser there... double clicked the mssg to edit it, not there either. Am I missing something totally obvious?
also I'm using Game-DisplayMessage
is that good or bad?
You need to check the "Always display as speech" option in the general settings to get those global messages to be displayed as the player character's speech.
Another option is to remake the interactions:
in the characters editor, go to your main char and click on the "Interactions" button, doubleclick on the "Look at...", "Interact..." and "Talk to..." options in turns and select "Run script" from the dropdown menu, and then click the OK button. when you have these three defined, go to the global script and add to it's start:
string egointact;
and then go to the bottom of the script where you should find functions like:
function character0_a() {
// look at character
}
or similiar (I don't remember the exact form). Add to every one some code as follows:
to Look:
GetMessageText(999, egointact);
DisplaySpeech(EGO, egointact);
to Interact:
GetMessageText(998, egointact);
DisplaySpeech(EGO, egointact);
and to Talk:
GetMessageText(997, egointact);
DisplaySpeech(EGO, egointact);
Hope this helps.
or you could just do this:
Run script
DisplaySpeech(EGO, "Whoa! I'm talking to myself")
>:/ yeah, sure... but editing the messages through the global message editor is easier and cleaner... or not... :P
cool, thanks guys.