An object that can't be removed from an NPC's inventory?

Post » Mon Oct 29, 2012 4:10 am

Is it possible to script something like this? The fabricants I have in SSE have robotic body parts like arms, legs, and hands, which are in fact, just clothing. However I don't want them to be removed from the fabricant if possible.
User avatar
Phillip Brunyee
 
Posts: 3510
Joined: Tue Jul 31, 2007 7:43 pm

Post » Mon Oct 29, 2012 12:42 pm

I used something similar working for guar riding gear, IIRC the one thing to pay attention for was to remove the item from player after menu was closed
begin ab01guNPCRidingFeetScript; local script for the cloth/armor objectshort OnPCAddif ( OnPCAdd == 1 )	player->StopSound "Item Clothes Up"  ; change this with sound emitted by your gear when it is added to player inventory	set OnPCAdd to -1	messagebox "You cannot take this."	if ( scriptrunning ab01gutRemoveNPCRFScript )		return	endif	player->startscript ab01gutRemoveNPCRFScript  ; starts script on playerendifend
begin ab01gutRemoveNPCRFScript; global script targeted on player to remove objectif ( MenuMode )	return  ; wait for menu close before removingendifwhile ( GetItemCount ab01guNPCRidingFeet > 0 )	RemoveItem ab01guNPCRidingFeet 1  ; remove item(s) from playerendwhilestopscript ab01gutRemoveNPCRFScriptend
User avatar
Robert Devlin
 
Posts: 3521
Joined: Mon Jul 23, 2007 2:19 pm

Post » Mon Oct 29, 2012 3:01 pm

You could attach scripts to the Fabricants that disable them upon death and replace them with static versions of their dead self.

Nevermind.
User avatar
Claudia Cook
 
Posts: 3450
Joined: Mon Oct 30, 2006 10:22 am


Return to III - Morrowind