Scripts

almaScript

Tribunal.esm
Variables 5
Local Variables
doOnce
OnPCHitMe
talking
randgreet
dontgreet
Source
1Begin almaScript 2 3short doOnce 4short OnPCHitMe 5short talking 6short randgreet 7short dontgreet 8 9if ( GetDisabled == 0 ) 10 if ( GetJournalIndex TR_MazedBand < 90 ) 11 Disable 12 elseif ( GetJournalIndex TR_SothaSil >= 70 ) 13 Disable 14 endif 15endif 16 17 18if ( OnPCHitMe == 1 ) 19 StartCombat Player 20 "sadas mavandes"->StartCombat Player 21 "savor hlan"->StartCombat Player 22 "vonos veri"->StartCombat Player 23 "arnas therethi"->StartCombat Player 24 "drals indobar"->StartCombat Player 25 StartCombat Player 26 Set OnPCHitMe to 0 27 set talking to -1 28endif 29 30 31if ( talking == -1 ) 32 return 33endif 34 35if ( GetDisabled == 1 ) 36 return 37endif 38 39if ( GetDistance Player <= 256 ) 40 if ( dontgreet == 0 ) 41 set randgreet to Random 100 42 if ( randgreet <= 33 ) 43 Say "Vo\Misc\tr_almgreet1.mp3" "Many Blessings upon you, my loyal servant." 44 set dontgreet to 1 45 elseif ( randgreet <= 66 ) 46 Say "Vo\Misc\tr_almgreet2.mp3" "Come. Bathe in the light of My Mercy." 47 set dontgreet to 1 48 elseif ( randgreet <= 100 ) 49 Say "Vo\Misc\tr_almgreet3.mp3" "What may I do for you, my child?" 50 set dontgreet to 1 51 endif 52 endif 53else 54 if ( dontgreet == 1 ) 55 set dontgreet to 0 56 endif 57endif 58 59 60 61End almaScript