OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OrangeLeader on 04 Jul 2004, 21:27:03
-
I was wondering how to get the:
Time
Date
Location
To type in the lower left hand corner of the screen letter by letter in a different font and color.
I hope this is possible the effect would be cool for me cutsecene.
-
Read xenofane's font/text tutorial from the Ed Depot. Doing it letter by letter just requires a sequence of commands:-
d
da
dat
date
I have a feeling somebody once came up with a neater way of doing it, but I'm not sure and I suspect it required some more advanced scripting. Try the forum search function.
-
CoC's Tomahawk addon has a nice example mission with a script which does what you look for.
-
That's right, That demo shows a nice typewriter effect (it's in a dialog) but not with different fonts and color for every character.
-
misc fonts & colors on each letter won't look so good
(unless you're making a LEGA WARZ mission) ::)
Haven't see the COC demo ( :-[ ;D ) but you can use these codes in a scroll :
titletext ["F", plain]
~0.3
titletext ["Fa", plain]
~0.3
titletext ["Far", plain]
~0.3
titletext ["Fart", plain]
...etc :) som'n like that
and to make colors, add "TitleRSC" (see about this in Ed's Depot - there's a tute and all, matey) :thumbsup:
-
I tried unPBOing CoC's Tomahawk mission. The the files were no readable. That is why I posted here I hoped someone knew how they did it.
I know how to do the titletext typing effect but that is only one line and it is in the center or lower center of the screen. I wanted it in the lower left corner. Also I want each line to stay on the screen. If you have seen Search for Red October or JAG you will know what I am talking about.
-
To make a new line use \n or /n, I can never remember which.
To shove stuff to the left try adding loads of spaces at the end of the text.
If you want - if you really really want - you can achieve exactly the effect you want. However it is likely to involve a lot of work. You may be well advised to accept something that you can live with on the "second best today" principle.
-
If OFP is anything like C++ it will be \n
-
It is and it is. :)