Hi! I've been searching around and there's no place where the condition parameters are explained, I bet it's not that hard but some things I've tried just don't work. For example (using the strong haste spell that comes by default)
Changing CONDITION_HASTE for CONDITION_INVISIBLE as I expected turned the player invisible for 22 seconds (and I assume that the condition:setFormula in this case does nothing?). But when I change it and use
CONDITION_CURSED it does nothing at all.
Also in the enums in https://otland.net/threads/tfs-1-x-enums.225588/ I see there are "Condition Types" and "Condition Action Types", what's the difference between them? Is this explained somewhere I missed?
I'm using TFS 1.1
Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0)
local condition = Condition(CONDITION_INVISIBLE)
condition:setParameter(CONDITION_PARAM_TICKS, 22000)
condition:setFormula(0.7, -56, 0.7, -56)
combat:setCondition(condition)
function onCastSpell(creature, var)
return combat:execute(creature, var)
end
Changing CONDITION_HASTE for CONDITION_INVISIBLE as I expected turned the player invisible for 22 seconds (and I assume that the condition:setFormula in this case does nothing?). But when I change it and use
CONDITION_CURSED it does nothing at all.
Also in the enums in https://otland.net/threads/tfs-1-x-enums.225588/ I see there are "Condition Types" and "Condition Action Types", what's the difference between them? Is this explained somewhere I missed?
I'm using TFS 1.1
Last edited: