generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
29
_module/nss/take_div.nss
Normal file
29
_module/nss/take_div.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
/* 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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user