UFO-Scripts/msgoptions.ufo

From UFO:AI
< UFO-Scripts
Revision as of 13:40, 28 October 2008 by RudolfoWood (talk | contribs) (update link + naming)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This script file allows you to define default settings for message notifications on game startup. These settings are stored for every savegame, as it is intended that default settings may be changed during gameplay (e.g. you are no longer interested in some message categories).

Actually there is only one default msgoptions section, which contains lines in the following format. Every line describes a positiv (checked) option - all missing values are considered to be unchecked.

msgoptions default {
    <notify_type> <pause|notify|sound>
}
pause
stop game time if event associated with notify_type occurs
notify
create a notification message for notify_type event
sound
play notification sound for message if available

See Template:Path and Template:Path for available notification types. MSO_CheckAddNewMessage should be used to add new messages. This method checks whether to add a message, play sound and whether to stop game time.

See this howto to include more notify types.