Iokody
  • Iokody
  • 57.5% (Neutral)
  • Private Topic Starter
15 years ago
I noticed that in the campaign, there are multiple lines of text. For example:

Location: Somewhere east of Japan
Time of day: sunrise
And another line down here
and sometimes one more here




Is there a solution to this? I'm tired of making one briefing script, and having to create a timer along with it.
Sponsor
Drummin
15 years ago
You just add "\n" to create a separate line.
Briefing1
"Location: Somewhere east of Japan\nTime of day: sunrise\nAnd another line down here\nand sometimes one more here"
End
If you just have one or two timers then I'd just stick with timers. If you have more you can setup a counter that can be used to trigger any event in the game. In the PlyrCivilian folder you make two scripts for the counter.

First you set the counter.
Script: SetCounter [ns A D]
*** IF ***
     True.
*** THEN ***
  Set 'CivilianCount' to  0 
  Enable Script 'StartCounter'.
Then use the "Increment Counter" script set so it evaluates every second. Notice the first script activated this script after setting the counter so the setting is [ns na nd].
Script: StartCounter [ns na nd]
*** IF ***
    True.
*** THEN ***
  Add  1  to counter 'CivilianCount'
Then for any script you can check "CivilianCount" for the condition. For Example:
*** IF ***
     Counter 'CivilianCount' IS Greater Than  240 
*** THEN ***
  Show military briefing String: 'Briefing1' for  8000  milliseconds.
Iokody
  • Iokody
  • 57.5% (Neutral)
  • Private Topic Starter
15 years ago
Thanks a ton! I won't be using multiple lines all the time, but just for the beginnings of most of my maps.

PROBLEM SOLVED