How to make npcs cast spells / shoot at enemy npcs

I have different NPC’s of different factions that are hostile to each other.

Is there a way for me to use scripts, so that instead of autoattacking an enemy npc upon aggro, they instead cast a spell or shoot an arrow at that npc.

It is for creating a separate “archer” or “mage” class of NPC for RP battle re-enactments.

Thanks in advance for any help or tips :slight_smile:

May as well use emote ids that are channeling / shooting bows and what not as more simple solution the rest being done through simple emoting. Otherwise through scripting I personally don’t know how. : (. Hope the idea works as a suitable alternative should you not manage to make it work with scripting.

Scripting for this is so buggy and shit, emote or do visual casting

Thank you so much for your answers.

I am fairly new to this server, and do not know much about emotes or visual casting. Can one of you perhaps elaborate on how i would do that?

Thanks again :slight_smile:

Oh and as for actually being able to script npcs, there is a guide once you vote/buy in the actual thing :slight_smile: a few guides, though @Mia probably if still around is your scripting major, most of the guides are old.

Fake news, the only god of scripting is @BulletBill

1 Like

I demand a Shokugeki