Jump to content
Sign in to follow this  
[lol]clan killer bee

How to extent the RscTitles class in description.ext

Recommended Posts

Ello I was just wondering about 2 things !

1: How do I add a second to this object here?, I got everytime errors with } and such. ( no I'm not a scriptkiddy )

I think or I misplace it or miss one but witch one ?

class RscTitles
{
titles[] = {"LDDK"}; 

class LDDK {
  idd = -1;
  movingEnable = 0;
  duration = 10;  
  fadein = 2;
  fadeout = 2;
  name="LDDK";

  controls[]={"Picture"};

  class Picture {
    x=0.0; y=0.0; w=1.0; h=1.0;
    text="lddk.paa";
    sizeEx = -1;
    type=0;
    idc=-1;
    style=48;
    colorBackground[]={0,0,0,0};
    colorText[]={1,1,1,1};
    font="Bitstream";
  };
};
};

2: What does this mean !

sizeEx = -1;

Thank you for the time and the help

Greetz KillerBee ! :bounce3:

Share this post


Link to post
Share on other sites
clan Killer Bee;1749635']

2: What does this mean !

sizeEx = -1;

Thank you for the time and the help

Greetz KillerBee ! :bounce3:

to change the size of the writing.

Share this post


Link to post
Share on other sites

Okay !

So I understand this is notmally a writting script but is ussed for a .paa on the moment.

Still I need to know how to add more .paa's

I want atleast 3

mission,MadKiller,lol

If I do it I get errors all the time ?

Don't know what I'm doing wrong ?

Problem is also I'm dislectic as hell so that doesn't help.

This is what I got !



class RscTitles
{
titles[] = {"mission","madkiller", "lol"}; 

class mission {
  idd = -1;
  movingEnable = 0;
  duration = 10;  
  fadein = 2;
  fadeout = 2;
  name="mission";

  controls[]={"Picture"};

  class Picture {
    x=0.0; y=0.0; w=1.0; h=1.0;
    text="mission.paa";
    sizeEx = -1;
    type=0;
    idc=-1;
    style=48;
    colorBackground[]={0,0,0,0};
    colorText[]={1,1,1,1};
    font="Bitstream";
  };
{


class madkiller {
  idd = -1;
  movingEnable = 0;
  duration = 10;  
  fadein = 2;
  fadeout = 2;
  name="madkiller";

  controls[]={"Picture"};

  class Picture {
    x=0.0; y=0.0; w=1.0; h=1.0;
    text="madkiller.paa";
    sizeEx = -1;
    type=0;
    idc=-1;
    style=48;
    colorBackground[]={0,0,0,0};
    colorText[]={1,1,1,1};
    font="Bitstream";
  };
{

class lol {
  idd = -1;
  movingEnable = 0;
  duration = 10;  
  fadein = 2;
  fadeout = 2;
  name="lol";

  controls[]={"Picture"};

  class Picture {
    x=0.0; y=0.0; w=1.0; h=1.0;
    text="lol.paa";
    sizeEx = -1;
    type=0;
    idc=-1;
    style=48;
    colorBackground[]={0,0,0,0};
    colorText[]={1,1,1,1};
    font="Bitstream";
  };
};
};

Edited by [LOL]clan Killer Bee

Share this post


Link to post
Share on other sites

Just a quick curly braces matching in UltraEdit, I have no idea if this works:

class RscTitles
{
titles[] = {"mission","madkiller", "lol"}; 

class mission {
  idd = -1;
  movingEnable = 0;
  duration = 10;  
  fadein = 2;
  fadeout = 2;
  name="mission";

  controls[]={"Picture"};

  class Picture {
    x=0.0; y=0.0; w=1.0; h=1.0;
    text="mission.paa";
    sizeEx = -1;
    type=0;
    idc=-1;
    style=48;
    colorBackground[]={0,0,0,0};
    colorText[]={1,1,1,1};
    font="Bitstream";
  };
};

class madkiller {
  idd = -1;
  movingEnable = 0;
  duration = 10;  
  fadein = 2;
  fadeout = 2;
  name="madkiller";

  controls[]={"Picture"};

  class Picture {
    x=0.0; y=0.0; w=1.0; h=1.0;
    text="madkiller.paa";
    sizeEx = -1;
    type=0;
    idc=-1;
    style=48;
    colorBackground[]={0,0,0,0};
    colorText[]={1,1,1,1};
    font="Bitstream";
  };
};

class lol {
  idd = -1;
  movingEnable = 0;
  duration = 10;  
  fadein = 2;
  fadeout = 2;
  name="lol";

  controls[]={"Picture"};

  class Picture {
    x=0.0; y=0.0; w=1.0; h=1.0;
    text="lol.paa";
    sizeEx = -1;
    type=0;
    idc=-1;
    style=48;
    colorBackground[]={0,0,0,0};
    colorText[]={1,1,1,1};
    font="Bitstream";
  };
};
};

Busy with my own stuff atm, so I didn't have time to do proper tab indents or make it any cleaner. But the point is to match opening curlys { with closing curclys }; A good text editor (UltraEdit or NotePad++) offers bracket matching and highlighting.

Share this post


Link to post
Share on other sites

Thank you for your post.

I gonna try it.

I'm glad that someone is willing to help.

I have all those Idea's for missions but I'm so damn limited as it comes to scripting and reading it with this damn dislectie.

If It works it solve ¾ of my mission and be the happiest muppet in town !:yay:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×