There is a little problem with my spell and I would appreciate some help since I've been stuck on this one;
The problem is with condition parameter, it either adds skill_sword +20 or takes player mana -5 but they do not work at the same time and I don't know why;
this:
I also tried to do this:
but that didn't work
Also, if you know how to stop the conditions when the player has 10 mana or less please let me know
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 6)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, -1)
setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, 20)
setConditionParam(condition, CONDITION_PARAM_MANAGAIN, -5)
setCombatCondition(combat, condition)
The problem is with condition parameter, it either adds skill_sword +20 or takes player mana -5 but they do not work at the same time and I don't know why;
this:
Lua:
setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, 20)
setConditionParam(condition, CONDITION_PARAM_MANAGAIN, -5)
I also tried to do this:
Lua:
local condition = createConditionObject(CONDITION_ATTRIBUTES and CONDITION_REGENERATION)
but that didn't work
Also, if you know how to stop the conditions when the player has 10 mana or less please let me know
Last edited: