OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: FiLL2d on 23 Jul 2006, 02:16:43
-
is their a way or trick of getting two TitleRsc messages to show at the same time. thanks.
also on another point, http://www.ofpec.com/forum/index.php?topic=27107.0
does this also mean you could dynamically change titlersc messages using variables????
-
Use titleObj for one message, and titleRsc for the other. Not sure about your other question. Try it and see. If it works, let us know!
-
Or use titleRsc and cutRsc. Not sure if it works with resources too, but it works with text.
-
Thanks guys for the great replys. I didn't get the dynamic text to work in RscTitles, as any form of scripting inside the...
text="text goes here";
will be ignored and just shown text. ALTHOUGH...I saw a recent topic about rolling credits ;), well, I managed to animate an RscTitle using variables in the description.ext to make it roll down the screen...I'll post what I did here, it mite help...who knows.
//description.ext
class RscStdText
{
type=0;
idc=-1;
style=2;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="courierNewB64";
size=1;
};
class RscTitles
{
titles[]={credits};
class credits
{
idd=-1;
movingEnable=0;
duration=999999999999;
fadein=0;
fadeout=0;
name="credits";
controls[]={"creditstext",};
class creditstext : RscStdText
{
text="Credits go here";
colorText[]={1,0,0,1};
font="courierNewB64";
size=0.50;
x=dynamx;
y=dynamy;
w=0.8;
h=0.05;
};
};
//credits.sqs
dynamx=0.1
dynamy=0
#loop
TitleRsc ["credits","plain",9999]
dynamy=dynamy+0.005
~0.01
goto "loop"
This is really simple, and to do anything like rolling credits then I believe this will be the best method, the script is primitive, you could add alot more to it to change sizes and colours etc.
-
Neat trick. I hope penguinnman is reading this thread because he had a question about rolling credits. Even though the original post about variables in the description.ext was mine, I never thought of this brilliant little exploit.
As for using string variable names in the description.ext I tried for a long time, without success, to get it to work so I could use the stringtable.csv for resource texts in different languages. description.ext does not like string variables I guess.