Talk:ForceActorValue

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

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)