toolset question

G

Guest

Guest
Archived from groups: alt.games.neverwinter-nights (More info?)

Does anyone know how to keep the body of an NPC in the game, so that you
can interact with it later? I want someone to be resurrectable, but his
body disappears after it's looted.

Thanks.
 
Archived from groups: alt.games.neverwinter-nights (More info?)

John Salerno wrote:
> Does anyone know how to keep the body of an NPC in the game, so that you
> can interact with it later? I want someone to be resurrectable, but his
> body disappears after it's looted.
>
> Thanks.
In some modules I have seen an item for abody vreated on the corpse -
The Shadoweaver modules esp the 2nd and 3rd one had this feature.

Sorry can't be of more help haven't tried writing modules for NWN yet.

Kharsis
 
Archived from groups: alt.games.neverwinter-nights (More info?)

Kharsis wrote:
> John Salerno wrote:
>
>>Does anyone know how to keep the body of an NPC in the game, so that you
>>can interact with it later? I want someone to be resurrectable, but his
>>body disappears after it's looted.
>>
>>Thanks.
>
> In some modules I have seen an item for abody vreated on the corpse -
> The Shadoweaver modules esp the 2nd and 3rd one had this feature.
>
> Sorry can't be of more help haven't tried writing modules for NWN yet.
>
> Kharsis

You mean something to always give the body an inventory, so it won't
disappear? I've thought about doing something like that, but it would
have to be something the PC can't take. I don't know if it's possible to
make an invisible item.
 
Archived from groups: alt.games.neverwinter-nights (More info?)

John Salerno wrote:
> Kharsis wrote:
>
>>John Salerno wrote:
>>
>>
>>>Does anyone know how to keep the body of an NPC in the game, so that you
>>>can interact with it later? I want someone to be resurrectable, but his
>>>body disappears after it's looted.
>>>
>>>Thanks.
>>
>>In some modules I have seen an item for abody vreated on the corpse -
>>The Shadoweaver modules esp the 2nd and 3rd one had this feature.
>>
>>Sorry can't be of more help haven't tried writing modules for NWN yet.
>>
>>Kharsis
>
>
> You mean something to always give the body an inventory, so it won't
> disappear? I've thought about doing something like that, but it would
> have to be something the PC can't take. I don't know if it's possible to
> make an invisible item.

Well, I found out about the SetIsDestroyable() function, which seems to
be the proper way to do it.
 
Archived from groups: alt.games.neverwinter-nights (More info?)

Actually, you can just give the character a "new" item that you need need
some sort of insane skills to detect. It wouldn't be an invisible item,
really, but rather a magical item that would be nearly impossible to see. I
think there are several ways of doing this. Using the SetIsDestroyable
function on the corpse? I think that will keep the corpse from
disappearing, but it may not allow you to interact with the corpse. Not
sure.

-Ned


"John Salerno" <johnjsal@NOSPAMgmail.com> wrote in message
news:W8-dnYXfmrgz-pnfRVn-rQ@rcn.net...
> John Salerno wrote:
>> Kharsis wrote:
>>
>>>John Salerno wrote:
>>>
>>>
>>>>Does anyone know how to keep the body of an NPC in the game, so that you
>>>>can interact with it later? I want someone to be resurrectable, but his
>>>>body disappears after it's looted.
>>>>
>>>>Thanks.
>>>
>>>In some modules I have seen an item for abody vreated on the corpse - The
>>>Shadoweaver modules esp the 2nd and 3rd one had this feature.
>>>
>>>Sorry can't be of more help haven't tried writing modules for NWN yet.
>>>
>>>Kharsis
>>
>>
>> You mean something to always give the body an inventory, so it won't
>> disappear? I've thought about doing something like that, but it would
>> have to be something the PC can't take. I don't know if it's possible to
>> make an invisible item.
>
> Well, I found out about the SetIsDestroyable() function, which seems to be
> the proper way to do it.
 
Archived from groups: alt.games.neverwinter-nights (More info?)

Ned Flanders wrote:
> Actually, you can just give the character a "new" item that you need need
> some sort of insane skills to detect. It wouldn't be an invisible item,
> really, but rather a magical item that would be nearly impossible to see. I
> think there are several ways of doing this. Using the SetIsDestroyable
> function on the corpse? I think that will keep the corpse from
> disappearing, but it may not allow you to interact with the corpse. Not
> sure.

I figured out SetIsDestroyable(). If the corpse has an inventory, you
can access it until everything is taken away. Then the corpse remains,
but you can no longer access the inventory. You can, however, still make
the corpse "selectable", meaning you can move the cursor over it and get
feedback (name and status), or you can make it completely static and
non-interactive.
 
Archived from groups: alt.games.neverwinter-nights (More info?)

Thanks! I have to remember that.
I wonder if you can figure out a way to change the contents of the corpse
over time, as if it was rotting and exposing it's wares. That would be
cool.

Good Luck,
-Ned
 
Archived from groups: alt.games.neverwinter-nights (More info?)

Ned Flanders wrote:
> Thanks! I have to remember that.
> I wonder if you can figure out a way to change the contents of the corpse
> over time, as if it was rotting and exposing it's wares. That would be
> cool.
>
> Good Luck,
> -Ned
>
>

Hmm, interesting. I suppose you could try adding an object to the corpse
(since the corpse will still be the creature, with the same tag), but I
don't know if that would 're-open' the inventory.