Negative Healing?
4 posters
Page 1 of 1
Negative Healing?
Now before I'm told it's impossible, I assure you that I've seen it done before... I just don't know how.
I know the healing effect won't take a negative number, but somehow there's a way to circumvent that.
In theory, you could use this negative healing to make truly, 100% unresistable damage.
Using it for sun damage wouldn't hurt because a player could be in conersation even while taking the damage (Since it isn't combat at that point) (Plus it might allow for PCs to get magical DR/Immunity if doesn't mind changing the scripts that use it. YAY)
So anyways.. does anyone have any idea how to go about doing this?
*Note, I did try asking the original creator (I think) of the script and got no reply.
I know the healing effect won't take a negative number, but somehow there's a way to circumvent that.
In theory, you could use this negative healing to make truly, 100% unresistable damage.
Using it for sun damage wouldn't hurt because a player could be in conersation even while taking the damage (Since it isn't combat at that point) (Plus it might allow for PCs to get magical DR/Immunity if doesn't mind changing the scripts that use it. YAY)
So anyways.. does anyone have any idea how to go about doing this?
*Note, I did try asking the original creator (I think) of the script and got no reply.
evilkittenofdoom- Epic Level
- Number of posts : 1217
Age : 124
Location : Ready to Pounce at the Least Suspected Moment...
Main Character : Aseph, the NOT old sorcerer
Other Character : Analo, professional Dracolich (and other undead) hunter
Other Character. : Sivoran, the PC Demilich
Other Character.. : Imyna, Drow Priestess of Sorgath
NWN Username : evilkittenofdoom
Time Zone : EST (GMT-5)
Registration date : 2009-02-26
Re: Negative Healing?
While its an interesting question/possibility, I will just say that I dont mind there being no magical DR/Immunity in Aenea. There are few enough sources of such damage, and the ones that exist make sense to have no resistance.
It would be nice for sun damage not to force combat, but I cant think of anything else that would benefit...
It would be nice for sun damage not to force combat, but I cant think of anything else that would benefit...
daveyeisley- Ludicrous Level
- . :
Number of posts : 6934
Age : 47
Location : Watching Aenea from my Inner Sanctum on the surface of Sharlo, Aenea's Silver Moon
Main Character : Dave's List of PCs
NWN Username : Dave Yeisley
DM Name : Dungeon Master Mythgar
Time Zone : GMT - 5:00
. :
Registration date : 2008-06-03
Re: Negative Healing?
I was interested enough in this issue to do a little testing. The same problem exists in hot areas for example where an RDD with 100% fire immunity still gets forced into combat mode by the "damage". After some testing it looks like the engine forces combat mode on damage by a creature but NOT by an object and in Aenea these damage types are being applied by the victim to themselves thus initiating combat. By assigning the damage command to the area or another object I was able to cause the damage without initiating combat mode. Also interesting is that EffectRegenerate will take a negative value, but only operates if you are at less than max hp. Here is the test code and a screenie.
- Code:
void eeDoSunlightDamage (object oTarget) {
effect eHurt = EffectDamage(1,DAMAGE_TYPE_DIVINE);
ApplyEffectToObject(DURATION_TYPE_INSTANT,eHurt,oTarget);
}
void main() {
object oTarget = GetLastUsedBy();
// No effect when not dying
/*
effect eHurt = EffectHitPointChangeWhenDying(1.0f);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eHurt,oTarget);
*/
// Works! But, does not fire though when HP are at max, icon is green
/*
effect eHurt = EffectRegenerate(-1,6.0f);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eHurt,oTarget);
*/
// No effect, returns and invalid effect type as documented
/*
effect eHurt = EffectHeal(-1);
if (!GetIsEffectValid(eHurt)) {
FloatingTextStringOnCreature("NO",oTarget,FALSE);
}
ApplyEffectToObject(DURATION_TYPE_INSTANT,eHurt,oTarget);
*/
//
//effect eHurt = EffectDamage(1,8192,0); // same as magic
/*
effect eHurt = EffectDamage(1);
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eHurt,oTarget);
*/
// Works fine, but puts PC in combat mode
//AssignCommand(oTarget,eeDoSunlightDamage(oTarget));
// Damages PC without switching to combat mode
AssignCommand(GetObjectByTag("ee_p_sun"),eeDoSunlightDamage(oTarget));
FloatingTextStringOnCreature("Ouch",oTarget,FALSE);
}
eeriegeek- Worldly Guide
- Number of posts : 244
Age : 54
Main Character : Amaerillie
Other Character : K'az T'anii
Other Character. : Xephod
Other Character.. : Eg'bo
NWN Username : eeriegeek
Time Zone : GMT-4
Registration date : 2009-09-20
Re: Negative Healing?
BUMP and My two cents...I never liked how you couldn't rest right after a somebody near you rested because the magical damage caused combat.
Alundaio- Aenean Scholar
- Number of posts : 372
Age : 39
Main Character : Alundaio
Time Zone : GMT-04:00 (EST)
. :
Registration date : 2009-09-14
Similar topics
» Healing Kits
» Not Used: "negative" properties
» Used: Timestop and AI healing
» Vampire healing
» Healing Potions and Spells
» Not Used: "negative" properties
» Used: Timestop and AI healing
» Vampire healing
» Healing Potions and Spells
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum