Scripts

TR_m7_NPC_Marcel_Halomie_sc

TR_Mainland.esm
Variables 6
Local Variables
NoLore
T_Local_NPC
T_Local_NoLore
TR_Map
control
controlQ
Source
1Begin TR_m7_NPC_Marcel_Halomie_sc 2 3short NoLore 4short T_Local_NPC 5short T_Local_NoLore 6short TR_Map 7short control 8short controlQ 9 10if ( CellChanged ) 11 if ( control < 5 ) 12 set control to 0 13 PositionCell 60751 -418505 2863 0 "Narsis, Foreign Quarter" ; returns to his original position 14 endif 15endif 16 17if ( MenuMode ) 18 return 19endif 20 21if ( OnActivate ) 22 if ( control < 5 ) 23 return 24 else 25 Activate 26 endif 27endif 28 29if ( control == 0 ) ; this sequence is how Marcel Halomie jumps off the roof. 30 if ( GetDistance Player < 1000 ) 31 set control to 1 32 endif 33elseif ( control == 1 ) 34 cast "TR_m7_LongJumpSpell" "TR_m7_Salira Proculla" 35 if ( GetSpellEffects "TR_m7_LongJumpSpell" == 1 ) 36 set control to 2 37 endif 38elseif ( control == 2 ) 39 ForceRun 40 AITravel 60751 -418021 2875 ; TR_m7_MARK_Ns_Marcel 41 set control to 3 42elseif ( control == 3 ) 43 if ( GetDistance TR_m7_Nars_LongJumpAct < 50 ) 44 ClearForceRun 45 if ( GetForceRun == 0 ) 46 ForceMoveJump 47 player->Say "Vo\b\m\Hit_BM009.mp3" "Aaghph!" 48 set control to 4 49 endif 50 endif 51elseif ( control == 4 ) 52 ClearForceMoveJump 53 set control to 5 54elseif ( control == 5 ) 55 if ( OnDeath ) 56 set control to 6 57 else 58 if ( GetDistance player > 4900 ) 59 if ( GetEffect sEffectSlowfall ) 60 positioncell 74683 -406166 5691 2400 "Shipal-Shin Region" ; TR_m7_MARK_Ns_Marcel 61 SetHello 30 62 AIWander 128 0 0 60 30 10 0 0 0 0 0 0 63 set controlQ to 1 64 else 65 Disable 66 endif 67 set control to 6 68 endif 69 endif 70endif 71 72if ( controlQ == 2 ) 73 set "TR_m7_D_Marcel Halomie".control to 1 74 if ( GetDistance player > 7100 ) 75 disable 76 endif 77endif 78 79if ( TR_map ) 80 return 81endif 82 83set TR_map to 7 84 85end