AOC_PRC8/_module/nss/take_div.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

30 lines
652 B
Plaintext

/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.6
For download info, please visit:
http://www.lilacsoul.revility.com */
//Put this on action taken in the conversation editor
void main()
{
object oMod = GetModule();
object oPC = GetPCSpeaker();
int oMode = GetLocalInt(oMod, "gamemode");
object oItem, oItem2;
oItem = GetItemPossessedBy(oPC, "divine_note");
oItem2 = GetItemPossessedBy(oPC, "div_key");
if (GetIsObjectValid(oItem))
DestroyObject(oItem);
if (GetIsObjectValid(oItem2))
DestroyObject(oItem2);
if (oMode!=1)
CreateItemOnObject("divine_talisman", oPC);
else
CreateItemOnObject("dark_talisman", oPC);
}