Jump to content

Target conditions health <= 0.20?


Recommended Posts

Alright so I've been trying to attach this target condition to a magic effect. The intention is for the magic effect to initiate at 30% health.

What I did was

choose condition function "GetActorValuePercent" then I chose parameter Health.

This is where it got confusing and also where I think i made my mistake.

At this point I'm looking for the "return value" I do not see this though. I do see the "value" though and in-between is the ==/<=/>= etc. So I assume I am meant to use the value, as I cannot find the return value anywhere. In the end it looks like this.

Condition function parameter Value

"GetActorValuePercent" "health" <= 0.30

 

Needless to say this didn't work. And If I am not mistaken the "value is either 1 or 0, true or false. Which leads me back to, how do I go about this target condition?

 

Link to comment
Share on other sites

Hello, the original spell was mistform, however I decided to only keep the visual effect and changed the option to.

cloak

 

self

 

vampire drain

 

unchecked the no area and no magnitude, and checked detrimental and hostile.

Then I removed the original conditions and added my below 30% condition, whereby I attached it to a ring I'm working on.

It did not work though x'D I'm thinking of just making it into a spell with a cooldown effect now.

Link to comment
Share on other sites

What is your "Run On" parameter in the lower drop down box? It should be set to "Player" so it runs on the player. You could also try to use the "GetHealthPercentage" function and set it to check the Player as well at <= 30% without a set parameter. Either or both should work for what you want to do.

Link to comment
Share on other sites

Move the condition from your magic effect to your enchantment. Conditions on magic effects are checked only before the effect is applied, so unless you equip the ring when you have less than 20% health it won't work. Conditions on the enchantment are checked once a second. Be aware that you will have to survive with less than 20% health for up to a second for the effect to kick in.

 

The run on parameter should be set to subject.

 

Health as a parameter works for this function. I don't know what that other guy is talking about.

Link to comment
Share on other sites

Alright thank you everyone, the advice is much appreciated and I'm definitely closer.

 

I used lofgren's advice, and the spell does activate, however aside from the visual effect, the actual effect doesn't function. I added the spell as a fire and forget lesser power and it works as intended, although I still can't make the cooldown work >< and aside from the difference between fire and forget and constant effect(on the ring) there is no difference.

So I'm somewhat baffled as to how I should continue from here.

Link to comment
Share on other sites

Health as a parameter works for this function. I don't know what that other guy is talking about.

Alrighty then.

 

The other guy knows it doesn't work for Oldrim CK, but the other guy made a mistake in thinking it meant all functions other than this one: http://www.creationkit.com/index.php?title=GetActorValue

 

But the other guy knows you knew that and instead wanted to leave that out rather than correct him.

 

The other guy knows for sure the majority of the CK64 bugs were not fixed, like the infamous GetItemCount(already tested by multiple people). However the other guy didn't state his post as fact.

 

As for the OP, the other guy is sorry about that. He doesn't pretend to know everything but will point out any potential problems caused by the CK itself.

 

Edited by TheDungeonDweller
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...