Closed Spyeedy closed 1 year ago
I'm not too sure if there is an alternative way for scripted conditions' test
function to access the custom properties. Currently, how I allow the conditions to access their custom properties is by passing to the function a Map<String, Object>
.
See ConditionBuilder and ScriptableCondition.
That may allow modification of the properties' values. I don't know xD
As the title says, scripted abilities and conditions can have custom data attached to them, such that you can use those data in the ability's tick and condition's test functions respectively.
To see how their script code are written and how they can be used in JSON files, you can look at:
Note By Palladium's design, the custom properties for scripted abilities cannot be modified during the lifetime of the ability, only retrieved, as mentioned in the ability script's comments. Custom properties for scripted conditions also cannot be modified, only retrieved.