Simple Experience for disarming or recovering a trap.
On a chest or door, under the tab where you set the trap is a place for a script
by OnDisarm.
Trigger traps have a place for OnDisarm scripts too.
Click edit and paste this in there
void main()
{
//by kludge to give 20 exp for disarming a trapped chest
GiveXPToCreature(GetLastDisarmed(), 20);
}
I named the script trapexp. I should have named it
trapexp20. If you change the number and name when you
save the script it'll be available from the pulldown
instead of having to edit and paste every time.
It also gives the same experience for recovering the trap. Change the number 20
to the experience you want to
give. If it's a real tough trap I might go higher.
_________________
Play where it means your life!
Psychothriller
http://www.psychothriller.com
Centurion, USB