Johnson047 Posted September 10, 2015 Share Posted September 10, 2015 (edited) Hi all, I want to ask, how to merge 2 or more Custom Mission in 1 *.cm file? Because i want to make a Mission Mod Series but I dont know how to merge it in 1 *.cm file. Can someone help me? This is a example 1st Mission Script : {$CLEO .cm} :1stMissionScript_1 thread "MISSION1" gosub @1stMissionScript_Main_1 wait 0 if wasted_or_busted else_jump @1stMissionScript_End_1 gosub @1stMissionScript_Fail_1 :1stMissionScript_End_1 gosub @1stMissionScript_Clep_1 end_thread :1stMissionScript_Main_1 increment_mission_attempts $ONMISSION = 1 054C: use_GXT_table 'MENU2P' 00BC: show_text_highpriority GXT 'MENU_18' time 5000 flag 1 :1stMissionScript_2 wait 0 if and 02D8: actor $PLAYER_ACTOR current_weapon == 28 00E1: player 0 pressed_key 17 else_jump @1stMissionScript_2 :1stMission_Pass_1 00BA: show_text_styled GXT "M_PASS" time 5000 style 1 return :1stMission_Fail_1 00BA: show_text_styled GXT "M_FAIL" time 5000 style 1 return :1stMission_Clep_1 $ONMISSION = 0 mission_cleanup return This is a example 2nd Mission Script : {$CLEO .cm} :2ndMissionScript_1 thread "MISSION1" gosub @2ndMissionScript_Main_1 wait 0 if wasted_or_busted else_jump @2ndMissionScript_End_1 gosub @2ndMissionScript_Fail_1 :2ndMissionScript_End_1 gosub @2ndMissionScript_Clep_1 end_thread :2ndMissionScript_Main_1 increment_mission_attempts $ONMISSION = 1 054C: use_GXT_table 'MENU2P' 00BC: show_text_highpriority GXT 'MENU_18' time 5000 flag 1 :2ndMissionScript_2 wait 0 if and 02D8: actor $PLAYER_ACTOR current_weapon == 30 00E1: player 0 pressed_key 17 else_jump @2ndMissionScript_2 :2ndMission_Pass_1 00BA: show_text_styled GXT "M_PASS" time 5000 style 1 return :2ndMission_Fail_1 00BA: show_text_styled GXT "M_FAIL" time 5000 style 1 return :2ndMission_Clep_1 $ONMISSION = 0 mission_cleanup return Can someone help me to merge 2 or more Custom Mission Mod in 1 cm file? Sorry for my bad English Sincerely, Johnson047 Edited September 10, 2015 by Johnson047 Link to comment Share on other sites More sharing options...
ZAZ Posted September 10, 2015 Share Posted September 10, 2015 (edited) Use opcodes 0AB3: and 0AB4: to submit selection from mission starter script to mission script example for mission starter script: (var 12 is used) {$CLEO .cs}thread 'MSTART':MissionTrigger_1wait 0if0256: player $PLAYER_CHAR definedjf @MissionTrigger_1if$ONMISSION == 0jf @MissionTrigger_1if00FF: actor $PLAYER_ACTOR 1 near_point_3d_on_foot 354.982 2442.75 16.1 radius 2.0 2.0 2.0jf @MissionTrigger_30AB3: var 12 = 0// <<<---------------- set value of special cleo global var to select first mission !!!!!!!!!!!!!!!0A94: start_custom_mission "CustomMission"$ONMISSION = 1jump @MissionTrigger_1:MissionTrigger_3if00FF: actor $PLAYER_ACTOR 1 near_point_3d_on_foot 454.982 2442.75 16.1 radius 2.0 2.0 2.0jf @MissionTrigger_10AB3: var 12 = 1// <<<---------------- set value of special cleo global var to select second mission !!!!!!!!!!!!!!!0A94: start_custom_mission "CustomMission"$ONMISSION = 1jump @MissionTrigger_1then do a check for var 12 at the beginning of the mission scriptfirst submit the content of var 12 to a local var, then check the content of the local var {$CLEO .cm}0AB4: [email protected] = var [email protected] == 0jf @2ndMissionScript_1jump @1stMissionScript_1:1stMissionScript_1thread "MISSION1"gosub @1stMissionScript_Main_1........:2ndMissionScript_1thread "MISSION2" Edited September 10, 2015 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Seemann Posted September 10, 2015 Share Posted September 10, 2015 (edited) You don't need that. Say, if your missions series would consist of 10 missions, you're going to merge them all into a single file? Much better is to run the second mission when the first one is complete using the start_custom_mission opcode. You need a script that controls which missions are passed and runs the next one. all right, ZAZ was faster Edited September 10, 2015 by Seemann ILOVEFOOTBALL95 1 Sanny Builder 3 • SA Memory Handling • OpenIV • gtamodding.com CLEO.li - The CLEO Library - Official site 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