=======================================
Ok, I completley rehauled this script set. Fixes include such things as making it work, adding every error check I could think of, making it work for multiplayer and PW modules and even leaving it open for scripter/builders to use this script for player owned chests (though that would require customization, but hey I got a template for ya, take a look at it).
A demo module is included this time, check it out.
Ok it's 6:28am and i have work in 7 hours, screw this, i'm pasting the readme file. Good Night, I hope you enjoy..
And once again, feel free to use this in your mods if you wish. But please give me some credit if you do, I worked my ass off trying to make this as easy to use, safe and pw/multi-player compatable as possible.
Suggestions/Comments/Complaints/Voodoo Curses/Ratings all appreciated.
========================================
And now I tell you what the hell the script is.
The basic idea behind this script pack is to give module builders an easy way to
improve NPC AI in regards to thieves/looters.
These scripts react to all attempts to access te contents of the container which
they are loaded into.
You can simply load the scripts onto a container and set a variable on the container
called "owner" which holds the tag of the person the container belongs to.
If someone tries to get into the chest, the "owner" will attack them.
The base script works on a point system. There is a value associated with each of the
8 actions you can perform on the chest which will aggrivate the owner. Once the points
reach 5, they attack.
The actions and points are as follows:
- Open the container (5)
- Trigger the container's trap (3)
- Disarm the container's trap (3)
- Unlock the container (3)
- Damage the container (2)
- Take an item from the container (5)
- Destroy the container (5)
- Physically Attack the Container (Hit/Miss/No Damage) (1)
Now...
That is just the most base usage of these scripts.
OPTIONAL FEATURES:
-Multiple owners
-Set Random Treasure scripts
-Custom point values (listed above)
-Make the owner execute a custom reaction script (template included)
Multiple Owners:
If you want the script to have multiple owners then instead of setting a variable
on the container called "owner", you set variables called "owner1", "owner2", etc..
each with the unique tag of an owner/guard for the container.
Random Treasure:
Set a variable on the container called "treasure_script", the value of this variable
should be the name of the random treasure script you want this container to use (you
can make your own or use the bioware ones, such as "nw_o2_generalhig").
Custom Point Values:
Add these variables (as ints) upon the container, if they are set to 0 the script will
use the default values.
- ttc_open
- ttc_disarm
- tc_damage
- ttc_destroy
- ttc_unlock
- ttc_taken
- ttc_trap
- ttc_attack
Other Notes:
Another additional feature is that if the owner/guard(s) do not see the PC, but
the PC triggers the trap, attacks the container or destroys it, the npc(s)
will look in their direction (duh they can hear that).
Installation:
-Open toolset
-File>Import, The erf in this zip.
-create a container placeable
-rightclick it, properties>scripts>load script set, the ini file in this zip
-you will have to manually load the two scripts for traps under the trap tag
-set a variable on the container called owner (or owner1, owner2, owner3, etc.. for
containers with multiple guards) and make it's value the owner/guard's Tag.
-OR- use the template container (Under Custom>Containers & Switches)
ps: I bet there's a bunch of scripts that already do this, but i didn't bother looking,
just fet like making one and sharing, enjoy.
Posted by pfassett at 2008-09-22 14:18:43 Voted 9.50 on 09/22/08
Great work, have a question though. I am using this in an NWN 2 mod and when the guard attacks me, he doesn't change his faction. In fact, while he is swinging at me I can try and talk to him and interrupt his swing. Then he stops attacking altogether. Any idea how to get him to totally aggro on the thief?
Posted by NineFires at 2005-10-12 12:14:47 Voted 9.75 on 10/12/05
Nice work pal. Everything works and its clean. _________________________ Until Dragon Age Comes, maybe
Not a problem, glad to see it's helping someone out already, hope that works out for you, if you have any problems with this script just drop a line here =)
Not a problem, glad to see it's helping someone out already, hope that works out for you, if you have any problems with this script just drop a line here =)