Scripts

TR_m3_NPC_GovalThadus

TR_Mainland.esm
Variables 9
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
doOnce
moveDoOnce
Healable
Source
1Begin TR_m3_NPC_GovalThadus 2 3short TR_Map 4short control 5short controlQ 6short NoLore 7short T_Local_NPC 8short T_Local_NoLore 9short doOnce 10short moveDoOnce 11short Healable 12 13if ( doOnce == 0 ) 14 ModCurrentHealth -50 15 Set doOnce to 1 16endif 17 18if ( GetJournalIndex "TR_m3_Do_Delivery" < 45 ) 19 ; The check for "Healable" is making sure that he is 20 ; being healed by a deliberate spell rather than just 21 ; by resting. If you build any additional ways of 22 ; healing him, make sure you're also setting Healable 23 ; to 1. 24 if ( Healable == 0 ) 25 if ( GetEffect sEffectRestoreHealth == 1 ) 26 set Healable to 1 27 elseif ( GetHealth >= 22 ) 28 ModCurrentHealth -10 29 endif 30 elseif ( GetHealth > 30 ) 31 Journal "TR_m3_Do_Delivery" 45 32 endif 33endif 34 35set TR_Map to 3 36 37End