OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OrangeLeader on 04 Jul 2004, 21:27:03

Title: Computer typing
Post 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.
Title: Re:Computer typing
Post by: macguba on 04 Jul 2004, 23:55:48
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.
Title: Re:Computer typing
Post by: ponq on 05 Jul 2004, 10:57:32
CoC's Tomahawk addon has a nice example mission with a script which does what you look for.
Title: Re:Computer typing
Post by: Blanco on 05 Jul 2004, 15:53:30
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.



Title: Re:Computer typing
Post by: Tomb on 05 Jul 2004, 20:27:38
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:

Title: Re:Computer typing
Post by: OrangeLeader on 05 Jul 2004, 23:36:55
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.
Title: Re:Computer typing
Post by: macguba on 05 Jul 2004, 23:44:37
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.
Title: Re:Computer typing
Post by: Homefry31464 on 06 Jul 2004, 03:03:10
If OFP is anything like C++ it will be \n
Title: Re:Computer typing
Post by: Artak on 06 Jul 2004, 10:07:40
It is and it is. :)