# Step 10: Effects

## Goal

* Understand how to modify Attributes on a different PAT\_Component[^1] through effects.

***

## Attributes on Other Characters

In [Step 9](step-9-attributes), 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.&#x20;

<figure><img src="https://2451041454-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9gUBPgMhOgtHUM3SGNRf%2Fuploads%2FJdYntX23gktpBcVfzbQl%2Fimage.png?alt=media&#x26;token=da2b44a7-0194-4ef7-a0a1-9863844243b3" alt=""><figcaption></figcaption></figure>

## Effect

In PAT, we are <mark style="color:orange;">**using Effect to modify attributes on other P Entities**</mark>.&#x20;

Effects are scriptable objects. You may find an example through Attack1. The Attack with <mark style="color:orange;">**Hitbox Mod**</mark> is a State Modifier that sends a list of Effects through colliders.

<figure><img src="https://2451041454-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9gUBPgMhOgtHUM3SGNRf%2Fuploads%2Fb2tcYZtN6aIsXX2Su11x%2Fimage.png?alt=media&#x26;token=6421b08b-9aff-4f45-afd5-2d729353ee89" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2451041454-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9gUBPgMhOgtHUM3SGNRf%2Fuploads%2FZeEvIzD4lnjIOK70c7pA%2Fimage.png?alt=media&#x26;token=976918eb-b564-4d3b-830d-79fdb3f31114" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2451041454-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9gUBPgMhOgtHUM3SGNRf%2Fuploads%2Fj6pvYVDhuKfqfpIvcyCR%2Fimage.png?alt=media&#x26;token=11d7189a-5216-4bb6-8f4e-cec865d57868" alt=""><figcaption><p>Effect Mod Value</p></figcaption></figure>

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:

{% content-ref url="../../definition-and-inspector-detail/effect" %}
[effect](../../definition-and-inspector-detail/effect)
{% endcontent-ref %}

[^1]: Character is extended from PAT\_Component
