FANDOM


Editing and making your own campaigns Getting Started,
Advanced Editing 1.Images | 2.Links and E-mails | 3.More [Options] Sections. 4.Options | 5.More [Header] Variables Header Variables | 6.Changing Text Colors | 7.Sacrificing for Knowledge | 8.Branching using MissionBegin | 9.Using denySalvage | 10.Outposts in Your Campaign | 11.Branching with MissionFork | 12.The Tell Command | 13.Creating Menus with $Menu | 14.Formatting Text and Graphics | 15.The $Timeout event | 16.The $OnExit event | 17.adding a DEMO to your Campaign | 18.Re-positioning the Text Window (with $MoveDialog)| 19.Timing with [@ ] | 20.Using the Debug Hotkey | 21.Moving the screen window with $View| 22.Variable basics | 23.IF/THEN Conditionals | 24.The $PlaySound command | 25.Netstorm Command List

view this alone


Timing with [@ ]

What Time is It?

You know about the $Timeout command where something will happen after a certain period of time. Well, there's another timing command: [@ ]. This is really easy to use, and gives your campaigns more depth by adding messages that pop up during battles.

Syntax is very easy, just use [@time], where time is the number of seconds after the Mission starts. Say you want a Map where an ally gets in trouble by being overwhelmed by the enemy. During the battle, you want the ally to send the player messages indicating his weakening position, and his need for help.

So, lets have messages pop up after 2 seconds, 2 minutes (120 seconds), 5 minutes (300 seconds), and 10 minutes (600 seconds), with each message being more urgent than the previous message. Here's how we'd do it:

 [Header]........ all normal header stuff......

[Options]
[A.]
You're ally is in trouble! Go and rescue him before it's too late!<br>
$Button=Ok,DoNothing,0

[@2]

 You get a message from your Alliance:<br>

~I~l"We're glad you're here. But we need stormpower to ward off these attackers, and we're running dangerously low. Please send us some as soon as you can spare it..."~.<br>
$Timeout=15,DoNothing,0

[@120]
Another message: ~I~l"We'll try to help you out as we can. But we're not used to battle, and we fear we may be overpowered very quickly. Please hurry.~.<br>
$Timeout=15,DoNothing,0


[@300]

 Your allies are getting desperate: ~I~l"They're starting to whittle away at our outer
 defense. We don't know how much longer we can last."~. <br>
$Timeout=15,DoNothing,0

[@600]

Another message. This sounds urgent! ~I~l"We're losing the battle! They are too strong. Help us! You're our only hope!"~.<br>
$Timeout=15,DoNothing,0
You get the idea. Of course, in this example, it's up to you, the Mapmaker, to make your .fort file so that the ally will last long enough to still be fighting after 10 minutes, and to have the enemy AI actually be slowly wearing down the ally's defenses. Have fun with this command!

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.