Posted by: Iokody - Tuesday, July 20, 2010 7:10:31 AM
I noticed that in the campaign, there are multiple lines of text. For example:
[quote]Location: Somewhere east of Japan
Time of day: sunrise
And another line down here
and sometimes one more here[/quote]
Is there a solution to this? I'm tired of making one briefing script, and having to create a timer along with it.
Posted by: Drummin - Tuesday, July 20, 2010 10:37:11 AM
You just add "\n" to create a separate line.
[code]Briefing1
"Location: Somewhere east of Japan\nTime of day: sunrise\nAnd another line down here\nand sometimes one more here"
End[/code]
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]
[code]*** IF ***
True.
*** THEN ***
Set 'CivilianCount' to 0
Enable Script 'StartCounter'.[/code]
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]
[code]*** IF ***
True.
*** THEN ***
Add 1 to counter 'CivilianCount'[/code]
Then for any script you can check "CivilianCount" for the condition. For Example:
[code]*** IF ***
Counter 'CivilianCount' IS Greater Than 240
*** THEN ***
Show military briefing String: 'Briefing1' for 8000 milliseconds.[/code]
Posted by: Iokody - Wednesday, July 21, 2010 8:58:06 AM
Thanks a ton! I won't be using multiple lines all the time, but just for the beginnings of most of my maps.
[color=red][size=9]PROBLEM SOLVED[/size][/color]