spawn creatures dead

Moderator: Event DM

Post Reply
User avatar
girlysprite
Elder Sage
Posts: 3659
Joined: Mon Apr 12, 2004 2:38 pm
Location: In my little pony ranch
Contact:

spawn creatures dead

Post by girlysprite » Thu Mar 30, 2006 10:39 am

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?
Gaming doesn't make people voilent, lag does

<Dimotane> I think deep down, when we're honest with ourselves... we're all a pregnant male elf.
User avatar
Krator
Elder Sage
Posts: 4935
Joined: Thu Jun 10, 2004 6:44 pm
Timezone: GMT
Location: Amsterdam

Post by Krator » Thu Mar 30, 2006 10:47 am

Make an onspawn script, with:

SetIsDestroyable(OBJECT_SELF,FALSE)

And something that makes it go boom.
User avatar
girlysprite
Elder Sage
Posts: 3659
Joined: Mon Apr 12, 2004 2:38 pm
Location: In my little pony ranch
Contact:

Post by girlysprite » Thu Mar 30, 2006 10:49 am

the destroyable thing is something that mkes the corpse undecayable?
Gaming doesn't make people voilent, lag does

<Dimotane> I think deep down, when we're honest with ourselves... we're all a pregnant male elf.
User avatar
mortzestus
Team Member; Retired with Honors
Posts: 3964
Joined: Wed Sep 17, 2003 4:34 pm
Location: Madrid, Spain (GMT +1)

Post by mortzestus » Thu Mar 30, 2006 10:53 am

Use x0_c2_spwn_corp.nss in the on spawn event.
User avatar
girlysprite
Elder Sage
Posts: 3659
Joined: Mon Apr 12, 2004 2:38 pm
Location: In my little pony ranch
Contact:

Post by girlysprite » Thu Mar 30, 2006 11:00 am

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.
Gaming doesn't make people voilent, lag does

<Dimotane> I think deep down, when we're honest with ourselves... we're all a pregnant male elf.
User avatar
Calzier
CCC
CCC
Posts: 2284
Joined: Mon May 02, 2005 10:39 am
Timezone: GMT/BST
Location: UK

Post by Calzier » Thu Mar 30, 2006 11:25 am

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?
User avatar
girlysprite
Elder Sage
Posts: 3659
Joined: Mon Apr 12, 2004 2:38 pm
Location: In my little pony ranch
Contact:

Post by girlysprite » Thu Mar 30, 2006 11:46 am

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
Gaming doesn't make people voilent, lag does

<Dimotane> I think deep down, when we're honest with ourselves... we're all a pregnant male elf.
User avatar
Krator
Elder Sage
Posts: 4935
Joined: Thu Jun 10, 2004 6:44 pm
Timezone: GMT
Location: Amsterdam

Post by Krator » Thu Mar 30, 2006 11:48 am

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);

   }
}
User avatar
girlysprite
Elder Sage
Posts: 3659
Joined: Mon Apr 12, 2004 2:38 pm
Location: In my little pony ranch
Contact:

Post by girlysprite » Thu Mar 30, 2006 11:51 am

Just solved it before I read this ;)
That the shit with script generators...sometimes they make mistakes. Ill email Lilac as well.
Gaming doesn't make people voilent, lag does

<Dimotane> I think deep down, when we're honest with ourselves... we're all a pregnant male elf.
Post Reply