Jump to content

Photo

GetValue (Creation Kit) conditions always false

creation_kit actorvalue actor_value getvalue condition

  • Please log in to reply
No replies to this topic

#1
Rhutos

Rhutos

    Enthusiast

  • Supporter
  • PipPip
  • 135 posts

Hey
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:
 
CreationKit3.png
 
What does Papyrus have to say?
 
Source:
 

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

Log:
 

[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.






Also tagged with one or more of these keywords: creation_kit, actorvalue, actor_value, getvalue, condition

IPB skins by Skinbox
Page loaded in: 0.775 seconds