PRC8_fork/nwn/trunk/scripts/prgt_spawneg.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

14 lines
471 B
Plaintext

//An example OnHB script for an invisible placeable to spawn a ground trap
#include "prc_alterations"
#include "prgt_inc"
void main()
{
struct trap tTrap;
//this will use 5 as the CR for the trap
tTrap = CreateRandomTrap(5);
//add code in here to change things if you want to
//for example, to set the detect DC to be 25 use:
//tTrap.nDetectDC = 25;
PRGT_CreateTrapAtLocation(GetLocation(OBJECT_SELF), tTrap);
DestroyObject(OBJECT_SELF);
}