Scripts

TR_m4_NPC_AlomonJuspethe

TR_Mainland.esm
Variables 11
Local Variables
TR_Map
control
controlQ
alomonRoll
winState
playerWins
alomonWins
playerTGRank
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_AlomonJuspethe 2 3; Script on NPC TR_m4_alomon_juspethe (Alomon Juspethe, also known 4; as Arnie the Scrib) for quest TR_m4_T_Nuccius_Wager and probably others. 5 6; Notice the related global variable TR_m4_T_Nuccius_Alomon_Status. 7; It is 0 when Alomon is in the basement of the Teyn tradehouse. 8; It is < 1000 when Alomon is still in Teyn. 9; Quoting Why: 10; ; yeah, it's a dummy var that's supposed to disable the interactions with Alomon 11; ; just in case Rats needs the guy for his TG plans 12; ; I figured I wouldn't hog Arnie the Scrib and block later designs with the guy 13; ; the global can probably be replaced with a journal entry for whatever relevant 14; ; quest involves the guy in the future, but this was my stopgap solution to keeping 15; ; his involvement flexible 16 17short TR_Map 18short control 19short controlQ 20short alomonRoll 21short winState 22short playerWins 23short alomonWins 24short playerTGRank 25short NoLore 26short T_Local_NPC 27short T_Local_NoLore 28 29; Note to questmakers: 30 31; if this NPC is moved out of Teyn, Cirifae's Tradehouse: 32; Set TR_m4_T_Nuccius_Alomon_Status to 1. 33; If he is moved out of Teyn: 34; Set TR_m4_T_Nuccius_Alomon_Status to 1000. 35 36if ( CellChanged == 1 ) 37 set playerTGRank to ( GetPCRank "Thieves Guild" ) 38endif 39 40if ( OnDeath ) 41 ; vanilla integration quest 42 if ( GetJournalIndex TR_m0_TongueToad >= 10 ) 43 if ( GetJournalIndex TR_m0_TongueToad < 100 ) 44 Journal TR_m0_TongueToad 200 45 endif 46 endif 47endif 48 49if ( TR_Map == 4 ) 50 return 51endif 52 53set TR_Map to 4 54 55End