Page 1 of 1

spawn creatures dead

Posted: Thu Mar 30, 2006 10:39 am
by girlysprite
I am working on my own mod now, and as a part of an area I want dead creatures. I dont know a way to put em in the toolset dead already (is that even possible?)
if that isnt possible, how can I make a corpse undecayable?

Posted: Thu Mar 30, 2006 10:47 am
by Krator
Make an onspawn script, with:

SetIsDestroyable(OBJECT_SELF,FALSE)

And something that makes it go boom.

Posted: Thu Mar 30, 2006 10:49 am
by girlysprite
the destroyable thing is something that mkes the corpse undecayable?

Posted: Thu Mar 30, 2006 10:53 am
by mortzestus
Use x0_c2_spwn_corp.nss in the on spawn event.

Posted: Thu Mar 30, 2006 11:00 am
by girlysprite
mortzestus wrote:Use x0_c2_spwn_corp.nss in the on spawn event.
Now with this I dont get a lottable corpse anymore, even when the checkbox is checked for that.

Posted: Thu Mar 30, 2006 11:25 am
by Calzier
girlysprite wrote:
mortzestus wrote:Use x0_c2_spwn_corp.nss in the on spawn event.
Now with this I dont get a lottable corpse anymore, even when the checkbox is checked for that.
Use an invisibleobject with the name of "dead goblin" or whatever and an inventory (and usable of course), and make the dead creature object static?

Posted: Thu Mar 30, 2006 11:46 am
by girlysprite
I have the problem solved, more or less...and have moved on to a new problem.

I have this code where someone has to make a fortitude save with a DC of 15, and if he fails, he gets dazed for 20 seconds.

void main()
{

object oPC = GetPCSpeaker();

if (FortitudeSave(oPC, 15))
{
oTarget = oPC;

eEffect = EffectDazed();

eEffect = SupernaturalEffect(eEffect);

ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 20.0f);

}
}

I get this error: ac9_3_dazed1.nss(8): ERROR: VARIABLE DEFINED WITHOUT TYPE

Posted: Thu Mar 30, 2006 11:48 am
by Krator

Code: Select all

void main()
{

object oPC = GetPCSpeaker();

if (FortitudeSave(oPC, 15))
   {

   effect eEffect = EffectDazed();

   effect eEffect = SupernaturalEffect(eEffect);

   ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oPC, 20.0f);

   }
}

Posted: Thu Mar 30, 2006 11:51 am
by girlysprite
Just solved it before I read this ;)
That the shit with script generators...sometimes they make mistakes. Ill email Lilac as well.