Scripts

TR_m7_Ralvam_Turil_sc

TR_Mainland.esm
Variables 8
Local Variables
TR_Map
NoLore
control
controlQ
controlD
controlA
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m7_Ralvam_Turil_sc 2;Similar to the other non-lethal with additional GetHealthGetRatio to test if you convincingly threw the fight. 3 4short TR_Map 5short NoLore 6short control 7short controlQ 8short controlD 9short controlA 10short T_Local_NPC 11short T_Local_NoLore 12 13if ( TR_Map != 7 ) 14 set TR_Map to 7 15endif 16 17if ( ondeath ) 18 if ( controlD ) 19 Set TR_m7_Ns_ArenaDuelActive to 0 20 Set TR_m7_Ns_ArenaDuelManager.duelWon to -1 21 Set controlA to 1 22 Set "TR_m7_Eralgor".controlD to 1 23 "TR_m7_Eralgor"->forcegreeting 24 return 25 elseif ( GetPCCell "Narsis, Arena: Pit" == 1 ) 26 set TR_m7_Ns_ArenaCurrentDuel to 0 27 set TR_m7_Ns_ArenaDuelBegun to 0 28 set TR_m7_Ns_ArenaCorrectDoor to 0 29 Set TR_m7_Ns_ArenaDuelActive to 0 30 Set TR_m7_Ns_ArenaDuelManager.duelWon to -1 31 Set controlA to 1 32 Set "TR_m7_Eralgor".controlD to 1 33 "TR_m7_Eralgor"->forcegreeting 34 return 35 endif 36endif 37 38if ( controlD == 0 ) 39 return 40endif 41 42if ( getjournalindex TR_m7_Ns_Arena_11 == 20 ) 43 if ( GetHealthGetRatio <= 0.20 ) 44 set TR_m7_Ns_ArenaDuelActive to 0 45 set TR_m7_Ns_ArenaDuelManager.duelwon to 1 46 set TR_m7_Eralgor.duelwon to 1 47 SetFight 20 48 StopCombat 49 TR_m7_Eralgor->ForceGreeting 50 return 51 elseif ( player->GetHealthGetRatio <= 0.20 ) 52 set TR_m7_Ns_ArenaDuelActive to 0 53 set TR_m7_Ns_ArenaDuelManager.duelwon to -1 54 set TR_m7_Eralgor.duelwon to 2 55 SetFight 20 56 StopCombat 57 TR_m7_Eralgor->ForceGreeting 58 return 59 endif 60endif 61 62if ( getjournalindex TR_m7_Ns_Arena_11 == 25 ) 63 if ( gethealthgetratio <= 0.20 ) 64 set TR_m7_Ns_ArenaDuelActive to 0 65 set TR_m7_Ns_ArenaDuelManager.duelwon to 1 66 set TR_m7_Eralgor.duelwon to 1 67 SetFight 20 68 StopCombat 69 TR_m7_Eralgor->ForceGreeting 70 return 71 elseif ( player->gethealthgetratio <= 0.20 ) 72 if ( gethealthgetratio <= 0.55 ) 73 set TR_m7_Ns_ArenaDuelActive to 0 74 set TR_m7_Ns_ArenaDuelManager.duelwon to -1 75 set TR_m7_Eralgor.duelwon to 2 76 SetFight 20 77 StopCombat 78 TR_m7_Eralgor->ForceGreeting 79 return 80 else 81 set TR_m7_Ns_ArenaDuelActive to 0 82 set TR_m7_Ns_ArenaDuelManager.duelwon to -1 83 set TR_m7_Eralgor.duelwon to 3 84 SetFight 20 85 StopCombat 86 TR_m7_Eralgor->ForceGreeting 87 return 88 endif 89 endif 90endif 91 92end