- Reaction score
- 293
Let's recap what you want: You want upgrades that modify Sam's damage/armor? Possibly with different amounts of damage to different target types? You then want to add the abilities so you can buy the upgrades in a building?
First of all, you'll need upgrades. Go into the data editor and find the Upgrades type. Create a new upgrade called something like "Sam's damage upgrade". In the Upgrade: Effects, right click in the empty list and add a new effect. This is something that will change when you get the upgrade.
When you get the upgrade you want to change Sam's damage is supposed to increase. The damage comes from the Damage effect you created earlier so make the type "Effect" and the object "Laser Blaster (Damage)". You'll get a list of all fields in that effect. You want the first one called "Amount".
Next, pick an operation. Let's say you want each level to increase damage with 5. In that case choose the "Add" operation and the value 5. If you wanted to increase the attack damage with 50% you could choose the "Multiply" operator and the value "1.5". If you want to upgrade a specific target type you just create a new effect in the list and also set the data reference type to effect and the object to "Laser Blaster (Damage)"(just like you did with the first effect) and modify one of the "Attribute bonus" fields.
To modify the armor, instead of picking the type "Effect" for your upgrade effects, pick "Unit"(Note, I'm talking about upgrade effects. This is the effects upgrades has on units. These are not the same thing as normal effects that I talked about in the tutorial. Basically when you set the type to "Effect" in the upgrade effects you tell the upgrade to change a normal effect)
Set the object to "Sam" and find the "Life maximum" and "Life Starting Amount" fields and modify those how you want it.
To make the upgrades researchable: Create a button for it. Find the building you want to put it in. If the building already has some upgrades, find the Research-type ability that it uses. If you go to the "Engineering bay" unit for example you'll see it has 4 abilities linked to it. One of them is called "Engineering Bay - Research (Engineering Bay)". That is the building's research ability. If it doesn't have one, create your own. Make sure the type is "Research"
Go to the "Ability: info". Scroll down until you find an upgrade slot that isn't used yet. Double-click it to add your upgrade to it. In the pop-up that appears pick the button for your upgrade. Scroll down to the bottom and pick the upgrade for the "Info - Upgrade" field. You can also modify the "Info - Time" field to set the time it takes to research it.
First of all, you'll need upgrades. Go into the data editor and find the Upgrades type. Create a new upgrade called something like "Sam's damage upgrade". In the Upgrade: Effects, right click in the empty list and add a new effect. This is something that will change when you get the upgrade.
When you get the upgrade you want to change Sam's damage is supposed to increase. The damage comes from the Damage effect you created earlier so make the type "Effect" and the object "Laser Blaster (Damage)". You'll get a list of all fields in that effect. You want the first one called "Amount".
Next, pick an operation. Let's say you want each level to increase damage with 5. In that case choose the "Add" operation and the value 5. If you wanted to increase the attack damage with 50% you could choose the "Multiply" operator and the value "1.5". If you want to upgrade a specific target type you just create a new effect in the list and also set the data reference type to effect and the object to "Laser Blaster (Damage)"(just like you did with the first effect) and modify one of the "Attribute bonus" fields.
To modify the armor, instead of picking the type "Effect" for your upgrade effects, pick "Unit"(Note, I'm talking about upgrade effects. This is the effects upgrades has on units. These are not the same thing as normal effects that I talked about in the tutorial. Basically when you set the type to "Effect" in the upgrade effects you tell the upgrade to change a normal effect)
Set the object to "Sam" and find the "Life maximum" and "Life Starting Amount" fields and modify those how you want it.
To make the upgrades researchable: Create a button for it. Find the building you want to put it in. If the building already has some upgrades, find the Research-type ability that it uses. If you go to the "Engineering bay" unit for example you'll see it has 4 abilities linked to it. One of them is called "Engineering Bay - Research (Engineering Bay)". That is the building's research ability. If it doesn't have one, create your own. Make sure the type is "Research"
Go to the "Ability: info". Scroll down until you find an upgrade slot that isn't used yet. Double-click it to add your upgrade to it. In the pop-up that appears pick the button for your upgrade. Scroll down to the bottom and pick the upgrade for the "Info - Upgrade" field. You can also modify the "Info - Time" field to set the time it takes to research it.