Scripts

TR_m2_q_12_BanditScript

TR_Mainland.esm
Variables 5
Local Variables
BanditD
PlayerAttacked
T_Local_NPC
TR_Map
nolore
Source
1begin TR_m2_q_12_BanditScript 2;q2-12_Misc - Ruin of Strife - Local script, placed on most bandits in Bthangthamuzand 3;Used for making the bandits attack the player when Jeras doublecrosses him, 4;as well as for their dialogue. 5short BanditD ;this is for adding dialogue to the misc. bandits w/o making an entry for each one. 6short PlayerAttacked 7short T_Local_NPC 8short TR_Map 9short nolore 10 11if ( TR_m2_o_Jeras_Ticedo.attackplayer == 1 ) 12 if ( PlayerAttacked == 0 ) 13 StartCombat, Player 14 setfight 100 15 set PlayerAttacked to 1 16 endif 17endif 18 19if ( BanditD == 0 ) 20 set BanditD to 1 21 set TR_Map to 2 22endif 23end