bokiking Posted July 30 Share Posted July 30 I've been trying to delete some missions in main.scm, since they wouldn't work with some custom vehicles that I've been making. I would delete the whole mission script, delete the mission in the "DEFINE MISSION xx AT" section, and fix the numerisation too. But, whenever I try to compile the file, I'm getting the "The definition of external script amount expected but MISSION found." error. I've read the Sunny Builder Help, but still couldn't figure out how to solve the problem. Pls help Thomas Cavendish and D T 1 1 Link to comment Share on other sites More sharing options...
ZAZ Posted July 31 Share Posted July 31 (edited) A really mad way to solve a problem with a car model Deleting a mission in this way corrupts the story line totally "The definition of external script amount expected but MISSION found." means that you have to change the amount of listed mission scripts read here about main.scm and the "DEFINE MISSION xx AT" section A better way to remove a mission is, to replace the mission script with just some codes to complete the mission immediately Example: replace the mission script of Mission 37 // Originally: Reuniting The Families with following code block //-------------Mission 37--------------- // Originally: Reuniting The Families 0318: set_latest_mission_passed 'LA1FIN1' // Reuniting the Families 0629: change_integer_stat 314 to 1 01E3: show_text_1number_styled GXT 'M_PASSR' number 15 time 5000 style 1 // MISSION PASSED!~n~~w~RESPECT + 0998: add_respect 15 0394: play_music 1 0110: clear_player $PLAYER_CHAR wanted_level 030C: progress_made += 1 0008: $LS_FINAL_TOTAL_PASSED_MISSIONS += 1 $ONMISSION = 0 004E: end_thread It give just the required codes to let the game accept that the mission is accomplished and submit the mission name for the savegame Edited August 2 by ZAZ bokiking 1 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now