Passives are very similar to abilities. To make one:
- Create a new passive Scriptable Object (SO). Go to Assets → Asset Identifier SOs → Passives → Player OR Enemy → {Unit Name}. Right click in the folder and go to Create → Ability → Passive Definition.
- Fill out the new SO. Start off by generating a new GUID, which is done by pressing the 3 dots on the right of the SO name and clicking “Generate new GUID”. Then fill out the name, description, and what type of passive it is.
- Add a condition if needed. If your passive only triggers if a specific condition is met (e.g. the player has a certain status effect), attach a new condition. If one doesn’t exist that matches what you need, go to Assets → Scripts → Item System → Conditions. Make a new script and follow along with what other existing scripts do and change/add where needed. Once created, go to Assets → Conditions and add the SO by right clicking, going to Create → Conditions → and selecting the condition you made.
- Add the Passive Effect Configs. This is the same as abilities, so follow along from step 3 in abilities to fill this out. (^54aecc)
And that’s passives. You can then attach this to the BaseUnit prefabs.