Items
Jerky
icon='Items.dmi'
icon_state="Jerky"
density=0
name="Jerky"
Interact()
set src in oview(1)
usr << "You get the [src]!"
Move(usr)
verb
Throw()
usr <<"You throw the Beef Jerky onto the floor."
// How can I get this to distract enemies in the vicinity if thrown onto the floor?
//Basically, I want the option for players to throw it on the floor to distract enemies, or throw at another player and lures enemies towards that player.
Problem description:
My issue is described in the code above. I've been trying for countless hours today to figure out a code that causes the AI (enemies) to be attracted to the beef jerky.
If thrown on the floor, nearby enemies will swarm to it and avoid attacking the player for about thirty seconds, or they can throw it onto another nearby player and cause the enemies to swarm that player and attack them, until the effect wears off in 30 seconds.
Possible?
After about 30 seconds, you could either delete the jerky or toggle a flag on it that makes AI stop reacting to it.
It's been done before, so of course it's possible.