Allan Silva
Member
- Joined
- May 30, 2018
- Messages
- 39
- Solutions
- 1
- Reaction score
- 7
I'm trying to modify weapon effect attack. I would like to make the basic attack have the same effect exori. However I can only do "exori hit" feat around the monster instead of around the character, as shown in the image. I send the used code. I would like to make the hit area around the character instead of the creature.
I'm using TFS 1.3
Thanks XD
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true)
combat:setFormula(COMBAT_FORMULA_SKILL, 0, 0, 1, 0)
arr = {
{1, 1, 1},
{1, 3, 1},
{1, 1, 1}
}
local club = Weapon(WEAPON_CLUB)
local area = createCombatArea(arr)
combat:setArea(area)
function club.onUseWeapon(creature, var)
return combat:execute(creature, var)
end
club:id(2321)
club:wieldUnproperly(true)
club:register()
I'm using TFS 1.3
Thanks XD