demon088
#088 in the Horde
Hello OTLand!
I'm looking for a spell able to force change target on creatures.
EXAMPLE (Of course this code doesn't work):
I was thinking in something like the 'Challenge' spell. The spell would work instead of attracting creatures, it would force creatures to change their target randomly. What do you think? I was searching for a similar spell in the Search Bar but I could not find any track of it.
Thanks for your help!
Srry but... BUMP! I really need this.
I'm looking for a spell able to force change target on creatures.
EXAMPLE (Of course this code doesn't work):
Code:
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, "unTargetCreature")<<<<<<<<<
function onCastSpell(creature, variant)
return combat:execute(creature, variant)
end
I was thinking in something like the 'Challenge' spell. The spell would work instead of attracting creatures, it would force creatures to change their target randomly. What do you think? I was searching for a similar spell in the Search Bar but I could not find any track of it.
Thanks for your help!
Srry but... BUMP! I really need this.
Last edited by a moderator: