Skip to main content

Condition_CheckDiceWithRoll

Description

Rolls the dice and checks whether the result falls within the specified range (inclusive).

Parameters

ParameterDescription
BaseObjectThe entity for which the dice is rolled
CompareTypeNot used; pass-through result is based on range check
S1Number of dice faces (default: 100 if omitted)
F1Minimum value of the valid range (inclusive)
F2Maximum value of the valid range (inclusive)

Examples

DescriptionBaseObjectCommandS1F1F2
50% chance success on a 100-sided dieSelfCheckDiceWithRoll150
Roll a 6-sided die and succeed on 1-3SelfCheckDiceWithRoll613
30% chance success on a 100-sided dieSelfCheckDiceWithRoll130
Always succeed on a 100-sided dieSelfCheckDiceWithRoll1100