Jump to content
View in the app

A better way to browse. Learn more.

Obsidian Forum Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hi guys, as the title says, I'm looking for a way to make a passive ability that activates when a character's power pool hits 0, and deactivates whenever the character regains resource. The only way I can figure out to make this work would be to make a StatusEffect for ApplyStatusEffectOnEventWithChance, where the base chance to apply is 1 and every point of resource adds a -1. However, that wouldn't disable the effect when the character regains resource.

Any tips?

Edited by Testlum

I think you could utilize ActivationPrerequisites and DeactivationPrerequisites properties of the GenericAbilityComponent to implement this, together with the IsClassPowerPoolCount conditional.

Using Brute Force as a passive ability example, something like this?

Spoiler
{
   "$type": "Game.GameData.AttackLowestDefenseAbilityGameData, Assembly-CSharp",
   "DebugName": "Brute_Force",
   "ID": "fbf5f778-a528-4fd3-8213-2784bba0f145",
   "Components": [
      {
         "$type": "Game.GameData.GenericAbilityComponent, Assembly-CSharp",
         "ActivationPrerequisites": {
            "Conditional": {
               "Operator": 0,
               "Components": [
                  {
                     "$type": "OEIFormats.FlowCharts.ConditionalCall, OEIFormats",
                     "Data": {
                        "FullName": "Boolean IsClassPowerPoolCount(Guid, Guid, Operator, Int32)",
                        "Parameters": [
                           "7d150000-0000-0000-0000-000000000000",
                           "825817d4-1fb0-4e5c-bf84-473743ad98de",
                           "EqualTo",
                           "0"
                        ]
                     },
                     "Not": false,
                     "Operator": 0
                  }
               ]
            }
         },
         "DeactivationPrerequisites": {
            "Conditional": {
               "Operator": 0,
               "Components": [
                  {
                     "$type": "OEIFormats.FlowCharts.ConditionalCall, OEIFormats",
                     "Data": {
                        "FullName": "Boolean IsClassPowerPoolCount(Guid, Guid, Operator, Int32)",
                        "Parameters": [
                           "7d150000-0000-0000-0000-000000000000",
                           "825817d4-1fb0-4e5c-bf84-473743ad98de",
                           "GreaterThan",
                           "0"
                        ]
                     },
                     "Not": false,
                     "Operator": 0
                  }
               ]
            }
         }
      }
   ]
}

 

[825817d4-1fb0-4e5c-bf84-473743ad98de] = Barbarian Class ID

Edited by Noqn

  • Author

Oh, that looks promising, thanks a million. I'll see what I can do with it on the weekend!

  • Author

Update: Noqn's solution works perfectly.

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.