Npc werewolf change triggered by dialgue?

Post » Wed Jun 20, 2012 8:24 pm

I've been searching all over for an example script of changing an NPC to a werewolf after a dialogue sequence changes the stage of a quest.
I've tried using existing scripts within Skyrim, but none have worked, the NPC simply goes into combat (attempting to cast the spell I assume (but nothing happens).

Essentially what I need to know is how to set up the script. This is holding the release of a new version of my existing MOD up. I've also tried using certain Tutorials and omitting certain aspects of their code, namely Doug's custom AI tutorial. but I have no idea how set up the trigger segment of the code.. I've tried. IF Getstage.. etc to no avail.
Thanks!


Oops on the typo in the thread title..
User avatar
Alexander Lee
 
Posts: 3481
Joined: Sun Nov 04, 2007 9:30 pm

Post » Wed Jun 20, 2012 3:45 pm

Here's part of the script for quest C01 that seems to handle it:

Function ObserverDoTransform();     Debug.Trace("C01: Observer starting transform...")    Actor obs = Observer.GetActorReference()    __observerOriginalRace = obs.GetActorBase().GetRace()    obs.GetActorBase().SetInvulnerable(true)    WerewolfChangeFX.Cast(obs)    RegisterForAnimationEvent(obs, "SetRace")    Utility.Wait(10)    ObserverActuallyTransform()EndFunctionbool __transformTracked = falseFunction ObserverActuallyTransform()    if (__transformTracked)        ; transformation already happened from FX spell        return    endif    __transformTracked = true        ObserverTransform = False    DogsOutOfTheBag = True    AmbushScene.Stop() ; just to make sure    FightStart()EndFunction
User avatar
Jessie Butterfield
 
Posts: 3453
Joined: Wed Jun 21, 2006 5:59 pm

Post » Wed Jun 20, 2012 6:46 am

*Spoilers possibly*


There is the quest in Falkreath where you talk to the prisoner in his cell, and then he transforms and climbs out the window. Maybe there is something you could use from that quest's script. I'm pretty sure it's a Deadric quest, but I forgot which number :X
User avatar
Franko AlVarado
 
Posts: 3473
Joined: Sun Nov 18, 2007 7:49 pm


Return to V - Skyrim