OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: shameless on 23 Apr 2007, 17:33:42

Title: intro on, intro off?
Post by: shameless 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 :)
Title: Re: intro on, intro off?
Post by: sharkattack 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
Title: Re: intro on, intro off?
Post by: shameless on 24 Apr 2007, 00:45:51
Thanks mate works just fine  :)