jefe323 Posted January 19, 2009 Share Posted January 19, 2009 the CTD happens once I select a city to go to. The load menu appears, goes to the end and the crash hits. Any help would be appreciated! scn MTSspaceTokenScript short choosingshort choice begin onAdd set choosing to -1 end begin GameMode if ( choosing == 0 ) ;AKA not working elseif ( choosing == -1 ) MessageBox "Where would you like to go?" "A City" "One of my Houses" "One of my Markers" "Cancel" set choosing to 1 set choice to -1 elseif ( choosing == 1 ) if ( choice == -1 ) ;no choice yet set choice to getButtonPressed elseif ( choice == 0 ) ;A City set choosing to -11 elseif ( choice == 1 ) ;One of my Houses set choosing to -12 elseif ( choice == 2 ) ;One of my Markers set choosing to -13 elseif ( choice == 3 ) ;Cancel set choosing to 0 ;closes menu player.moveTo MSTspaceMarker endif elseif ( choosing == -11 ) MessageBox "Which city would you like to go to?" "Imperial City" "Anvil" "Bravil" "Bruma" "Cheydinhal" "Chorrol" "Kvatch" "Skingrad" "Cancel" set choosing to 11 elseif ( choosing == 11 ) if ( choice == -1 ) set choice to getButtonPressed elseif ( choice == 0 ) player.movetoMarker ICStablesMapMarker ;set choosing to 0 elseif ( choice == 1 ) player.movetoMarker MTSanvilMarker ;set choosing to 0 elseif ( choice == 2 ) player.movetoMarker MTSbravilMarker ;set choosing to 0 elseif ( choice == 3 ) player.movetoMarker MTSbrumaMarker ;set choosing to 0 elseif ( choice == 4 ) player.movetoMarker MTScheydinhalMarker ;set choosing to 0 elseif ( choice == 5 ) player.movetoMarker MTSchorrolMarker ;set choosing to 0 elseif ( choice == 6 ) player.movetoMarker MTSkvatchMarker ;set choosing to 0 elseif ( choice == 7 ) player.movetoMarker MTSskingradMarker ;set choosing to 0 elseif ( choice == 8 ) set choosing to -1 ;returns to main menu endif elseif ( choosing == -12 ) messageBox "Which house would you like to go to?" "Imperial City" "Anvil" "Bravil" "Bruma" "Cheydinhal" "Chorrol" "Skingrad" "Cancel" set choosing to 12 elseif ( choosing == 12 ) if ( choice == -1 ) set choice to getButtonPressed elseif ( choice == 0 ) ;go to imperial city set choosing to 0 elseif ( choice == 1 ) ;go to anvil set choosing to 0 elseif ( choice == 2 ) ;go to bravil set choosing to 0 elseif ( choice == 3 ) ;go to bruma set choosing to 0 elseif ( choice == 4 ) ;go to cheydinhal set choosing to 0 elseif ( choice == 5 ) ;go to chorral set choosing to 0 elseif ( choice == 6 ) ;go to skingrad set choosing to 0 elseif ( choice == 7 ) set choosing to -1 ;returns to main menu endif elseif ( choosing == -13 ) messageBox "Which marker would you like to travel to?" "Marker 1" "Marker 2" "Marker 3" "Marker 4" "Marker 5" "Cancel" set choosing to 13 elseif ( choosing == 13 ) if ( choice == -1 ) set choice to getButtonPressed elseif ( choice == 0 ) ;MARKER 1 if ( MTSmarker1.GetInCell MSTmarkerCell == 1 ) message "Marker 1 not set yet!" set choosing to -1 elseif ( MTSmarker1.GetInCell MSTmarkerCell == 0 ) player.moveto MTSmarker1 endif elseif ( choice == 1 ) ;MARKER 2 if ( MTSmarker2.GetInCell MSTmarkerCell == 1 ) message "Marker 2 not set yet!" set choosing to -1 elseif ( MTSmarker2.GetInCell MSTmarkerCell == 0 ) player.moveto MTSmarker2 endif elseif ( choice == 2 ) ;MARKER 3 if ( MTSmarker3.GetInCell MSTmarkerCell == 1 ) message "Marker 3 not set yet!" set choosing to -1 elseif ( MTSmarker3.GetInCell MSTmarkerCell == 0 ) player.moveto MTSmarker3 endif elseif ( choice == 3 ) ;MARKER 4 if ( MTSmarker4.GetInCell MSTmarkerCell == 1 ) message "Marker 4 not set yet!" set choosing to -1 elseif ( MTSmarker4.GetInCell MSTmarkerCell == 0 ) player.moveto MTSmarker4 endif elseif ( choice == 4 ) ;MARKER 5 if ( MTSmarker5.GetInCell MSTmarkerCell == 1 ) message "Marker 5 not set yet!" set choosing to -1 elseif ( MTSmarker5.GetInCell MSTmarkerCell == 0 ) player.moveto MTSmarker5 endif elseif ( choice == 5 ) ;CANCEL set choosing to -1 ;returns to main menu endif endifendif if ( player.getInCell MTSspaceCell == 0 ) RemoveMe ;acts like a returnendif end Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.