sirusxxxx Posted February 18, 2010 Share Posted February 18, 2010 Hello, I was just wondering when using this randomizing wheels codes below can I write a code to exclude randomizing a specific wheel number? Or do I have to write this code for each sequence of wheels I want to include to be randomized? 0209: [email protected] = random_int 1073 1098if [email protected] > 1085 1096 > [email protected] jf @TuneP_3 [email protected] = 1025 As well when randomizing paint jobs can I randomize which primiary and secondary colors are used? And if so anyone know the code lines to do that> 0209: [email protected] = random_int 0 206ED: set_car [email protected] paintjob [email protected] Any insight or help is greatly appeciated thanks. Link to comment Share on other sites More sharing options...
ZAZ Posted February 18, 2010 Share Posted February 18, 2010 Hello,I was just wondering when using this randomizing wheels codes below can I write a code to exclude randomizing a specific wheel number? Or do I have to write this code for each sequence of wheels I want to include to be randomized? 0209: [email protected] = random_int 1073 1098if [email protected] > 1085 1096 > [email protected] jf @TuneP_3 [email protected] = 1025 As well when randomizing paint jobs can I randomize which primiary and secondary colors are used? And if so anyone know the code lines to do that> 0209: [email protected] = random_int 0 206ED: set_car [email protected] paintjob [email protected] Any insight or help is greatly appeciated thanks. At first: post a list of existing wheel ID numbers and a list of working color numbers then explain if you either want select some IDs to have a groupe for randomizing or if you wanna breake the randomizing to choose a specific or other method, some IDs should be choosen more times then others which number should specific? CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
sirusxxxx Posted February 20, 2010 Author Share Posted February 20, 2010 In the wheel randomizing code I want to remove wheel ID 1025 from the check engine - Can I use wheel ID 1082 in the check engine? - Do I have to remove wheel ID 1082 from randomizing to avoid conflicts or crashes? - Or will it be easier to just change the wheel textures in gta.img from 1025 to 1082? 0209: [email protected] = random_int 1073 1098if [email protected] > 1085 1096 > [email protected] [email protected] > 1082 > [email protected] jf @TuneP_3 [email protected] = 1082 I want the cars to spawn all the colors randomly that will not cause problems to the game, but I dont think my code is right: 0209: [email protected] = random_int 0 125if [email protected] > 1 10 > [email protected] jf @TuneP_3 [email protected] = 00229: set_car [email protected] primary_color_to [email protected] Link to comment Share on other sites More sharing options...
ZAZ Posted February 20, 2010 Share Posted February 20, 2010 In the wheel randomizing code I want to remove wheel ID 1025 from the check engine the ID numbers for randomizing 1073, wheel_sr6, vehicle, 100, 2097152 1074, wheel_sr3, vehicle, 100, 2097152 1075, wheel_sr2, vehicle, 100, 2097152 1076, wheel_lr4, vehicle, 100, 2097152 1077, wheel_lr1, vehicle, 100, 2097152 1078, wheel_lr3, vehicle, 100, 2097152 1079, wheel_sr1, vehicle, 100, 2097152 1080, wheel_sr5, vehicle, 100, 2097152 1081, wheel_sr4, vehicle, 100, 2097152 1082, wheel_gn1, vehicle, 100, 2097152 1083, wheel_lr2, vehicle, 100, 2097152 1084, wheel_lr5, vehicle, 100, 2097152 1085, wheel_gn2, vehicle, 100, 2097152 //-- no wheel--1086, stereo, vehicle, 100, 0 //-- no wheel--1087, hydralics, vehicle, 100, 0 //-- no wheel--1088, rf_a_u, uranus, 100, 2098180 //-- no wheel--1089, exh_c_u, uranus, 100, 2097152 //-- no wheel--1090, wg_l_a_u, uranus, 100, 2097152 //-- no wheel--1091, rf_c_u, uranus, 100, 2097156 //-- no wheel--1092, exh_a_u, uranus, 100, 2097152 //-- no wheel--1093, wg_l_c_u, uranus, 100, 2097152 //-- no wheel--1094, wg_r_a_u, uranus, 100, 2097152 //-- no wheel--1095, wg_r_c_u, uranus, 100, 2097152 1096, wheel_gn3, vehicle, 100, 2097152 1097, wheel_gn4, vehicle, 100, 2097152 1098, wheel_gn5, vehicle, 100, 2097152 one posible method: 0209: [email protected] = random_int 1073 1098if and0019: [email protected] > 1085 // integer values001B: 1096 > [email protected] // integer values004D: jump_if_false @Wheels_160209: [email protected] = random_int 1073 1085 - Can I use wheel ID 1082 in the check engine? you mean this method 0209: [email protected] = random_int 1073 1098if and0019: [email protected] > 1085 // integer values001B: 1096 > [email protected] // integer values004D: jump_if_false @[email protected] = 1082 yes, why not - Do I have to remove wheel ID 1082 from randomizing to avoid conflicts or crashes?- Or will it be easier to just change the wheel textures in gta.img from 1025 to 1082? whats the problem with 1082? 0209: [email protected] = random_int 1073 1098if [email protected] > 1085 1096 > [email protected] [email protected] > 1082 > [email protected] jf @TuneP_3 [email protected] = 1082 [email protected] > 1082 > [email protected] is not possible I want the cars to spawn all the colors randomly that will not cause problems to the game, but I dont think my code is right: And I don't know if every number between 0 and 125 will be a valid color number Therefor I said: post a list of working color numbers 0209: [email protected] = random_int 0 125if [email protected] > 1 10 > [email protected] jf @TuneP_3 [email protected] = 00229: set_car [email protected] primary_color_to [email protected] CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
sirusxxxx Posted February 20, 2010 Author Share Posted February 20, 2010 Thanks ZAZ once again you are a coding master and I can work with the scripts you posted thanks Link to comment Share on other sites More sharing options...