Penguin Action Toolkit
  • 🐧Welcome
  • Guide
    • Step-by-Step Guide
      • Step 1: Install PAT
      • Step 2: Tutorial Scene
      • Step 3: Character - Action States
      • Practice 0: Add an Input Tag
      • Step 4: Character - Tags
      • Practice 1: Combo
      • Step 5: State Modifiers
      • Practice 1.1 & Ex: Grant Tag Mod
      • Step 6: Animation Montage
      • Step 7: Trigger Animation Event
      • Practice 1.2: Back to Grant Tag Mod
      • Step 8: Animator
      • Step 9: Attributes
      • Practice 2: Cost HP
      • Step 10: Effects
        • Step 10.1: Hitbox & Hurtbox
  • Definition & Inspector Detail
    • Actions
      • Action State
      • State Modifier
      • Move Set
    • Tag
    • Attribute
    • Effect
    • Player
    • Input
    • Locomotion
  • Tutorial
    • Installation
    • Contents of the Assets
    • Character
      • Create a Character
    • Set Up Player
    • Create a new Tag
    • Create a new Modifier
    • Use Attributes
    • Effect
      • Create an Effect
      • Apply Effects
    • Animation
      • Animatior Controller
    • PAT Manager
  • Beneath the Feathers
    • The Other One
    • Help on the Way
    • Victim or the Crime
    • Unbroken Chain
  • PAT Game Jam
    • Save the Penguin
    • Schedule
    • Terms & Conditions
  • FAQ
    • Change to Your Own Model
Powered by GitBook
On this page
  • Goal
  • Solve
  • Attribute in Inspector
Edit on GitHub
  1. Guide
  2. Step-by-Step Guide

Practice 2: Cost HP

PreviousStep 9: AttributesNextStep 10: Effects

Last updated 6 months ago

Goal

  • Make Attack 2 costs HP or a new attribute you add.


This is not a hard challenge. You may try to do it on your own first and then come back for the answer.

Solve

  • Add Use Attribute Mod to Attack2.

  • Select the Resource Tag to Health.

  • Set an amount.

Now every Attack2 will take out 20 HP of the penguin.


Attribute in Inspector

If you are adding a new Attribute, and it is not on the UI, you might wonder how to check if it is correctly consumed.

You may go to the Character Component. It will display all the attributes it collects at runtime. You may even modify the value from there directly. If can be a helpful tool for debugging.

Runtime Only!