30 lines
652 B
Plaintext
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);
|
||
|
|
||
|
}
|
||
|
|