LUA commands ModifyHP and ModifyPower
Moderator: Team Members
- Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
LUA commands ModifyHP and ModifyPower
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.
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Re: LUA commands ModifyHP and ModifyPower
Wow, don't know how I missed this post
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.
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.
- Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Re: LUA commands ModifyHP and ModifyPower
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.
Who is online
Users browsing this forum: No registered users and 0 guests