To avoid unexpected erratic behavior in actions-restrictions levels, we should add a safety check in the check_restriction EVENT to sanitized the value of restricted_level — if it's greater than 5, it should be set to 5.
Some IF statements operate via "greater than", other via equality (especially for the newer level 5), so if restricted_level has a value superior to the highest supported level, the adventure could start to break down.
To avoid unexpected erratic behavior in actions-restrictions levels, we should add a safety check in the
check_restriction
EVENT to sanitized the value ofrestricted_level
— if it's greater than 5, it should be set to 5.Some
IF
statements operate via "greater than", other via equality (especially for the newer level 5), so ifrestricted_level
has a value superior to the highest supported level, the adventure could start to break down.