Random Civ Selection Groups

V 0.0.23 mod for 0 A.D.

0
Downloads today
237
Downloads total
0
Comments

description

Random Civ Selection Groups

This small mod allows you to select a civ randomly from a smaller subset of civs instead of from the entire available list of civs. It is especially useful for mods such as Millennium A.D. and Aristeia that add civs from an entirely different place and time from the original game.

How it works

Random selection groups are stored in json files under simulation/data/settings/random_groups. Each .json file contains the following information:

  • Title: The name that will appear in the civ selection menu.
  • Tooltip: A brief description of the selection group.
  • Code: A short, lowercase code which the program will use to identify the selection group.
  • GUIOrder: A number that identifies where the selection group will appear in the selection menu. Lower numbers will appear higher.
  • Weights: The list of civs to be selected from and the probability of selecting each one. Weights can be any number greater than zero. The probability of each civ being selected is determined by its weight as a percentage of the sum of weights.
  • Color (optional): The color of text used in the selection menu. Defaults to the same color as Random.
  • Disable (optional): If true, prevents the selection group from appearing in the selection menu.

By convention, the "Default" selection group (only civs from the original game) has a GUIOrder of 0, selection groups containing only original game civs have a GUIOrder of 1, and selection groups dependent on other mods have a GUIOrder of 2 or higher.

Selection groups containing unavailable civs are automatically filtered out of the selection menu.

Support for other mods

Currently, selection groups are provided for the following mods:

I will consider adding selection groups for Delenda Est, but it might be better served by another mod that overrides some of the selection groups provided here.

Compatibility

Although this mod supports many other mods, it only requires basic 0ad.

This mod alters the following javascript files:

  • gui/gamesetup/gamesetup.js
  • gui/common/functions_utility.js
  • globalscripts/Templates.js

Any mod that also alters any of these files will likely be incompatible.

Credits

  • 28 Oct 18:20
    Version 0.0.23

    Initial Release, supports 0 A.D. version 0.0.23



Files


26.09 2020
Modhoster user rating
no rating Votes

Empfehlungsrate

-/-      
noch nicht genug Stimmen

Do you think this mod should be featured?

Mod abonnieren
Abonniere Random Civ Selection Groups
Der Mod wird automatisch beim nächsten Start von 0 A.D. installiert.
0 A.D.
random_civ_groups.1.zip
41.1 KB 237

0 Comments for Random Civ Selection Groups

You have to log in for writing comments.
You can also sign up for free, id you don't have an account yet - it only takes 5 minutes.

No comments yet.

Write the first comment...

      }