Need a special effect for my my Temptress Vixen

Post » Sat Nov 17, 2012 9:10 am

Here is my mod at the Nexus: http://skyrim.nexusmods.com/mods/20819/?tab=3&navtag=/ajax/comments/?thread_id=733947%7C:%7Cmod_id=20819

And here a video example of my mod: http://www.youtube.com/watch?v=VWgcOX90O0o

I want to add a special effect when she changes form. Now the change is instant, I want to add a transition, like ExplosionIllusionDark01, for example. What's the best way to do this?

I'm not very good at scripting! So if someone could post an example because I still have a problem understanding some scripting Papyrus terms.

Here is my script:

Spoiler

Scriptname FlameOn extends Actor

Race Property AtronachFlameRace Auto
Race ActorRace

Event OnInit()
ActorRace = GetRace()
EndEvent

Auto State Waiting
Event OnCombatStateChanged(Actor actorRef, int combatState)
GoToState("Busy")
RegisterForSingleUpdate(1)
EndEvent
EndState

State Busy
Event OnUpdate()
if (IsInCombat() && GetRace() == ActorRace)
SetRace(AtronachFlameRace)
elseif (!IsInCombat() && GetRace() == AtronachFlameRace)
SetRace(ActorRace)
else
GoToState("Waiting")
Return
endif
RegisterForSingleUpdate(1)
EndEvent
EndState

User avatar
Melissa De Thomasis
 
Posts: 3412
Joined: Tue Feb 27, 2007 6:52 pm

Post » Sat Nov 17, 2012 6:27 pm

Here is my mod at the Nexus: http://skyrim.nexusmods.com/mods/20819/?tab=3&navtag=/ajax/comments/?thread_id=733947%7C:%7Cmod_id=20819

And here a video example of my mod: http://www.youtube.com/watch?v=VWgcOX90O0o

I want to add a special effect when she changes form. Now the change is instant, I want to add a transition, like ExplosionIllusionDark01, for example. What's the best way to do this?

I'm not very good at scripting! So if someone could post an example because I still have a problem understanding some scripting Papyrus terms.

Here is my script:

Spoiler

Scriptname FlameOn extends Actor

Race Property AtronachFlameRace Auto
Race ActorRace

Event OnInit()
ActorRace = GetRace()
EndEvent

Auto State Waiting
Event OnCombatStateChanged(Actor actorRef, int combatState)
GoToState("Busy")
RegisterForSingleUpdate(1)
EndEvent
EndState

State Busy
Event OnUpdate()
if (IsInCombat() && GetRace() == ActorRace)
SetRace(AtronachFlameRace)
elseif (!IsInCombat() && GetRace() == AtronachFlameRace)
SetRace(ActorRace)
else
GoToState("Waiting")
Return
endif
RegisterForSingleUpdate(1)
EndEvent
EndState

If you know which effect you want played - the only one I've experience with is the the SummonFX - add a property to your script and call it with placeatme. I'll show you using your script

Spoiler
Activator Property czChangeFormFX Auto;...State Busy		Event OnUpdate()				if (IsInCombat() && GetRace() == ActorRace)						; The effect is placed at the actor and then played as it changes form.						placeatme(czChangeFormFX)						SetRace(AtronachFlameRace)				elseif (!IsInCombat() && GetRace() == AtronachFlameRace)						; The same effect or, if you so choose, a different one is played when the						; actor changes back to its original form.						placeatme(czChangeFormFX)						SetRace(ActorRace)				else						GoToState("Waiting")						Return				endif				RegisterForSingleUpdate(1)		EndEventEndState
As you can see, it's very simple! Luckily. Good luck, that's a very cool idea.
User avatar
Krystal Wilson
 
Posts: 3450
Joined: Wed Jan 17, 2007 9:40 am

Post » Sat Nov 17, 2012 3:45 am

Hey! Thanks a lot Average Porcupine! I got it working with Explosion Property ExplosionIllusionDark01 Auto

I gave you credit on my Nexus page. Thanks again!
User avatar
Mandy Muir
 
Posts: 3307
Joined: Wed Jan 24, 2007 4:38 pm


Return to V - Skyrim