Skip to main content

Condition_Disaster

Description

Checks whether a disaster is currently active. If S1 is provided, checks whether the specified disaster type is active; if S1 is omitted, checks whether any disaster is active.

Parameters

ParameterDescription
BaseObjectThe object used as the context for this condition check.
CompareTypeSupported compare types: Equal, NotEqual.
S1The disaster type to check (EB1WeatherType). If omitted, checks whether any disaster is currently active.

Examples

DescriptionBaseObjectCommandCompareType
Check if any disaster is currently activeSelfDisasterEqual
Check if no disaster is currently activeSelfDisasterNotEqual
Check if a HeatWave disaster is currently activeSelfDisasterEqual
Check if a HeatWave is not currently activeSelfDisasterNotEqual