# GetScenarioVal

Get*Val
5.1 OC
any
string entry Name of the entry to be retrieved.
string section Section of the entry to be retrieved. If not specified, all sections will be searched for an entry of the specified name.
int entry_number Index of the value to be retrieved if an entry contains multiple values.
Returns the property value of the scenario by its name and section in the Scenario.txt.
Warning: the retrieved values may differ from computer to computer and thus cause synchronization problems in network games.
Most useful applications for entry are already implemented in System.ocg/GetXVal.c.
Log
("You are playing \"%s\"!", GetScenTitle());
Displays the scenario title.
GetDefCoreVal
GetObjectVal
GetObjectInfoCoreVal
GetActMapVal
GetPlayerVal
GetPlayerInfoCoreVal
PeterW
2002-04