Making the character a ghost through a spell?

Post » Tue Jun 19, 2012 3:21 pm

Is there a way to apply the DefaultGhostScript to the player?

Its used in Vanilla on the Dark Brotherhood Spectral Assassin. I'd like to use it in a spell that turns the player into a ghost. Granting all the same effects and immunities.

How would I do this?
User avatar
Matt Terry
 
Posts: 3453
Joined: Sun May 13, 2007 10:58 am

Post » Tue Jun 19, 2012 6:08 pm

For the abilities part, you could just add them in the OnMagicEffectStart and remove them in the OnMagicEffectFinish events. As for the OnHit event, I would create a quest with a reference alias on the player and add a script in the alias there. Then you would only need to start and stop the quest when the magic effect starts and finishes. Something like this:


scriptName GetPlayerRefMEffectScript extends ActiveMagicEffect{test.};==================;   PROPERTIES	 /=============/Quest Property GetPlayerQuest Auto;==================;   EVENTS	 /=============/Event OnEffectStart(Actor Target, Actor Caster)  ; Add abilities here  GetPlayerQuest.Start()EndEventEvent OnEffectFinish(Actor Target, Actor Caster)  ; Remove abilities  GetPlayerQuest.Stop()EndEvent
User avatar
Solina971
 
Posts: 3421
Joined: Thu Mar 29, 2007 6:40 am

Post » Tue Jun 19, 2012 10:54 pm

As for the OnHit event, I would create a quest with a reference alias on the player and add a script in the alias there. Then you would only need to start and stop the quest when the magic effect starts and finishes. [/CODE]

As long as the magic effect is applied you can intercept onhit events right from within your spell. Magic Effect scripts can hook up to ANY objectreference event that the effect is applied to.

-MM
User avatar
Bek Rideout
 
Posts: 3401
Joined: Fri Mar 02, 2007 7:00 pm

Post » Tue Jun 19, 2012 6:50 pm

As long as the magic effect is applied you can intercept onhit events right from within your spell. Magic Effect scripts can hook up to ANY objectreference event that the effect is applied to. -MM

OMG :blink: ... I have no idea how I missed that... *runs to have some fun with the editor* :bunny:
User avatar
sarah taylor
 
Posts: 3490
Joined: Thu Nov 16, 2006 3:36 pm

Post » Tue Jun 19, 2012 8:42 pm

Awesome, this got my Ghost Form working. Thanks a bunch. Now I just need to find out if I can make the spell grant the bonuses of invisibility (being unseen) without making the character translucent.

Thanks guys and/or gals.
User avatar
Music Show
 
Posts: 3512
Joined: Sun Sep 09, 2007 10:53 am


Return to V - Skyrim