Jump to content

NPC Script Question


Dahak

Recommended Posts

It actually seemed like a pretty cool idea to me. You could put it in a terrain script and make it so it runs ever turn (even from far away. Terrain scripts run in between combat turns as well, which could be useful.) That way each town you just put a terrain script down.

 

I don't see why it would slow things down. Well the terrain script idea might because it'd be run so often in combat, but checks could be made so that it only runs once per combat turn.

Link to comment
Share on other sites

One technique I thought up a while ago was to alter basicnpc.txt itself. Wrap the default behaviour in an else, and then add your own scripting in ifs that test for the desired condition. For instance, before the default else, test to see if the creature's number is X, where X is the creature number for Hank the Hireling.

 

I have yet to get around to implementing it, though.

 

--------------------

I wouldn't shake his hand if I were you. I hear he licks his thumb.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...