Jump to content

[FO4Edit] Store value of variable with condition


Reveurr

Recommended Posts

Hi everyone,

 

 

I'm trying to do a Very simple task : assign a value to a variable. (what could be more basic?)

 

I can't do this, without having the "Recover" flag on, in the magic effect configuration.

The following only works if I use this flag...can't make it work otherwise.

What am I doing wrong?

 

In image:

http://imgur.com/a/ba4Eu

 

Here's a link to download the esp:

http://www.filedropper.com/damageresistpositive

 

Here's what the mod is trying to do right now: when the damage resistance > 10, the variable DR is set to 1 and stays that way. Meaning: "if character wears any damageresist armor, remember it forever".

 

In Vanilla, I only found 2 functions doing something similar: they modify health or rads. But using them doesn't work in my case, as copying any of these actor values crashes my mod on launch. It's linked to their "AVFL" value, couldn't see more about this.

 

It's important for me not to use the "Recover" flag, as I'll need to use the variable still modified, after the conditions will become false.

Using this flag makes the whole thing work, but as soon as my character has less than 11 damage resist on him, the variable resets to 0, which I don't want.

 

Thanks for your help me and have a great day.

Edited by Reveurr
Link to comment
Share on other sites

Just edited my post: it seems my problem is much more basic than I thought.

I can't assign a value to a variable, without using the flag "Recover".

 

I really feel dumb on this one.

I must miss something very simple...

 

Thanks for your help.

Link to comment
Share on other sites

Sorry for the second bump.

 

I modified the original post and uploaded my esp to make things clear and simple to read and test.

I'm stuck on this for days...and feel so close to releasing a great mod, only if I can overcome this "LITTLE" problem :p.

 

Thanks for reading me.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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