Provide audio and visual cues to the user to make the game more engaging and informative. |
In Warzone, games can get pretty hectic. A player can't watch the whole map at the same time, especially when they're micromanaging units or sorting out their research labs, etc.
That's where "Situation Reporting" (SitRep) comes in – the game needs to give the player some audio and visual cues to make them aware of what's happening around the map.
Done properly, SitRep can add a lot to the game play by making it more engaging.
It should provide realtime, or near-realtime, reporting of events taking place on the map, such as:
Because each human player has an associated rules.js running on their local machine, it's the logical and ideal place to code SitRep.
There are three primary ways to report situations to the user:
In Campaign missions, two additional forms of SitRep are common:
See the Developer Links to the right for a list of related documentation.
You should avoid spamming the user with SitRep - you need to implement throttling code to prevent the user being overloaded with information.
A basic throttling mechanism is to ensure that only a certain number of messages are sent per minute, or that common messages are individually throttled so they're not playing every few seconds.
An example of basic throttling code can be found in audioAlert(filename,pos,despam).
Another factor to consider with SitRep is: Where is the report coming from? Who sent it?
For example, if you're playing audio messages you can use different voices to represent different factions or even different types of unit.
If you want an AI player to send a report to the human player, rules.js could message the AI player using chat() and the AI player could then relay that message on to the user, giving the user the impression that it was the AI who messaged them.
The best example of SitRep can be found in the Enhanced SitRep Mod (that link explains how it works in quite some detail).
For campaign SitRep, there don't appear to be any obvious examples at the moment, sorry!
ContentsAssimilate: |
Developer LinksAudio:
Beacons:
Messages:
Videos:
Intel Reports:
|