Home   Help Search Login Register  

Author Topic: conversation help  (Read 403 times)

0 Members and 1 Guest are viewing this topic.

garret64

  • Guest
conversation help
« on: 28 Apr 2004, 02:23:42 »
In the beginning of my mission, i want a resistance guy to walk over to me, and have some text appear like we are talking.  I don't want a cutscene or to use sounds yet, just the text to appear on the screen.

I've looked through the ed depot, and searched through the forums, and i haven't been able to find anything that helps.


Offline SEAL84

  • Members
  • *
  • Always lurking
Re:conversation help
« Reply #1 on: 28 Apr 2004, 02:47:17 »
I'd use a script.

Have a trigger with the following code in it's condition field:

Code: [Select]
resistanceguy distance player < 10
and in the on activation field type something like

Code: [Select]
this exec "conversation.sqs"
Now, the trigger will fire when the resistance guy gets within 5 meters of you - you can change this to suit your needs.

Now, I'll assume you know how to use scripts, so here's the basic setup you'll need....

Code: [Select]
;conversation.sqs

titletext ["Hi.","plain down"]
~5
titletext["Back atcha.","plain down"]

exit

This will splash the text on the bottom of the screen.  "Plain down" will place it at the bottom of the screen - there are other things you can substitute in this place but for your purposes that will work fine.

~5 is the command to wait five seconds before proceeding.  Change the number accordingly so that you can read everything that's up there before the next line of text is displayed.

\n will put in a line break, which is useful because if it's a really long piece of text, it will just run off the sides of the screen.

 :)

*EDIT* this is only necessary if you want a back-and-forth conversation.  If you only need him to say something you can do in one line, forget about the script and go into the "Effects" section of the trigger itself and put in the text there.
« Last Edit: 28 Apr 2004, 02:49:23 by SEAL84 »

garret64

  • Guest
Re:conversation help
« Reply #2 on: 28 Apr 2004, 03:02:18 »
beautifull, exactly what i needed thanks.