Scripts

TR_m1_FG1_Egg1Script

TR_Mainland.esm
Variables 8
Local Variables
SpeakOnce
control
controlQ
moneygave
TR_Map
T_Local_NPC
nolore
timer
Source
1Begin TR_m1_FG1_Egg1Script 2 3; Script on NPC TR_m1_Ademnal_Lleryn for quest "TR_m1_FG_Egg". 4 5short SpeakOnce 6short control 7short controlQ 8short moneygave 9float timer 10short TR_Map 11short T_Local_NPC 12short nolore 13 14if ( CellChanged ) 15 If ( GetJournalIndex "TR_m1_FG_Egg" < 20 ) 16 if ( GetDisabled == 0 ) 17 Disable 18 endif 19 return 20 Elseif ( GetjournalIndex "TR_m1_FG_Egg" >= 70 ) 21 if ( GetDisabled == 0 ) 22 Disable 23 endif 24 return 25 Elseif ( GetDisabled ) 26 Enable 27 Endif 28endif 29 30if ( GetDisabled ) 31 return 32endif 33 34If ( control == 0 ) 35 If ( GetHealth <= 0 ) 36 Journal "TR_m1_FG_Egg" 50 37 TR_m1_Mervis_Ravalen->StopCombat 38 TR_m1_Mervis_Ravalen->SetFight 0 39 set control to 1 40 elseif ( onDeath == 1 ) 41 Journal "TR_m1_FG_Egg" 50 42 TR_m1_Mervis_Ravalen->StopCombat 43 TR_m1_Mervis_Ravalen->SetFight 0 44 set control to 1 45 Endif 46Endif 47 48If ( controlQ == 1 ) 49 If ( GetHealth < 30 ) 50 Set controlQ to 2 51 ForceGreeting 52 elseif ( TR_m1_Mervis_Ravalen->gethealth < 40 ) 53 set controlQ to 2 54 forcegreeting 55 endif 56Endif 57 58 59if ( TR_Map ) 60 return 61endif 62 63set TR_Map to 1 64 65End