OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Nedal on 05 Feb 2004, 02:53:28
-
i want to make an intro with a picture and text, the picture should stay until all texts are faded in and out
here the description.ext
class RscTitles
{
titles[]={starttext1};
class starttext1
{
titles[]={screen, Titel1, Titel2, Titel3};
idd=-1;
movingEnable=0;
duration=10;
name="starttext1";
controls[]={"Screen","Titel1",};
class Screen : RscStdText
{
style=48;
text="czlbanner.jpg";
x=0.1;
y=0.2;
w=0.8;
h=0.2;
};
class Titel1 : RscStdText
{
text="http://ofpl.clanzone.at";
colorText[]={0.8,0.1,0,0.8};
font="TahomaB48";
size=1.0;
x=0.1;
y=0.50;
w=0.8;
h=0.05;
};
class Titel2 : RscStdText
{
text="[BoP] Oberst Nedal presents";
colorText[]={0.8,0.1,0,0.8};
font="";
size=0.75;
x=0.1;
y=0.50;
w=0.8;
h=0.05;
};
class Titel3 : RscStdText
{
text="DM 1 v 1 Surpice";
colorText[]={0.8,0.1,0,0.8};
font="TahomaB48";
size=1.75;
x=0.1;
y=0.50;
w=0.8;
h=0.05;
};
};
};
and here the init.sqs
titleCut ["","BLACK"]
~4
TitleRsc ["starttext1","plain",4]
~4
TitleRsc ["Titel2","plain",3]
~4
TitleRsc ["Titel3","plain",3]
~4
titleCut ["test","Black In",0]
exit
the picture commes, and the first text too, but the secnond and third text dont work
I have tried a few different versions, and searched in Tutorials, but i could not solve my problem
-
Okay, I just figured out this whole darn RscTitle thing. I don't know why a good tutorial on the subject hasn't been made before... these things have been around since v1.0. So I'm going to write a tutorial myself; look for it in the next couple weeks.
However, I can see your problem quite easily:
controls[]={"Screen","Titel1",};
In this line you are supposed to list all of the classes that are in this cutrscs. You have created the following classes: Screen, Titel1, Titel2, Titel3. However, in the above line, you only list 2 of those 4 classes. So OFP doesn't "know" about the last two classes. The line should look like this:
controls[]={"Screen","Titel1","Titel2","Titel3"};
-
Here's (http://www.ofptf.net/forum/index.php?board=10;action=display;threadid=145) a tutorial ;)