Page 1 of 1
MaxHP
Posted: Mon May 22, 2006 10:07 pm
by Exar Kun
Does the assignment of this prop happen in the core? Looking around, I can see that only weapons and armor have this element listed in their config descriptions.
Thanks.
Posted: Mon May 22, 2006 10:39 pm
by Marilla
When an armor/weapon item is created, its MaxHP member is set to the config setting. and it ReadOnly. You can use the MaxHP_Mod member to adjust it from script, but you can't alter the MaxHP member itself.
Posted: Tue May 23, 2006 9:14 am
by Exar Kun
Thanks, Marilla. That's consistent with what I've tried through the .iteminfo interface.
Okay, let me re-ask then; that is a core function?
I want to add the same props to all usable items so everything decays with use over time. Do I just need to write my own code to handle with with CProps?