Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

GetActorValuePercentage


techprince
 Share

Recommended Posts

The return value of this function is NOT between 0-1 as wiki page stated, its wrong. After some testing, the base value is treated as 100% and any temporary modifiers gets added into it. So all the examples of calculating max health will return false values.

 

Ex : 100 base health (GetActorValuePercentage returns 1.0); +35 health temporary buff (GetActorValuePercentage returns 1.35)

 

So is there any other way to get an actors maximum health after getting damaged? (without calculating it before getting damaged) or is there any way to obtain the temporary modifier / damage modifier of health / stamina / magicka attribute?

Edited by techprince
Link to comment
Share on other sites

Even with three variables currenthealth, basehealth, currenthealthpercentage i still cant calculate max health because of this problem.

SKSE 1.7 provides access to ActorValueInfo. I will use that function.

Edited by techprince
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...