dgprado
Member
How to configure the use of time between one and another potion?
exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 100))
data/actions/scripts/other/potions.lua
The timeBetweenExActions in config.lua is usually 1000, so - 100 it will be 900.Code:exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 100))
Time is in milliseconds, so 1000 = 1 second, 2000 = 2 seconds, etc.
What do you have as exhaustion time in potions.lua?
local exhaust = Condition(CONDITION_EXHAUST_HEAL)
exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 100))
-- 1000 - 100 due to exact condition timing. -100 doesn't hurt us, and players don't have reminding ~50ms exhaustion.