Can someone point out what, if anything, I am missing?
Thanks.
Modifié par Craig Graff, 12 avril 2010 - 06:12 .
Craig Graff wrote...
Have you tried SetCurrentHealth? It's basically a wrapper for
SetCreatureProperty(oObject,PROPERTY_DEPLETABLE_HEALTH, fNewValue, PROPERTY_VALUE_CURRENT);
If you specifcally want to set the max health when you don't know the current health, you could try PROPERTY_VALUE_BASE instead of PROPERTY_VALUE_CURRENT.
TimelordDC wrote...
Are you overriding the sys_chargen script and adding your code in the EVENT_TYPE_CHARGEN_SELECT_class?
If so, you need to add the code into EVENT_TYPE_CHARGEN_SELECT_BACKGROUND too since till (and including) that point, the character is reinitialized every time you select a race, class or background.
Magic wrote...
The problem can be found a lot easier when it is known what you're actually changing and where. As Timelord wrote, mostly like the Chargen_InitializeCharacter() calls in sys_chargen.nss are resetting what changes you made to the health property.