aqubjukr
Well-Known Member
Hello, I was wondering if you can remove the flag of a monster temporarily?
In this case, change the runonhealth flag to 0 for 6 seconds and then return to normal?
(I'm trying to make exeta res the same as global, but I'm not getting it at all)
OPTION: If n to change runonhealth, another option would be to force the monster to follow in the player if possible.
Exeta res:
In this case, change the runonhealth flag to 0 for 6 seconds and then return to normal?
(I'm trying to make exeta res the same as global, but I'm not getting it at all)
OPTION: If n to change runonhealth, another option would be to force the monster to follow in the player if possible.
Exeta res:
C++:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setArea(createCombatArea(AREA_SQUARE1X1))
function onTargetCreature(creature, target)
return doChallengeCreature(creature, target)
end
combat:setCallback(CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature")
function onCastSpell(creature, variant)
return combat:execute(creature, variant)
end