Difference between revisions of "MW Factions"

From MMNet Wiki
Jump to navigation Jump to search
Line 38: Line 38:
 
</pre>
 
</pre>
  
Once a faction has been created, it can be edited from the Faction Configuration menu within MekWars (Server Configs -> Faction Configuration) [[File:mw_factionconfigmenu.png|thumb|The Faction Configuration Menu]]
+
Once a faction has been created, it can be edited from the Faction Configuration menu within MekWars (Server Configs -> Faction Configuration)  
  
 
There are many options in this menu:
 
There are many options in this menu:
 +
 +
<br clear=all>
 +
'''Direct Sales Tab'''
 +
[[File:mw_factionconfigmenu.png|thumb|The Direct Sales Tab]]
 +
This tab relates to the ability of players in a faction to sell units directly to each other.
 +
 +
The "Use Direct Sell" checkbox enables or disables Direct Sell for this faction.
 +
 +
The Pricemod for each unit type is an amount added to the direct sales price, paid for either by the seller or recipient, depending on the "Seller Pays" checkbox on the Server Direct Sales menu.
 +
 +
<br clear=all>
 +
'''Faction Tab'''
 +
[[File:mw_factionconfigmenu_factiontab.png|thumb|The Faction Tab]]
 +
This tab contains miscellaneous configuration options for the faction.

Revision as of 14:04, 2 December 2015

Factions are the MekWars equivalent of teams. Players in the same faction share resources, such as components and bays, and have a faction-specific dedicated Chat channel.

For MegaMekNET-specific Faction information, check here.

Factions are defined at initial server start in data/factions.xml. A sample faction entry, taken from the default factions.xml shipped with MekWars is as follows:

		<FACTION>
			<NAME>Davion</NAME>
			<MONEY>180</MONEY>
			<COLOR>#808000</COLOR>
			<ABBREVIATION>D</ABBREVIATION>
			<LOGO>http://www.megamek.com/NoLogo.jpg</LOGO>
			<ID>0</ID>
		</FACTION>

There is more that could be in this file, though, as noted by factions.dtd:

<!ELEMENT ABBREVIATION (#PCDATA)>
<!ELEMENT BASEGUNNER (#PCDATA)>
<!ELEMENT BASEPILOT (#PCDATA)>
<!ELEMENT COLOR (#PCDATA)>
<!ELEMENT CONQUERABLE (#PCDATA)>
<!ELEMENT INHOUSEATTACKS (#PCDATA)>
<!ELEMENT ISMERCENARY (#PCDATA)>
<!ELEMENT LOGO (#PCDATA)>
<!ELEMENT MAYUSEBM (#PCDATA)>
<!ELEMENT MONEY (#PCDATA)>
<!ELEMENT NAME (#PCDATA)>
<!ELEMENT CONQUERABLE  (#PCDATA)>
<!ELEMENT INHOUSEATTACKS (#PCDATA)>
<!ELEMENT HOUSEPLAYERCOLOR (#PCDATA)>
<!ELEMENT DEFECTTO (#PCDATA)>
<!ELEMENT DEFECTFROM (#PCDATA)>
<!ELEMENT ISNEWBIE (#PCDATA)>

Once a faction has been created, it can be edited from the Faction Configuration menu within MekWars (Server Configs -> Faction Configuration)

There are many options in this menu:


Direct Sales Tab

The Direct Sales Tab

This tab relates to the ability of players in a faction to sell units directly to each other.

The "Use Direct Sell" checkbox enables or disables Direct Sell for this faction.

The Pricemod for each unit type is an amount added to the direct sales price, paid for either by the seller or recipient, depending on the "Seller Pays" checkbox on the Server Direct Sales menu.


Faction Tab

The Faction Tab

This tab contains miscellaneous configuration options for the faction.