-
Notifications
You must be signed in to change notification settings - Fork 0
Formula Setting
Danh edited this page Nov 11, 2023
·
1 revision
MYTHICMOBSINTERNALNAME:
USE:
FORMULA: true
CONDITIONS:
BOOSTER2: '%player_has_permission_booster.2%;==;yes;STRING' # Booster x2
BOOSTER5: '%player_has_permission_booster.5%;==;yes;STRING' # Booster x5
BOOSTER10: '%player_has_permission_booster.10%;==;yes;STRING' # Booster x10
CHECK_BOOSTER_2_5: '#BOOSTER2#;#BOOSTER5#;false;COMPARE_CONDITIONS' # #CONDITION_1#;#CONDITION_2#;#CONDITION_3#;COMPARE_CONDITIONS
CHECK_BOOSTER_2_10: '#BOOSTER2#;#BOOSTER10#;false;COMPARE_CONDITIONS' # COMPARE_CONDITIONS condition checks if 3 conditions have same values: true true true, false false false
CHECK_BOOSTER: '#CHECK_BOOSTER_2_5#;#CHECK_BOOSTER_2_10#;true;COMPARE_CONDITIONS' # #CONDITION_3# can use in CONDITION use use true/false (rcm use true/false for check)
CUSTOM_FORMULA:
NORMAL: '%mob_xp%'
BOOSTER2: '%mob_xp% * 2'
BOOSTER5: '%mob_xp% * 5'
BOOSTER10: '%mob_xp% * 10'
FORMULA:
OUT_OF_BOUNDS:
LOWER:
- '%mob_xp%'
HIGHER:
- '0'
WITHIN_LIMITS: # If a player has booster x2 and x5, player will receive 7 xp | x2 x10 -> 12 xp | x5 x10 -> 15 xp | x2 x5 x10 -> 17 xp
- '#CHECK_BOOSTER#;%mob_xp%;0' # If a player doesn't have any booster, player will receive 1 xp when kill mob -> If a player has any booster, mob gives 0 xp
- '#BOOSTER2#;#cf_BOOSTER2#;0' # If a player has booster x2, player will receive 2 xp when kill mob
- '#BOOSTER5#;#cf_BOOSTER5#;0' # If a player has booster x5, player will receive 5 xp when kill mob
- '#BOOSTER10#;#cf_BOOSTER10#;0' # If a player has booster x10, player will receive 10 xp when kill mob
XP:
DEFAULT: 1
LEVEL:
MAX: 5
MIN: 1
WARNING: USE.FORMULA must be true
- Format for Formula:
number
#CONDITION#;number_1;number_2
number, number_1, number_2 can be a normal number or use custom formula -> #cf_NUMBER#
if #CONDITION# return true -> choose number_1 -> else choose number 2
This formula will get number to give exp to player, after mob got killed by player
- FORMULA.OUT_OF_BOUNDS.LOWER: It will be executed when player kill mob but player level is lower than LEVEL.MIN
- FORMULA.OUT_OF_BOUNDS.HIGHER: It will be executed when player kill mob but player level is higher than LEVEL.MAX
- FORMULA_WITHIN_LIMITS: It will be executed when player kill mob but player level is higher than LEVEL.MIN and lower than LEVEL.MAX