Skip to content

Checkregional

Redirect to another dialogue line using a Dialogue line id if a Regionalflag slot is false or if it is in a specific state.

Syntax

(1)

|checkregional,regional,lineidredirect|

(2)

|checkregional,regional,lineidredirect,statecheck|

Parameters

regional: int

The Regionalflag slot to check the state. This must be a valid Regionalflag slot or an exception will be thrown.

lineidredirect: int

The Dialogue line id to redirect if the regional slot is false or if its state is statecheck. This must be a valid Dialogue line id or an exception will be thrown.

statecheck: true | false

The state to compare the regional slot against. This must be true or false or an exception will be thrown.

Remarks

The redirect is done using an OrganiseLines version of the dialogue line resolved using lineidredirect prepended with |blank|. This also ends the Text advance's skiptext.

If a redirection happens, processing will resume at the start of the new input string.