Scripts

TR_m3_q_Kha_teleport_amulet_sc

TR_Mainland.esm
Variables 4
Local Variables
OnPCEquip
state
button
doOnce
Source
1Begin TR_m3_q_Kha_teleport_amulet_sc 2 3short OnPCEquip 4short state 5short button 6short doOnce ;only once! 7 8if ( doOnce == 1 ) 9 Return 10endif 11 12if ( state == 1 ) 13 set button to GetButtonPressed 14 if ( button == 0 ) 15 set state to 0 16 PlaySound "mysticism hit" 17 player->PositionCell 8323.804 13655.900 13057.146 0.0 "Hadrumnibibi, Shrine" ;TR_m3_MARK_Kha_ForsBetr 18 set doOnce to 1 19 return 20 elseif ( button == 1 ) 21 set state to 0 22 endif 23endif 24 25if ( OnPCEquip ) 26 if ( GetPCCell "Khalaan" == 1 ) 27 MessageBox "Do you want to return to Tamriel?" "Yes" "No" 28 set state to 1 29 elseif ( GetPCCell "Vorthas Uldun" == 1 ) 30 MessageBox "Do you want to return to Tamriel?" "Yes" "No" 31 set state to 1 32 endif 33 set OnPCEquip to 0 34endif 35 36End