Files
HeroesStone_PRC8/_module/nss/de1_tr_genmed.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

22 lines
703 B
Plaintext

/////////////////////////////////////
// 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);
}
}