Scripts

TR_m7_UssiranBonelord_sc

TR_Mainland.esm
Variables 3
Local Variables
control
controlQ
OnPCHitMe
Source
1Begin TR_m7_UssiranBonelord_sc 2 3; controlQ states 4; 0 = disabled during daytime 5; 1 = enabled during nighttime 6; 2 = enabled permanently for combat 7; 3 = dead 8 9; control states 10; 0 = vanilla skele summon 11 12short control 13short controlQ 14short OnPCHitMe 15 16if ( OnDeath ) 17 if ( GetJournalIndex "TR_m7_Shin_BornNecro" >= 10 ) 18 if ( GetJournalIndex "TR_m7_Shin_BornNecro" < 100 ) 19 Journal "TR_m7_Shin_BornNecro" 20 20 endif 21 endif 22 set controlQ to 3 23endif 24 25if ( controlQ == 3 ) 26 return 27endif 28 29if ( GetCurrentTime > 4 ) 30 if ( GetCurrentTime < 20 ) 31 if ( GetDisabled ) 32 return 33 else 34 if ( controlQ != 2 ) 35 if ( GetDistance Player <= 3000 ) 36 PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0 37 PlaySound3D "conjuration hit" 38 endif 39 set controlQ to 0 40 disable 41 endif 42 endif 43 endif 44endif 45 46if ( GetCurrentTime >= 20 ) 47 if ( controlQ == 0 ) 48 set controlQ to 1 49 endif 50endif 51 52if ( GetCurrentTime <= 4 ) 53 if ( controlQ == 0 ) 54 set controlQ to 1 55 endif 56endif 57 58if ( OnPCHitMe ) 59 if ( controlQ != 2 ) 60 set controlQ to 2 61 endif 62 set OnPCHitMe to 0 63endif 64 65if ( control == 0 ) 66 if ( GetSpellEffects "summon skeletal minion" ) 67 PlaceAtMe "skeleton" 1 120 0 68 PlaceAtMe "T_Glb_Var_SummonFX" 1 120 0 69 PlaceAtMe "skeleton" 1 120 1 70 PlaceAtMe "T_Glb_Var_SummonFX" 1 120 1 71 PlaceAtMe "bonewalker" 1 120 2 72 PlaceAtMe "T_Glb_Var_SummonFX" 1 120 2 73 PlaceAtMe "bonewalker_greater" 1 120 3 74 PlaceAtMe "T_Glb_Var_SummonFX" 1 120 3 75 PlaySound3D "conjuration hit" 76 if ( controlQ != 2 ) 77 set controlQ to 2 78 endif 79 set control to 1 80 endif 81endif 82 83if ( controlQ == 1 ) 84 if ( GetDisabled ) 85 enable 86 if ( GetDistance Player <= 3000 ) 87 PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0 88 PlaySound3D "conjuration hit" 89 endif 90 endif 91endif 92 93End