tnecniiv
scripter to be
- Joined
- Jan 6, 2012
- Messages
- 298
- Solutions
- 3
- Reaction score
- 25
I have this monster spell that I'm currently working on however i don't understand how i can locate and change my effects, type and condition of the spell. when i dont even know where they're located to even reference them currently running tfs 1.2 the spell i want to make is supposed to physical front slice spell across the front of the monster. comes up as drowned spell as i just stole the phantasm spell.
LUA:
local condition = Condition(CONDITION_DROWN)
condition:setParameter(CONDITION_PARAM_DELAYED, true)
condition:addDamage(1, 100, -150)
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DROWNDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setArea(createCombatArea(AREA_WALLFIELD))
combat:setCondition(condition)
function onCastSpell(creature, variant)
return combat:execute(creature, variant)
end