Scripts

TR_m2_q_22_CursedShieldEx_sc

TR_Mainland.esm
Variables 3
Local Variables
state
calacirenState
timer
Source
1Begin TR_m2_q_22_CursedShieldEx_sc 2 3short state 4short calacirenState 5float timer 6 7if ( CellChanged ) 8 if ( calacirenState == 0 ) 9 if ( GetJournalIndex TR_m2_IC_Haunting == 80 ) 10 TR_m2_Calaciren->enable 11 if ( GetDeadCount "TR_m2_Tiunia Veltrus" == 0 ) 12 "TR_m2_Tiunia Veltrus"->disable 13 endif 14 set calacirenState to 1 15 endif 16 endif 17endif 18 19if ( state == 5 ) 20 return 21endif 22 23if ( OnActivate ) 24endif 25 26if ( GetDisabled ) 27 if ( GetJournalIndex TR_m2_IC_Haunting == 40 ) 28 enable 29 TR_m2_q_22_IgnoreMarker->enable 30 set state to 2 31 endif 32endif 33 34if ( state == 0 ) 35 set state to 1 36 TR_m2_Calaciren->disable 37 disable 38 TR_m2_q_22_IgnoreMarker->disable 39endif 40 41if ( MenuMode ) 42 return 43endif 44 45if ( state == 2 ) 46 "TR_m2_Cantorius Tramel"->Cast TR_m2_q_22_Effects TR_m2_q_22_IgnoreMarker 47 set state to 3 48elseif ( state == 3 ) 49 set timer to ( timer + GetSecondsPassed ) 50 if ( timer > 2 ) 51 TR_m2_q_22_IgnoreMarker->disable 52 cast TR_m2_q_22_Effects "TR_m2_Cantorius Tramel" 53 set state to 4 54 set timer to 0 55 endif 56elseif ( state == 4 ) 57 set timer to ( timer + GetSecondsPassed ) 58 if ( timer > 1 ) 59 PlaceAtMe TR_m2_q_22_CursedShieldEx2 1 0 0 60 disable 61 Journal TR_m2_IC_Haunting 50 62 set state to 5 63 endif 64endif 65 66End