Jump to content

Abilities with conditional effects


Recommended Posts

Hello! Hopefully someone can figure out what's going on here. My goal is to mod the paladin's Faith and Conviction ability to depend on disposition for the Watcher only, and to scale based on level for all NPCs and companions. Right now, I'm trying to replicate it with the conditional from Heart-Chime Amulet's code.

This specific edit is meant for the level-scaling option. If it works as intended, the Watcher's F&C won't grant any bonuses while all other paladins will benefit. That said, it doesn't work and the Watcher still gets the bonus. Any thoughts?

{
            "$type": "Game.GameData.StatusEffectGameData, Assembly-CSharp",
            "DebugName": "Faith_and_Conviction_SE_Defenses",
            "ID": "e201a7be-f1ef-49ad-b76e-160542e27d5b",
            "Components": [
                {
                    "$type": "Game.GameData.StatusEffectComponent, Assembly-CSharp",
                    "OverrideDescriptionString": -1,
                    "UseStatusEffectValueAs": "None",
                    "BaseValue": 5,
                    "DynamicValue": {
                        "Stat": "PaladinOrder",
                        "SkillDataID": "00000000-0000-0000-0000-000000000000",
                        "ClassID": "00000000-0000-0000-0000-000000000000",
                        "MultiplyBy": 0,
                        "Operator": "Add"
                    },
                    "ApplicationPrerequisites": {
                        "Conditional": {
                            "Operator": 0,
                            "Components": [
                                {
                                    "$type": "OEIFormats.FlowCharts.ConditionalCall, OEIFormats",
                                    "Data": {
                                        "FullName": "Boolean AreGuidsSameObject(Guid, Guid)",
                                        "Parameters": [
                                            "b1a8e901-0000-0000-0000-000000000000",
                                            "7d150000-0000-0000-0000-000000000000"
                                        ],
                                        "Flags": "",
                                        "UnrealCall": "",
                                        "FunctionHash": 0,
                                        "ParameterHash": 0
                                    },
                                    "Not": true,
                                    "Operator": 0
                                }
                            ]
                        }
                    },
                    "PowerLevelScaling": {
                        "UseCharacterLevel": "true",
                        "BaseLevel": 0,
                        "LevelIncrement": 1,
                        "MaxLevel": 0,
                        "ValueAdjustment": 0.25,
                        "DurationAdjustment": 0
                    }
                }
            ]
        },

 

Link to comment
Share on other sites

Maybe you could take some inspiration with the Outworn Buckler Timeless ; there is 2 chapters, the first for everyone and the second to Darcozzy Paladini with the lign 

"Boolean HasSubClass(Guid, Guid)","Parameters":["011111e9-0000-0000-0000-000000000000","defccfb6-5567-4982-a495-3bed39997158"] , that override the other chapter, for else. 

 

edit

{"FullName":"Boolean AreGuidsSameObject(Guid, Guid)","Parameters":["b1a8e901-0000-0000-0000-000000000000","7d150000-0000-0000-0000-000000000000"],"Flags":"","UnrealCall":"","FunctionHash":-2074419224,"ParameterHash":683199304},"Not":false,"Operator":1},{"$type":"OEIFormats.FlowCharts.ConditionalCall, OEIFormats","Data":{"FullName":"Boolean IsSubrace(Guid, Subrace)","Parameters":["7d150000-0000-0000-0000-000000000000","Death_Godlike"],

 

This is the parameter that you have forgot I think, the correspondance to the Guid. 

"ApplicationPrerequisites":{"Conditional":{"Operator":0,"Components":[{"$type":"OEIFormats.FlowCharts.ConditionalCall, OEIFormats","Data":{"FullName":"Boolean IsTarget(Guid)","Parameters":["011111e9-0000-0000-0000-000000000000"],"Flags":"","UnrealCall":"","FunctionHash":-113879851,"ParameterHash":-961388452},"Not":true,"Operator":0},{"$type":"OEIFormats.FlowCharts.ConditionalCall, OEIFormats","Data":{"FullName":"Boolean IsSummoned(Guid)","Parameters":["1a26e100-0000-0000-0000-000000000000"],"Flags":"","UnrealCall":"","FunctionHash":1821317740,"ParameterHash":-1115608986},"Not":true,"Operator":0}]}},

 

This is from the chain of Rightful Autority, restricted to watcher :)

I think you have to write a second chapter, without restriction and level scaling.

Edited by Constentin Lévine
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...