This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

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
Line 100: Line 100:
Begin ScriptEffectUpdate
Begin ScriptEffectUpdate


     if timer > 30     ;Creature is dead and fade timer passed
     if ( timer > 30 )    ;Creature is dead and fade timer passed
         ;Move our creature back to it's holding cell
         ;Move our creature back to it's holding cell
         SUMN.kill
         SUMN.kill
Line 111: Line 111:


     ;Adjust timer state for early fade/disable upon death
     ;Adjust timer state for early fade/disable upon death
     if SUMN.getdead && timer < 28                 
     if ( SUMN.getdead == 1 ) && ( timer < 28 )                
         set timer to 28
         set timer to 28
     endif
     endif


     if timer > 0.1 && playonce == 0
     if ( timer > 0.1 ) && ( playonce == 0 )
         ;Play effect for creature entrance
         ;Play effect for creature entrance
         SUMN.pms effectSummonMythicDawn 1             
         SUMN.pms effectSummonMythicDawn 1             
Line 122: Line 122:


     ;Increment timer
     ;Increment timer
     set timer to timer + ScriptEffectElapsedSeconds        
     set timer to timer + GetSecondsPassed        


     if timer > 28 && playonce == 1
     if ( timer > 28 ) && ( playonce == 1 )
         ;Play effect for creature exit/death
         ;Play effect for creature exit/death
         SUMN.kill             
         SUMN.kill             
Line 130: Line 130:
     endif
     endif


     if playonce == 2     
     if ( playonce == 2 )    
         ;Fade creature for exit/death                                             
         ;Fade creature for exit/death                                             
         set fade to fade - 0.03
         set fade to fade - 0.03
Anonymous user

Navigation menu