Edit number of Tournament rounds?

Users who are viewing this thread

Hello,

(4 years later but all good if someone still wants to know the answer to this question lol)


From what I know, you need the module system. In module_scripts.py, look for these various scripts:
# script_fill_tournament_participants_troop
Code:
(try_for_range, ":cur_slot", ":begin_slot", 64),

# script_get_num_tournament_participants
Code:
(try_for_range, ":cur_slot", 0, 64),

# script_get_random_tournament_participant
Code:
(try_for_range, ":cur_slot", 0, 64),

# script_add_tournament_participant
Code:
(try_for_range, ":cur_slot", 0, 64),

# script_sort_tournament_participant_troops
Code:
(try_for_range, ":cur_slot_2", ":cur_slot_2_begin", 64),

# script_remove_tournament_participants_randomly
Code:
(try_for_range, ":cur_slot", 0, 64),
And
Code:
(try_for_range, ":cur_slot", 0, 64),

Then change the value 64 to the multiple you wish (2, 4, 8, 16, 32, 64, 128, 256, ...). The number of rounds will vary depending on this.


And one last script you need to change:
# script_sort_tournament_participant_troops
Code:
(try_for_range, ":cur_slot", 0, 63),
Which will be your chosen number - 1.
E.g. 1, 3, 7, 15, 31, 63, 127, 255, ...
 
Back
Top Bottom