SphereCommunity
NPC Brain - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: NPC Brain (/Thread-NPC-Brain)



NPC Brain - Xenon - 06-26-2017 04:48 AM

Hi Guys, I have been out of action for a long time, many years in fact but thought I would muck around with some scripting again.

I am in the process of upgrading from sphere 56b to 56d and have come across a problem with my NPC scripts.

Most of my NPC's dont have the ON=@Create
NPC=10

Which is causing some problems with NPC such as not moving and attacking.

However I have previously added a event on most of my custom NPCs e_npc.

How would I add NPC=10 or NPC=Brain_Monster to my e_npc event that is lcoated on most of my custom NPC scripts?


RE: NPC Brain - Xenon - 06-27-2017 04:39 AM

I am trying to do something like this. I just cant find of the set function in scripting....


[EVENTS e_npc]
if (<src.npc>)
src.npc=brain_animal
endif


RE: NPC Brain - BestBG - 06-27-2017 12:19 PM

Why not just add ON=@CREATE for all your custom npcs and use NPC=brain_animal?