Difference between revisions of "Scripting Tutorial: Summoned Creatures"

Jump to navigation Jump to search
m
imported>Chaptmc
m (Minor change in the script(Make it more like an Oblivion Style Summon) and changed aggression from zero to five(reasoning mentioned next to the change))
imported>Firebelley
Begin ScriptEffectUpdate
 
if ( timer > 30 ) ;Creature is dead and fade timer passed
;Move our creature back to it's holding cell
SUMN.kill
 
;Adjust timer state for early fade/disable upon death
if ( SUMN.getdead == 1 ) && ( timer < 28 )
set timer to 28
endif
 
if ( timer > 0.1 ) && ( playonce == 0 )
;Play effect for creature entrance
SUMN.pms effectSummonMythicDawn 1
 
;Increment timer
set timer to timer + ScriptEffectElapsedSecondsGetSecondsPassed
 
if ( timer > 28 ) && ( playonce == 1 )
;Play effect for creature exit/death
SUMN.kill
endif
 
if ( playonce == 2 )
;Fade creature for exit/death
set fade to fade - 0.03
Anonymous user

Navigation menu