Paulix
Active Member
- Joined
- Sep 13, 2012
- Messages
- 129
- Solutions
- 7
- Reaction score
- 26
I'm using this to make a poison skill
The problem is that when a player step on a poison field, and then get hit by the skill, it overwrites the "field" damage, but if the player stays on top of it, it keeps hitting 400 forever until the player leaves the field. how can i make the field don't "keep" the effect while the character is on top of it?
Lua:
local condition = createConditionObject(CONDITION_POISON)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
setConditionParam(condition, CONDITION_PARAM_FORCEUPDATE, true)
addDamageCondition(condition, 5, 1000, -400)