OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: seanver on 20 Aug 2002, 13:14:56
-
Glad to see you again. Well, how can I show the credits that appear in resistance intro? You know, the blue words like "Project leader" and the normal words with the name.
-
I THINK the things you are after are in the normal "Effects" section of a trigger...?
Whereas by default the trigger selects none you can choose things like TEXT (Obvious), OBJECTS (Like the binocular view, etc), and RESOURCES...
I THINK what you're after is in the resources section, but then I could be misinterpretting what exactly you're after.
Hope this helps ANYWAY :D
Dan ;D
-
I have found nothing there, only the credits that appear on the right of the screen. Anyway I obsiously want to create my own credits, not the originals, and it looks like that in Resources you can only put the original ones.
-
:cheers:You can do what I think you are saying in a script or a trigger. In a script using TitleText command. In a trigger using the effects tab text message and type away. As for changing the color of the text not sure you can do it or not. :cheers:
-
All i can say that it's done through the description.ext and it was actually posted in the old forum in advance section, but now all is gonne so we'll have to dig everything up again, cheers ;)
-
So at least is what I want possible?
-
Yes it is, how do u think BIS did it?! :D
U can try to DePbo the campaign and look at the first mission, search for description.ext and other useful stuff, but i haven't done so myself only because im really low on HD space, ::)
-
its all there under templates in the effects section -
they didnt use any type of text it was just an overlay (like the binoculars) which had text on - thats how they made pretty credits.
-
try this
class RscPicture
{
type=0;
idc=-1;
style=48;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="tahomaB24";
size=0;
};
class RscTitles
{
class showyou
{
idd=-1;
movingEnable=0;
duration=4;
name="name in the trigger";
controls[]={"pic1"};
class pic1: RscPicture
{
text="picturefilename.paa";
x=0.750000;
y=0.000000;
w=0.300000;
h=1.000000;
};
};
titles[]={"showyou"};
};
-
This is an extract from the OFP:R "mission" x12GameOver.Noe:
Put the following in your "description.ext":
#define FontS "tahomaB24"
#define FontM "tahomaB36"
#define FontHTML "courierNewB64"
#define FontHTMLBold "courierNewB64"
#define FontMAP "courierNewB64"
#define FontMAIN "SteelfishB64"
#define FontMAINCZ "SteelfishB64CE"
#define FontTITLE "SteelfishB128"
#define FontTITLEHalf "SteelfishB64"
#define FontBOOK "garamond64"
#define FontNOTES "AudreysHandI48"
// Control types
#define CT_STATIC 0
#define CT_HTML 9
#define CT_OBJECT 80
// #define CT_OBJECT_CONTAINER 82
// #define CT_3DSTATIC 20
// #define CT_3DHTML 23
// Static styles
#define ST_LEFT 0
#define ST_RIGHT 1
#define ST_CENTER 2
#define ST_UP 3
#define ST_DOWN 4
#define ST_VCENTER 5
#define ST_SINGLE 0
#define ST_MULTI 16
#define ST_PICTURE 48
#define ST_FRAME 64
#define ST_HUD_BACKGROUND 128
#define ST_TILE_PICTURE 144
#define ST_WITH_RECT 160
#define ST_LINE 176
#define ST_SHADOW 256
#define ST_NO_RECT 512
// -----------------------------
// Predefined control templates
// -----------------------------
// let this be as it is
// these are the default values of the parametres
class RscText
{
type = CT_STATIC;
idc = -1;
style = ST_LEFT;
h = 0.04;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {1, 1, 1, 1};
font = FontS;
size = 1;
};
// -----------------------------
// Your own classes will be here
// -----------------------------
class RscTitles
{
titles[] =
{
TestDisplay
};
class TestDisplay
{
name = "TestDisplay";
duration = 6;
idd = -1;
movingEnable = false;
controls[]=
{
work1,
name1
};
class work1 : RscText
{
style = ST_MULTI + ST_CENTER + ST_NO_RECT;
lineSpacing = 1.0;
text = "Title of the Person";
x = 0.05; y = 0.45; w = 0.95; h = 0.3;
colorText[] = {0.75, 0.75, 1.0, 1};
font = FontMAINCZ;
sizeEx = 0.5 * 0.05;
size = 0.8;
};
class name1 : RscText
{
style = ST_MULTI + ST_CENTER + ST_NO_RECT;
lineSpacing = 1.0;
text = "The Person's Name";
x = 0.05; y = 0.50; w = 0.95; h = 0.3;
colorText[] = {1.0, 1.0, 1.0, 1};
font = FontMAINCZ;
sizeEx = 1.5 * 0.1;
size = 1.2;
};
};
};
Display it by putting the following in the "init.sqs":
cutText ["","BLACK OUT"]
~1
titleText ["", "BLACK FADED"]
~8
titleRsc ["TestDisplay", "BLACK FADED"]
~8
Pope Zog