Scripts

TR_m7_HH_GM_hla_teleamulet_scr

TR_Mainland.esm
Variables 3
Local Variables
button
messageOn
OnPCEquip
Source
1Begin TR_m7_HH_GM_hla_teleamulet_scr 2 3short button 4short messageOn 5short OnPCEquip 6 7if ( OnPCEquip == 1 ) 8 if ( T_Glob_GetTeleportingDisabled ) 9 MessageBox "The amulet's teleportation magic fizzles out." 10 else 11 MessageBox "Would you like to return to Narsis?" "Yes" "No" 12 set messageOn to 1 13 endif 14 Set OnPCEquip to 0 15endif 16 17if ( messageOn == 0 ) 18 return 19endif 20 21set button to GetButtonPressed 22 23if ( button >= 0 ) 24 set messageOn to 0 25endif 26 27; return to Narsis or cancel 28if ( button == 0 ) 29 Player->PositionCell 9044 4500 12102 217 "Narsis, Second Family Manor" ; TR_m7_MARK_HH_TELE 30endif 31 32End