Scripts

dilbornScript

Tribunal.esm
Variables 5
Local Variables
attacked
thrudDead
thugDead
control
nolore
Source
1Begin dilbornScript 2 3short attacked 4short thrudDead 5short thugDead 6short control 7short nolore 8 9 10if ( GetJournalIndex MS_BarbarianBook > 110 ) 11 if ( CellChanged == 1 ) 12 disable 13 return 14 endif 15endif 16 17if ( GetJournalIndex MS_BarbarianBook = 110 ) 18 return 19endif 20 21if ( OnDeath == 1 ) 22 set thrud.dilbornDead to 1 23 "melur savil"->StartCombat Player 24 "alam merys"->StartCombat Player 25endif 26 27if ( GetDeadCount "drathas nerus" == 1 ) 28 if ( GetDeadCount "melur savil" == 1 ) 29 if ( GetDeadCount "alam merys" == 1 ) 30 if ( control < 2 ) 31 set control to 2 32 endif 33 endif 34 endif 35endif 36 37if ( control == 2 ) 38 39 if ( GetJournalIndex MS_BarbarianBook < 1 ) 40 Journal MS_BarbarianBook_B 1 41 "thrud"->disable 42 set control to 3 43 endif 44 45endif 46 47if ( control == 2 ) 48 49 if ( GetDeadCount "thrud" == 1 ) 50 if ( GetDeadCount "dilborn" == 0 ) 51 Journal "MS_BarbarianBook" 140 52 set control to 3 53 endif 54 endif 55 56 if ( GetDeadCount "thrud" == 0 ) 57 if ( GetDeadCount "dilborn" == 1 ) 58 Journal "MS_BarbarianBook" 150 59 set control to 3 60 endif 61 endif 62 63 if ( GetDeadCount "thrud" == 0 ) 64 if ( GetDeadCount "dilborn" == 0 ) 65 Journal "MS_BarbarianBook" 160 66 set control to 3 67 endif 68 endif 69 70 if ( GetDeadCount "thrud" == 1 ) 71 if ( GetDeadCount "dilborn" == 1 ) 72 Journal "MS_BarbarianBookC" 1 73 set control to 3 74 endif 75 endif 76 77endif 78 79if ( control == 3 ) 80 if ( GetJournalIndex MS_BarbarianBook < 1 ) 81 if ( CellChanged == 1 ) 82 disable 83 set control to 4 84 endif 85 endif 86endif 87 88End