Home   Help Search Login Register  

Author Topic: update briefings  (Read 536 times)

0 Members and 1 Guest are viewing this topic.

Offline sim

  • Members
  • *
  • Hot! Real hot! Damn Hot!
update briefings
« on: 06 Feb 2003, 12:22:14 »
how do you update briefings during mid mission?
The Unsung Campaign Team Leader

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:update briefings
« Reply #1 on: 06 Feb 2003, 18:06:53 »
The only way that I know of to change a briefing during a mission is to hide or unhide objectives.  If this is what you want to do, then perform the following steps:

1. In the briefing.html file, create every objective that will appear during the mission, even those that will not be apparent until later.

2. Create the init.sqs script, and in this script change the objective status for those objectives that you don't want to be visible, yet.  E.g.,

"2" objStatus "HIDDEN"

3. Use scripts, triggers, or waypoints to make those hidden objectives unhidden at the appropriate times.  E.g.,

"2" objStatus "ACTIVE"

So, for example, if you had 3 objectives, but at the start only objective 1 is visible, you would use step 2 to make objectives 2 and 3 hidden.  Let's say that after the player neutralizes all opposition at one town, you want objective 2 to become active.  So, you would then use step 3 to make objective 2 visible (active).  Finally, after objective 2 is met, you make objective 3 visible (active).

Also, you can use this method to make different objectives hidden or visible based on what the player does.  For example, the player might have the option of either stealing or destroying a truck.  So, you can have objective 2 indicate that the player has stolen the truck, while objective 3 indicates that he has destroyed it, and both will begin hidden.  Then, later, when the player does one of the two actions, the appropriate objective will become active (or, more appropriate, will be marked as done), while the other never becomes active (or done).
Ranger