Make ego talk?

Started by Joelman, Thu 04/12/2003 19:19:36

Previous topic - Next topic

Joelman

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.
Are clones people two?

Babar

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.
The ultimate Professional Amateur

Now, with his very own game: Alien Time Zone

Joelman

lol how did i miss that. thanks!
Are clones people two?

Joelman

#3
..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?
Are clones people two?

Ishmael

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.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Inkoddi

or you could just do this:

Run script

DisplaySpeech(EGO, "Whoa! I'm talking to myself")
toot

Ishmael

>:/ yeah, sure... but editing the messages through the global message editor is easier and cleaner... or not... :P
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Joelman

Are clones people two?

SMF spam blocked by CleanTalk