caxanga334 / cvreduxmodified

Modified version of ReFlexPoison's custom votes
GNU General Public License v3.0
15 stars 9 forks source link

space string in options #26

Closed HotoCocoaco closed 2 years ago

HotoCocoaco commented 2 years ago

"change to 6v6" { "type" "list" "vote" "0" "ratio" "0.6" "minimum" "0" "multiple" "0" "command" "{OPTION_RESULT}" "options" { "cp_badlands" "exec ugc_6v_standard;sm_map cp_badlands" "cp_granary_pro2" "exec ugc_6v_standard;sm_map cp_granary_pro2" "cp_gullywash_final1" "exec ugc_6v_standard;sm_map cp_gullywash_final1" "cp_metalworks" "exec ugc_6v_standard;sm_map cp_metalworks" "cp_process_final" "exec ugc_6v_standard;sm_map cp_process_final" "cp_reckoner_rc6" "exec ugc_6v_standard;sm_map cp_reckoner_rc6" "cp_snakewater_final1" "exec ugc_6v_standard;sm_map cp_snakewater_final1" "cp_sunshine" "exec ugc_6v_standard;sm_map cp_sunshine" "cp_villa_b18" "exec ugc_6v_standard;sm_map cp_villa_b18" "koth_bagel_rc5" "exec ugc_6v_koth;sm_map koth_bagel_rc5" "koth_product_rc8" "exec ugc_6v_koth;sm_map koth_product_rc8" } } It cannot work. Of course I can just make every option a cfg and exec {OPTION_RESULT}, but I don't want to make that much cfg files. I there a better way of doing this?

HotoCocoaco commented 2 years ago

Solved with stupid idea: "command" "exec {OPTION_RESULT};sm_map {OPTION_NAME}"