Hello,
How to create a license?
1 - Go to the root of your mission.
2 - Go to \config\Config_Licenses.hpp.
3 - Go inside the Licenses class and create a new class.
Example :
The name of the class and the variable don't have to be identical, but it's better to find your way around.
Example :
6 - Save the two modified files.
Your license is created!
How to create a license?
1 - Go to the root of your mission.
2 - Go to \config\Config_Licenses.hpp.
3 - Go inside the Licenses class and create a new class.
Example :
Code:
class maLicence {
variable = "myLicence";
displayName = "STR_License_maLicence";
price = 0;
illegal = false;
side = "civ";
};
- The variable is required, choose a single word or two Words. (remember, never accents or special characters)
- The displayName corresponds to the stringtable of the name displayed in game
- The price corresponds to the price of the license at stake
- illegal = false; for the license to be legal
- illegal = true; for the license to be illegal
- The side speaks for itself and can be set to "civ" or "cop" or "med". (only the players in the indicated side will have access to this license.)
- Go to stringtable.xml at the root of your mission.
- 5 - Look for "Life_License" and add your STR at the end of this package.
Example :
Code:
<Key ID="STR_License_myLicence">
<Original>The name of my license
/Original>
</Key>
6 - Save the two modified files.
Your license is created!