Invisiblenon-lootable items

Post » Wed May 02, 2012 2:06 pm

Quick question: Is it possible to make items in an NPC's inventory (specifically, clothing) invisible to the player? Failing that, could they be scripted to be non-lootable?
User avatar
CHARLODDE
 
Posts: 3408
Joined: Mon Apr 23, 2007 5:33 pm

Post » Wed May 02, 2012 3:52 pm

No, the non-lootable flag was an invention for Oblivion, in attempts to nerf the game by not letting you pick up things you can clearly see. Morrowind allows you to pick up items.

You can remove all instances of an item from the player, which makes it very difficult for them to loot. That's reasonably simple.
You can put a script on items to not allow them to be picked up, which will work if they're in the world, but not in another inventory.
You can force the player to drop items whenever they're added to the player's inventory.
User avatar
Epul Kedah
 
Posts: 3545
Joined: Tue Oct 09, 2007 3:35 am

Post » Wed May 02, 2012 5:51 pm

No, the non-lootable flag was an invention for Oblivion, in attempts to nerf the game by not letting you pick up things you can clearly see. Morrowind allows you to pick up items.

You can remove all instances of an item from the player, which makes it very difficult for them to loot. That's reasonably simple.
You can put a script on items to not allow them to be picked up, which will work if they're in the world, but not in another inventory.
You can force the player to drop items whenever they're added to the player's inventory.

You could also make an OnDeath script for the NPC in question and remove all the items from that NPC I guess.....
User avatar
louise fortin
 
Posts: 3327
Joined: Wed Apr 04, 2007 4:51 am

Post » Thu May 03, 2012 3:54 am

Simon Griffiths, "Specifically, clothing"? :hubbahubba:
User avatar
[ becca ]
 
Posts: 3514
Joined: Wed Jun 21, 2006 12:59 pm

Post » Wed May 02, 2012 4:27 pm

If NPC is wearing the clothes when alive, you could try disabling looting when dead, something like this
begin noLootScriptif ( OnActivate )	if ( GetHealthGetRatio > 0.04 )		activate	endifendifend
User avatar
Max Van Morrison
 
Posts: 3503
Joined: Sat Jul 07, 2007 4:48 pm

Post » Thu May 03, 2012 2:33 am

Hmm... none of those ideas really work for what I have in mind, but I'll have a think about it. Thanks, guys.
User avatar
kelly thomson
 
Posts: 3380
Joined: Thu Jun 22, 2006 12:18 pm

Post » Wed May 02, 2012 11:24 pm

If you want an apparel item to appear on the NPC's body even after death but not in their inventory, you could try converting it to a body part and assigning it to a custom race to be used on your NPC.
User avatar
Ross
 
Posts: 3384
Joined: Thu Aug 10, 2006 7:22 pm


Return to III - Morrowind