Category talk:Actor Values

From the Oblivion ConstructionSet Wiki
Revision as of 14:22, 21 July 2007 by imported>Talkie Toaster
Jump to navigation Jump to search

I have a question. How do you get or set the health value for a weapon or a piece of armor?

You see, I want to make a special weapon with its own script, causing the weapon to always have maximum health. I'm assuming that Actor Values don't work on weapons. Is there a such thing as a getObjectValue or forceObjectValue function? (I looked at the Object Functions page, and I couldn't find it.)

OBSE has functions that allow you to modify an object's health. Scruggs 21:40, 13 January 2007 (EST)

Should there be two healths (and other things): one for base health and one for max health. It was always confusing about just what GetAV Health returned.
--Haama 10:42, 21 July 2007 (EDT)

I agree, but there's no way to change that now. Anyway, does anyone know the best way to change the max Health/Magicka of a character? I had thought it was ModAV Health, but that increased the current health, not the max health. Increased it past the maximum, too, so my current to max ratio was greater than one. Looked a little odd.
Dragoon Wraith TALK 12:52, 21 July 2007 (EDT)
You'd probably want SetAV, as that's called on the stat base instead of the script modifier. Perhaps ModPCA would work as well (modifies the base attr, at least for strength/agility etc.)? Talkie Toaster 15:22, 21 July 2007 (EDT)