Initial module commit
Initial module commit.
This commit is contained in:
34
_module/nss/stripstuff.nss
Normal file
34
_module/nss/stripstuff.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
/* Script generated by
|
||||
Lilac Soul's NWN Script Generator, v. 2.1
|
||||
|
||||
For download info, please visit:
|
||||
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
||||
|
||||
//Put this on action taken in the conversation editor
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
object oTarget;
|
||||
oTarget = GetObjectByTag("playeritem");
|
||||
|
||||
object oItem;
|
||||
oItem = GetFirstItemInInventory(oPC);
|
||||
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
AssignCommand(oTarget, ActionTakeItem(oItem, oPC));
|
||||
|
||||
oItem = GetNextItemInInventory(oPC);
|
||||
}
|
||||
|
||||
int nInt;
|
||||
for (nInt=0; nInt<NUM_INVENTORY_SLOTS; nInt++)
|
||||
{
|
||||
oItem = GetItemInSlot(nInt, oPC);
|
||||
|
||||
if (GetIsObjectValid(oItem)) AssignCommand(oTarget, ActionTakeItem(oItem, oPC));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user