8➤ Placeholder Conditions - ssomar1607/ExecutableItems GitHub Wiki
CONDITIONS
- Conditions allows ei users to settle criterias, conditions or requirements.
PLACEHOLDER CONDITIONS CONDITIONS
====={Condition placeholdersConditions:}=====
- Description: Parses the said placeholder and compares it with the said value.
- type: Of how you want to compare placeholders
PLAYER_STRING
: Parses the given placeholder in the first part with the item user and compares it to the second part
PLAYER_NUMBER
: Same as PLAYER_STRING
but you can use other comparators aside from EQUALS
PLAYER_PLAYER
: Same as PLAYER_STRING
but you can use placeholders in the second part
TARGET_STRING
: Same as PLAYER_STRING
but you parse the placeholder with your target
TARGET_NUMBER
: Same as TARGET_STRING
but you can use other comparators aside from EQUALS
TARGET_PLAYER
: Same as TARGET_STRING
but you can use placeholders in the second part
PLAYER_TARGET
: Parses the given placeholder in the first part with the item user and compares it to the second part which parses the target with the given placeholder.
- comparator: Used to compare the given placeholder to the second part in numbers
EQUALS
: Compares if the given placeholder gives the exact value as the given value in the second part
DIFFERENT
: Compares if the given placeholder doesn't give the exact value as the given value in the second part
INFERIOR
: Compares if the given placeholder gives a value lower than the given value in the second part
SUPERIOR
: Compares if the given placeholder gives a value greater than the given value in the second part
INFERIOR_OR_EQUALS
: Compares if the given placeholder gives a value lower than or equals to the given value in the second part
SUPERIOR_OR_EQUALS
: Compares if the given placeholder gives a value greater than or equals to the given value in the second part
messageIfNotValid:
: The custom message if the custom placeholder condition didn't match with the first and second part
cancelEventIfNotValid:
: If the custom placeholder condition didn't match with the first and second part, the activator's event will be cancelled. (Default: false)
- Example:
conditions:
placeholdersConditions:
plchC0:
type: PLAYER_STRING
part1: '%checkitem_inhand,lorecontains:&7Grab%'
comparator: EQUALS
part2: 'no'
messageIfNotValid: ''
cancelEventIfNotValid: false
- Example Situations:
- If the player facing south west with this given placeholder condition, the activator will activate.
conditions:
placeholdersConditions:
plchC0:
type: PLAYER_STRING
part1: '%player_direction%'
comparator: EQUALS
part2: 'SW'
messageIfNotValid: ''
cancelEventIfNotValid: false
- Required: NO
- NOTE: YOU CAN ONLY CREATE UP TO 25 PLACEHOLDER CONDITIONS PER ACTIVATOR.