Open Noggog opened 4 months ago
We didn't find a better way back then but now I see that this is actually valid syntax for this scenario!
Condition AmuletCondition = new ConditionFloat {
Data = new GetEquippedConditionData {
RunOnType = Condition.RunOnType.Reference,
Reference = Skyrim.PlayerRef,
ItemOrList = {
Link = {
FormKey = Skyrim.FormList.TGAmuletofArticulationList.FormKey
}
},
},
CompareOperator = CompareOperator.EqualTo,
ComparisonValue = 1
};
I think we can probably close this?
Sounds good. Maybe we convert this card to a documentation card. Can't imagine many people will discover that on their own, so might be good to slide into the docs somewhere
Just a note: this is not only about ItemOrList
but any condition parameters using FormLinkOrIndex
For example:
A potential fix:
Adding "extra" properties wasn't on the radar, as it messes with other tooling that wants to investigate an object via reflection. But a set only property might avoid most of those problems