Scripts

TR_m7_ArenaAnnouncer_sc

TR_Mainland.esm
Variables 10
Local Variables
TR_Map
duelWon
controlD
control
controlQ
doonce
NoLore
T_Local_NPC
T_Local_NoLore
timer
Source
1begin TR_m7_ArenaAnnouncer_sc 2;Declares locals for Eralgor's greetings and handles initial forcegreetings. 3 4short TR_Map 5short duelWon 6short controlD 7short control 8short controlQ 9short doonce 10float timer 11short NoLore 12short T_Local_NPC 13short T_Local_NoLore 14 15if ( MenuMode ) 16 return 17endif 18 19if ( TR_Map != 7 ) 20 set TR_Map to 7 21endif 22 23;Here to stop player avoiding getting kicked out by killing him in an unusual way, he's absolutely necessary for the fights to work properly. 24if ( ondeath ) 25 if ( getjournalindex TR_m7_ns_Arena_01 >= 10 ) 26 if ( PCExpelled == 0 ) 27 PCExpell "TR_Fact_NarsisArena" 28 endif 29 endif 30endif 31 32if ( TR_m7_Ns_ArenaDuelBegun == 0 ) 33 return 34endif 35 36;For "wrong door" line 37if ( cellchanged ) 38 set doonce to 0 39endif 40 41if ( doonce == 0 ) 42 if ( TR_m7_Ns_ArenaCorrectDoor == 0 ) 43 set doonce to 1 44 forcegreeting 45 endif 46endif 47 48;Delay for the intro announcements 49if ( TR_m7_Ns_ArenaCorrectDoor == 1 ) 50 set timer to ( timer + getsecondspassed ) 51 if ( timer >= 1 ) 52 forcegreeting 53 set timer to 0 54 endif 55endif 56 57end