I don't know if it's a known issue, but the GetValue condition function (not the Papyrus variant) always returns an undefined value for me. The condition is always false (0.00).
At first I thought it's because my AV is custom. But then I tested a few other AVs, and they seem to always return undefined too.
It's really annoying, since I need 3 instanced, Values on multiple Generic Actors. So attaching a valid script will not work.
(RefCollectionAliases can only hold 1 variable for everyone, and Arrays cannot be conditional.
ActiveMagicEffects can be attached via RefCollectionAlias, but are not valid for VMScriptVariable and so return 0 as well.)
Papyrus however, always return the correct value via GetValue (Papyrus).
GetValuePercent seems to be buggy too:
What does Papyrus have to say?
Actor akTargetRef = GetActorRef () Trace ("Alias: " + akTargetRef) if (akTargetRef) akTargetRef.SetValue (OverrideMode, 100.00) akTargetRef.DamageValue (OverrideMode, 50) Trace ("ValueBase: " + akTargetRef.GetBaseValue (OverrideMode)) Trace ("Value: " + akTargetRef.GetValue (OverrideMode)) Trace ("Percent: " + akTargetRef.GetValuePercentage (OverrideMode)) endif
[02/22/2017 - 09:59:28AM] Alias: [companionactorscript < (0001CA7D)>] [02/22/2017 - 09:59:28AM] ValueBase: 100.000000 [02/22/2017 - 09:59:28AM] Value: 50.000000 [02/22/2017 - 09:59:28AM] Percent: 0.500000
Edited by Rhutos, 22 February 2017 - 09:14 AM.