• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to make a spell like fear

andu

Sold 649 scripts, 25 maps and 9 events!
Joined
Aug 7, 2009
Messages
978
Solutions
17
Reaction score
373
GitHub
olrios
Twitch
jamagowy
How to make a spell which will be like a fear (target will run away), and it works on players and on creatures too?

@edit
0.3.5 tfs
 
source edit to implement condition and to make creature runaway if is under condition
for monster gonna be quite easier(if try to walk just walk away from fear caster and become unable to target) but for player some onThink seems to be needed to make the runaway(targetting and disabling attack should be easy)
 
Idea:
For players you could utilize the `doCreatureSetNoMove` function then use the `doTeleportThing` in an onThink creaturescript with the pushmove parameter set to true, getting the position as part of the `getClosestFreeTile` function.

That should help you get started :P.
 
Back
Top