Scripts

TR_m3_Casik_scr

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
timer
Source
1Begin TR_m3_Casik_scr 2 3 ; This script is for General Casik's normal behavior. 4 ; If he's alive, he'll use a generic Tamriel Rebuilt script. 5 ; If he's dead, his body will revert to a Dremora, and the player will get a journal entry. 6 7short TR_Map 8short control 9short controlQ 10float timer 11short NoLore 12short T_Local_NPC 13short T_Local_NoLore 14 15;backup if player one shots Casik. Otherwise Dremora is enabled based on health threshold/dialogue 16if ( OnDeath ) 17 PlaySound3d "conjuration hit" 18 placeatme T_Glb_Var_SummonFX 1 0 0 19 Disable 20 PlaceAtMe TR_m3_OE_Casik_dremora 1 1 1 21endif 22 23if ( CellChanged ) 24 if ( GetJournalIndex TR_m3_IL_Justice == 75 ) 25 if ( GetDisabled == 0 ) 26 Disable 27 PlaceAtMe TR_m3_OE_Casik_dremora 1 1 1 28 endif 29 endif 30endif 31 32if ( GetHealth > 0 ) 33 if ( GetHealthGetRatio <= 0.33 ) 34 if ( controlQ >= 0 ) 35 set controlQ to -1 36 ForceGreeting 37 endif 38 endif 39endif 40 41if ( MenuMode ) 42 return 43endif 44 45if ( controlQ == -2 ) 46 set controlQ to -3 47 PlaySound3d "conjuration hit" 48 placeatme T_Glb_Var_SummonFX 1 0 0 49 Disable 50endif 51 52if ( controlQ == -3 ) 53 set timer to ( timer + GetSecondsPassed ) 54 if ( timer > 0.3 ) 55 PlaceAtMe TR_m3_OE_Casik_dremora 1 1 1 56 set controlQ to -4 57 endif 58endif 59 60if ( TR_Map ) 61 return 62endif 63 64set TR_Map to 3 65 66End