Home   Help Search Login Register  

Author Topic: Adding new objectives to mission (SOLVED)  (Read 1489 times)

0 Members and 1 Guest are viewing this topic.

Offline Crowey

  • Members
  • *
Adding new objectives to mission (SOLVED)
« on: 14 Aug 2008, 21:14:58 »
Hi guys me again!
How the hell can I add an objective to the briefing screen when say a trigger is activated????
« Last Edit: 16 Aug 2008, 15:19:30 by Crowey »

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Adding new objectives to mission
« Reply #1 on: 14 Aug 2008, 23:49:49 »
objStatus command. Set it hidden in init.sqf, so that you can make it appear later in the trigger's on act.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Crowey

  • Members
  • *
Re: Adding new objectives to mission
« Reply #2 on: 15 Aug 2008, 13:23:06 »
How do I get in the init sqf? I use arma edit program for all that and i ticked the hidden box but it still shows up from the start am i really stupid or is there something i need to do also?

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Adding new objectives to mission
« Reply #3 on: 15 Aug 2008, 14:40:51 »
Your question is one about ArmA Edit and not about how to script it yourself ;P I don't use ArmA edit, so I can't tell you whether it is a problem with that application or with how you are using it.

Well, there isn't a init.sqf created by default (or init.sqs if you prefer to learn how the cave-men did it before we had the wheel ;P). It is just a plain text file in the same directory as the mission.sqm.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Crowey

  • Members
  • *
Re: Adding new objectives to mission
« Reply #4 on: 15 Aug 2008, 15:12:21 »
yes i know im a tool, lol but tell me where in here i put "hidden"

<!---------------------------------------------------->
<!-- Objectives                                     -->
<!---------------------------------------------------->
<!-- Objective 1 -->
<p><a name="obj_1"></a>
<!-- [OBJ_1] -->
<a href = "marker:Resistance">Meet up with resistance Leader gear up and get intel</a>
<!-- [END] -->
</p><hr>

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Adding new objectives to mission
« Reply #5 on: 15 Aug 2008, 16:55:01 »
That is the briefing.html, which is fine. It defines that there is an objective, but it will always start out shown (i.e. "ACTIVE"). Create a file called "init.sqf" in the same directory as mission.sqm and briefing.html and put in it:

Code: [Select]
"1" objStatus "HIDDEN";

so that the objective you've defined will be hidden on mission start (init.sqf, or init.sqs if that is present, is run at the start of the mission). If you really  don't want to create a new file, just put the code in the player object's init line or something...
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Crowey

  • Members
  • *
Re: Adding new objectives to mission
« Reply #6 on: 15 Aug 2008, 17:23:45 »
Wicked sorted it works a treat thanks for ya patience and ya help.....