Home   Help Search Login Register  

Author Topic: intro on, intro off?  (Read 1054 times)

0 Members and 1 Guest are viewing this topic.

Offline shameless

  • Members
  • *
intro on, intro off?
« on: 23 Apr 2007, 17:33:42 »
Hi guys : :-[

This may be a noobish question, but ive only just started getting into making intros :)

I have made a crappy intro for my mission, on the mission i have put a GL, then in the init i have
Code: [Select]
this exec "intro.sqs" everything works fine... but after playing it several times with regulars on the server. Some people are getting tired with having to watch it.

So my question for you...

How do i include the intro into the description.ext? so on the player select screen im able to select intro on or intro off?

I have tried searching around... But i cant find anything of any relevance :(


Thanks again :)

Offline sharkattack

  • Former Staff
  • ****
Re: intro on, intro off?
« Reply #1 on: 23 Apr 2007, 22:04:35 »
set up parameters in description
======================
add the following to description ext

statsColumn=1;
titleParam1=" INTRO";
valuesParam1[]={1,0};
defvalueParam1=1;
textsParam1[]={"ON","OFF"};

and put this at the start of youre intro.sqs

?(param1) == 1 : goto "start";
?(param1) == 0: goto "end";

be sure to put #start  and #end in youre intro .sqs  hope this makes sense
"HOLY SARDINE" - see Shark-Attack meet his match

Offline shameless

  • Members
  • *
Re: intro on, intro off?
« Reply #2 on: 24 Apr 2007, 00:45:51 »
Thanks mate works just fine  :)