Scripted battle speak

Post » Sun Sep 19, 2010 11:02 pm

Hey guys.

I am currently making a mod that has a scripted battle in it. I have finnished the battle and all that, but I was wondering if someone could tell me how to Enable an intially disabled NPC after the NPC's I am fighting in the battle are dead? I want to use the enabled NPC as a messanger to talk to me after the battle.

Cheers,

Shadowform.
User avatar
He got the
 
Posts: 3399
Joined: Sat Nov 17, 2007 12:19 pm

Post » Mon Sep 20, 2010 1:32 am

Hey guys.

I am currently making a mod that has a scripted battle in it. I have finnished the battle and all that, but I was wondering if someone could tell me how to Enable an intially disabled NPC after the NPC's I am fighting in the battle are dead? I want to use the enabled NPC as a messanger to talk to me after the battle.

Cheers,

Shadowform.

You could attach a script to both fighters with an OnDeath block that enables the messenger NPC. Something like:

scn MessengerEnableScript01Begin OnDeath If OtherFighterRef.GetDead == 1   MessengerNPCRef.Enable EndifEnd


Attach a similar script to the other fighter so that, no matter which order they die in, the messenger will be enabled after the second one dies.
User avatar
Katharine Newton
 
Posts: 3318
Joined: Tue Jun 13, 2006 12:33 pm


Return to IV - Oblivion