generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
21
_module/nss/de1_tr_genmed.nss
Normal file
21
_module/nss/de1_tr_genmed.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
/////////////////////////////////////
|
||||
// Dragon's Edge
|
||||
// by Charly Carlos
|
||||
/////////////////////////////////////
|
||||
// Ondeath/Onopen script for containers. Spawns random general
|
||||
// treasures and spawns items for crafting if player has enough crafting skills.
|
||||
// Modified from the orginal NWN:SoU version of the script and added with with
|
||||
// Crafting script for NWN:HotU.
|
||||
/////////////////////////////////////
|
||||
#include "x0_i0_treasure"
|
||||
#include "x2_inc_compon"
|
||||
void main()
|
||||
{
|
||||
craft_drop_placeable();
|
||||
CTG_CreateTreasure(TREASURE_TYPE_MED, GetLastOpener(), OBJECT_SELF);
|
||||
if (GetLocalInt(OBJECT_SELF, "nStealing")== 1)
|
||||
{
|
||||
AdjustAlignment(GetLastOpener(), ALIGNMENT_CHAOTIC, 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user