Home   Help Search Login Register  

Author Topic: Text in Cutscenes??  (Read 1174 times)

0 Members and 1 Guest are viewing this topic.

SandVoss

  • Guest
Text in Cutscenes??
« on: 25 Apr 2004, 14:18:17 »
This may seem like a bit of a n00b question,  ;D

But is it possible to simply insert some text into cutscenes? I just want some text to apear on the screen in my mission during cutscenes. Ive seriously spend hours pouring over all the wonderful tutorials on this site, but I have not been able to locate anything that allows you to insert some text into cutscenes.

It doenst even neccesarily have to be during a cutscene, I just need to be able to insert some text during the game. Anyone know a simple script to make that possible? ???

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Text in Cutscenes??
« Reply #1 on: 25 Apr 2004, 14:55:12 »
How about:

titleText ["Hello", "PLAIN",5]
~10
titleText ["", "PLAIN"]

That should do the job


Planck
I know a little about a lot, and a lot about a little.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Text in Cutscenes??
« Reply #2 on: 25 Apr 2004, 16:37:48 »
perfect answer, Planck

now let me explain what these lines are doin  ;D

Code: [Select]
titleText ["Hello", "PLAIN",5]
this line shows the text "Hello" in the middle of the Screen. The "5" will make it fade in in 5 seconds.


Code: [Select]
~10
this is a simple delay....script will wait there for 10 seconds before it executes the next line


Code: [Select]
titleText ["", "PLAIN"]
this line will delete the text which is actually on screen....well, in fact it just replaces the text on screen with new text...but since the text field is empty...it just deletes the previous


just 2 things to add:

PLAIN = shows text in the middle of the screen, centered
PLAIN DOWN = shows text at bottom of the screen, centered

If you want to move your text more to the left or right...just add a few dozen space bars  ;D


Code: [Select]
titleText ["                                                  Hello", "PLAIN"]
As example, this would move the text to the right.

Loup-Garou

  • Guest
Re:Text in Cutscenes??
« Reply #3 on: 25 Apr 2004, 16:51:24 »
Here's an example : make a trigger linked (F2) to the player (name : Guy1) and place it near another unit (name: Guy2). On activation : [] exec "cutscene.sqs".

cutscene.sqs (in the mission folder) :

titlecut [" ","BLACK IN",3]

_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]

enableradio false

_cam camsettarget Guy1
_cam camsetrelpos [1,1,1]
_cam camcommit 0
@camcommitted _cam

~2

Guy1 setMimic "Smile"
titlecut ["Excuse me, sir ?","plain down",1]

~4

_cam camsettarget Guy2
_cam camsetrelpos [1,1,1]
_cam camcommit 0
@camcommitted _cam

~2

titlecut ["Yes ?","plain down",1]

~4

_cam camsettarget Guy1
_cam camsetrelpos [1,1,1]
_cam camcommit 0
@camcommitted _cam

~2

titlecut ["I'm looking for Viktor Troska's house.","plain down",1]

~4

_cam camsettarget Guy2
_cam camsetrelpos [1,1,1]
_cam camcommit 0
@camcommitted _cam

~2

titlecut ["It's over here. ","plain down",1]
Guy2 switchMove "FXShow5"

~4

_cam camsettarget Guy1
_cam camsetrelpos [1,1,1]
_cam camcommit 0
@camcommitted _cam

~2

titlecut ["Thank you. ","plain down",1]

~4

_cam camsettarget Guy2
_cam camsetrelpos [1,1,1]
_cam camcommit 0
@camcommitted _cam

~2

titlecut ["Your welcome. ","plain down",1]

~4

_cam cameraeffect ["terminate", "back"]
camdestroy _cam

enableRadio true

exit

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Text in Cutscenes??
« Reply #4 on: 25 Apr 2004, 19:03:43 »
You don't even have to do all that. Just simply make a trigger and on the second page of the trigger window you'll see a box at the bottom which controls text and some other stuff. Just play with that bit.
Using a script is more advanced but if you just want a title or a few bits of dialogue then use a trigger.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Text in Cutscenes??
« Reply #5 on: 25 Apr 2004, 20:58:42 »
If you wanna be classy you use titletext though. :P That's why Architect doesn't use it ;) .

No but seriously. Titletext is better since you can more easily insert it in scripts. AND you can use it in triggers as well.

:beat: *Gets Shot* :beat:
« Last Edit: 25 Apr 2004, 20:58:53 by The real Armstrong »

SandVoss

  • Guest
Re:Text in Cutscenes??
« Reply #6 on: 26 Apr 2004, 11:14:59 »
Thanks! this is all very useful information. Perhaps I should compile it and submit it as a tutorial :D

TERA_Forrest

  • Guest
Re:Text in Cutscenes??
« Reply #7 on: 26 Apr 2004, 16:37:27 »
u can use hints as well  ;)

in a trigger under "on activation" put:

hint "your text to be shown"

up in the left corner a hint will pop up with a "ding" noise.

just my two cents   :)

SandVoss

  • Guest
Re:Text in Cutscenes??
« Reply #8 on: 27 Apr 2004, 09:58:16 »
Hehe, that wouldnt look too professional though... ;D

Is it possible though to change the size of text? Ive got it showing up nicely and all, but it would be nice if i could change the size of the text, make it a bit bigger for better impact.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Text in Cutscenes??
« Reply #9 on: 27 Apr 2004, 18:53:36 »
Then you need to do stuff with the description.ext. Read Xenofanes (or something like that) Tute about Custom Text in ed depot. And while you're at it, read Vektorboson's Dialog Tute too as it is in the same area. In fact, read all Vektorboson's tutes 'cause they are all amazing. And be sure to download the Dialog Creator in ed depot (pending) to make a dialog and then polish it a bit by hand. And one more thing, 10 bucks unfolded sent to me. That would be all.

:beat: *Gets Shot* :beat: