Difference between revisions of "Talk:ForceActorValue"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Ibob222
m (forceav=modav2?)
imported>Ibob222
 
Line 16: Line 16:
::::Err... Yes. The example will not compile. That was semi-intentional - it was just pseudo-code. Regardless, your edit probably is better.
::::Err... Yes. The example will not compile. That was semi-intentional - it was just pseudo-code. Regardless, your edit probably is better.
::::[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 04:30, 8 February 2008 (EST)
::::[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 04:30, 8 February 2008 (EST)
== forceav=modav2? ==
I was thinking since force av modifies current stats and not the base value, wouldn't that mean its not an unalterable script modifier and could be restored by a spell. Meaning it could be used instead of the OBSE mod function modactorvalue2 using:
set value to Getav Health
Set value to value - 5
Forceav Health value
being the same as:
modav2 health -5
The point being you don't have to use OBSE to run the script,

Latest revision as of 00:42, 10 June 2010

I just don't understand the example: what is the equivalent of what? Someone has to know advance what the function does to guess what this example exemplifies, and to guess what the complete and exact sentence should read... Please, this is not SMS, this is Wiki!...

Ironically, I'm having a bit of difficulty comprehending your post, but I think I've got what you're asking. The example is stating that
ForceActorValue Health, 20
is the same as
ModActorValue Health, ( 20 - GetActorValue Health )
In reality though, you should not ever use ForceActorValue, at least not on the player. It's just a poorly designed funciton that wreaks havoc on what other scripts are expecting to happen.
Dragoon Wraith TALK 00:39, 8 February 2008 (EST)
Ok, I'll correct the error on the main page then. It's not "Strength", it's "Health", and Value should be "50", not "value". For consistency, an example should stick to itself else it is hardly understandable (unless you already know what it exactly does, which is your case)... Thanks. --HawkFest 01:43, 8 February 2008 (EST)
More over: the example will not compile. I've done some tests (I'm trying to use this in one of my scripts), and even though ModActorValue Health accepts floats, longs and shorts, either a number or a variable, it doesn't seem to accept neither function calls nor simple math operations on numers, as its value parameter. The correct code example should be as such:
 Short modParameter
 Set modParameter to ( 50 - GetActorValue Health )
 ModActorValue Health, modParameter
Err... Yes. The example will not compile. That was semi-intentional - it was just pseudo-code. Regardless, your edit probably is better.
Dragoon Wraith TALK 04:30, 8 February 2008 (EST)