Here is
something to keep handy as well as
this.
More GoodiesOk, so what you need is a folder and two files.
Create a folder and name it appropriately.
Inside the folder create two files:
mod_info.lua
mod_units.bp
Open mod_info.lua, and copy the below code into it.
- Code: Select all
name = "Name that will appear in Mod Manager"
uid = ""
version = 1
description = "Description that will appear in Mod Manager, limit to 150 characters"
Make the changes above as you see fit. For the uid field, I use
this online generator. Copy what is generated and place it between the quotes.
Really for a mod to show up in the Mod Manager all it needs is the uid. All the rest of the fields are just optional. Take a look at some other mods to see what else they throw in there.
Here is what you need for the mod_units.bp file
- Code: Select all
UnitBlueprint {
Merge = true,
BlueprintId="uel0303",# UEF T3 Heavy Assault Bot, Titan
Defense = {
Health = 2200,
MaxHealth = 2200,
Shield = {
ShieldMaxHealth = 1200,
},
},
Weapon = {
{
Damage = 50,
MaxRadius = 20,
RateOfFire = 3,
},
},
}
The values that are above is what the current values for the Titan are. For the health increase, you can either add it to the unit or its shield.
Modify the value after MaxRadius to change the range.
For the dps increase, you can decide whether you want a bigger punch or a faster rate of fire. To calculate dps it is Damage / (1/ RateOfFire). With the default values above it is 50 / (1/3) = 50 / 0.3 = 166.67 dps
Copy the folder containing the two files into your mod directory, and enable it in the mod manager.
Always look at other mods to learn how things are done.