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

CheckOption

From AGEWiki

Jump to: navigation, search

CheckOption

Syntax  

CheckOption = GameActorUID ; OptionUID ; Operator ; Value

Description

Checks to see if an option has a "selection value" as specified. If an option is chosen by a player or an AI (either by code or by script, for the AI), CheckOption (in the Conditions block of an event) will allow you to check the answer of the player/AI and thus react to it.

Example  

CheckOption = $gmaOptionMil|USA_Repl_Supply|=|1

TRUE if the Military Option USA_Repl_Supply has a "selection value" = 1


 

Parameters

GameActorUID

Valid alias of a GameActor

OptionUID

the "name" of the option to test

Operator

One of:

=, <=, >=, <, >
Value

Integer (0-999)

Forums