Trying to create a Death script, but...

Post » Thu Mar 19, 2015 11:23 pm

It seems as though I can't create a death script that the compiler is willing to accept without any error. I started constructing the script for how I want it and I want he script to execute soon as the p

layer gets to the end of the third dialogue with a dying NPC. After that convo ends, the NPC dies. This is what I came up with code wise.

Also, should I add in a stage variable to support the scripts claim or to allow the script to function properly? I've only gone as far as the quest scripts and some ondeath scripts. Also item exchanges and quest items. This will be my first death script.

Thank you in advance.

Scriptname DanielDeath extends TopicInfo  ReferenceAlias Property alias_Daniel  Auto  function alias_Daniel.IsDead()	;if alias_Daniel is dead		bool alias_Danielisdead = alias_Daniel.IsDead()	;endifEndFunction
User avatar
Becky Palmer
 
Posts: 3387
Joined: Wed Oct 04, 2006 4:43 am

Post » Thu Mar 19, 2015 3:28 pm

Try...

Alias_Daniel.GetRef().isDead()

Not 100%, but I *think* you need to use GetRef() for most Alias things...? I seem to recall having to use it for .Disable() for example a while back.

I think you might need to change the Function Name, too... I'm not sure--since it extends TopicInfo, I'm guessing this is on a dialogue script? I don't know much about them or if they have any quirks...

User avatar
Beulah Bell
 
Posts: 3372
Joined: Thu Nov 23, 2006 7:08 pm


Return to V - Skyrim