Page 1 of 1

LUA commands ModifyHP and ModifyPower

Posted: Tue Jan 27, 2009 8:48 pm
by Scatman
LE, were ModifyHP and ModifyPower meant to increase the max HP and power respectively of the spawn? As of right now, using ModifyHP on a spawn will add the value passed in as a parameter to ModifyHP, to the spawn's max health. I always thought it was supposed to modify the current hp of the spawn's health, and not to exceed the max. If these functions are working as intended, then I'd like to modify the names of these two to ModifyTotalHP and ModifyTotalPower and I will write two different functions to modify the current hp/power of the spawn.

Re: LUA commands ModifyHP and ModifyPower

Posted: Fri Feb 06, 2009 7:15 pm
by LethalEncounter
Wow, don't know how I missed this post :P This might not apply anymore as you might have changed it already, but:

Those functions were created to allow you to set the total power/hp for a spawn as you noticed. However, somehow they weren't deleted whenever the newer functions were added.

Re: LUA commands ModifyHP and ModifyPower

Posted: Fri Feb 06, 2009 7:26 pm
by Scatman
Np :) I've modified ModifyHP and ModifyPower to add to the spawn's current hp or power respectively and not to exceed their max and just made two commands ModifyMaxHP and ModifyMaxPower and copied/pasted the code into those new functions.