Scripts

vivecArenaScript

Morrowind.esm
Source
1Begin vivecArenaScript 2 3if ( CellChanged == 0 ) 4 return 5endif 6 7if ( DuelActive == 1 ) 8 return 9endif 10 11if ( GetJournalIndex B5_VenimHort == 30 ) 12 if ( GetDeadCount "bolvyn venim" == 0 ) 13 "bolvyn venim"->PositionCell 1 1 -325 270 "Vivec, Arena Pit" 14 "bolvyn venim"->SetFight 100 15 "bolvyn venim"->StartCombat Player 16 "bolvyn venim"->SetDisposition 10 17 Set DuelActive to 1 18 return 19 endif 20endif 21 22if ( GetJournalIndex HR_Archmaster == 50 ) 23 if ( GetDeadCount "bolvyn venim" == 0 ) 24 "bolvyn venim"->PositionCell 1 1 -325 270 "Vivec, Arena Pit" 25 "bolvyn venim"->SetFight 100 26 "bolvyn venim"->StartCombat Player 27 "bolvyn venim"->SetDisposition 10 28 Set DuelActive to 1 29 return 30 endif 31endif 32 33if ( GetJournalIndex MG_Guildmaster == 50 ) 34 if ( GetDeadCount "trebonius artorius" == 0 ) 35 "trebonius artorius"->PositionCell 1 1 -325 270 "Vivec, Arena Pit" 36 "trebonius artorius"->SetFight 100 37 "trebonius artorius"->StartCombat Player 38 "trebonius artorius"->SetDisposition 10 39 Set DuelActive to 1 40 return 41 endif 42endif 43 44if ( GetJournalIndex IL_Grandmaster == 10 ) 45 if ( GetDeadCount "Varus Vatinius" == 0 ) 46 "Varus Vatinius"->PositionCell 1 1 -325 270 "Vivec, Arena Pit" 47 "Varus Vatinius"->SetFight 100 48 "Varus Vatinius"->StartCombat Player 49 "Varus Vatinius"->SetDisposition 10 50 Set DuelActive to 1 51 return 52 endif 53endif 54 55if ( GetJournalIndex HR_CowardDisgrace == 50 ) 56 if ( GetDeadCount "Rothis Nethan" == 0 ) 57 if ( GetDeadCount "Brethas Deras" == 0 ) 58 "Rothis Nethan"->PositionCell 840 1 -325 270 "Vivec, Arena Pit" 59 "Brethas Deras"->PositionCell -840 1 -325 270 "Vivec, Arena Pit" 60 "Rothis Nethan"->StartCombat "Brethas Deras" 61 Set DuelActive to 1 62 return 63 endif 64 endif 65endif 66 67if ( GetJournalIndex HH_BeroSupport == 50 ) 68 if ( GetDeadCount "Garding" == 0 ) 69 "Garding"->PositionCell 1 1 -325 270 "Vivec, Arena Pit" 70 "Garding"->SetFight 100 71 "Garding"->StartCombat Player 72 "Garding"->SetDisposition 10 73 Set DuelActive to 1 74 return 75 endif 76endif 77 78;if you get all the way to the end, set duelActive to zero... 79;just in case one of the local scripts does not work, etc. 80 81Set DuelActive to 0 82 83;on hidden ring under arena. Works on CellChanged 84;positioncells the "next" NPC to the Arena 85;only one at a time. 86;must kill them, leave, and return to get next opponent. 87;DuelActive is a GLOBAL which prevents multiple "PositioCells" and 88;multiple duels, etc. Also speed, since Vivec, Arena is kinda slow 89;repeat this model for all arena duels. 90 91End