Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.

StartEvent

From AGEWiki

Jump to: navigation, search

StartEvent

Syntax  

StartEvent = Name|Occurences|DisplayType|EventText|EventPic|Region|Sound

Description

Starts the instruction block for an event. The instruction block is always terminated by the keyword EndEvent

Example  

StartEvent = evt_nam_USA_ReinforceSumter1861|1|2|evt_txt_USA_ReinforceSumter1861
|Event-img_USA_ReinforceSumter1861|$Ft Sumter, SC|109

(Note that it is broken over two lines for displaying here; in use, it should be on a single line)


 

Parameters

Name

String; the event name, also the alias for a localized string in the string file

Occurences

Integer; How often the event can occur (from 0 to 999)

DisplayType

Integer [0, 1, 2]; Mute, line-event, Full-event

EventText

String; Alias for the event text for a Full-event in the string file or NULL

EventPic

Filename for the event picture within the "ACW\Graphics\Events"-directory (full events) or NULL

Note: The picture defined does not require the filename suffix (ex: .bmp, .png) to be properly applied
Region

Alias for the region where the event occurs or NULL. Use NULL if you do a conditional region selection in the event. The message generated by the event will "jump" the map view to this location.

Sound

String: ID for the sound-file, as per the mapping in "<game>\Sounds\Sounds.ini" or NULL

Forums