OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SandVoss 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? ???
-
How about:
titleText ["Hello", "PLAIN",5]
~10
titleText ["", "PLAIN"]
That should do the job
Planck
-
perfect answer, Planck
now let me explain what these lines are doin ;D
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.
~10
this is a simple delay....script will wait there for 10 seconds before it executes the next line
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
titleText [" Hello", "PLAIN"]
As example, this would move the text to the right.
-
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
-
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.
-
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:
-
Thanks! this is all very useful information. Perhaps I should compile it and submit it as a tutorial :D
-
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 :)
-
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.
-
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: