Step 10: Effects

Goal

  • Understand how to modify Attributes on a different through effects.


Attributes on Other Characters

In Step 9, we talked how a character can modify its own Attribute by State Modifiers. That is within one character. How can we do the same thing to other characters? For example, how do I deal damage?

You might have already noticed there is a dummy capsule in the scene, and the health bar does respond to both your attacks.

Effect

In PAT, we are using Effect to modify attributes on other P Entities.

Effects are scriptable objects. You may find an example through Attack1. The Attack with Hitbox Mod is a State Modifier that sends a list of Effects through colliders.

If you click on to the Scriptable Object, you should see this:

To put this in a simple way, what matters here is the EffectModValue part.

Effect Mod Value

You will find it working just like the Use Attribute Mod, also with a Resource Tag and a value. But there is a lot more about Effects. You can find details in the link below:

Effect

Last updated