A tog kill option

Posted by Rob Harper on Sat 05 Jul 2003 07:01 AM — 4 posts, 16,096 views.

#0
Hey guys I was wonderng how can I make a tog option ie they type toggle or just tog and when fighting if toggeled to spare they will simply stun the player, ie the fight would stop around say 1? and umm how can I make it so people die around -5? but if around -4 they can regen up?


Thanks
USA #1
Hrm..... SMAUG may have a subdue combat option that can render the enemy unconscious instead of killing them. As for the regen question, stock code should allow healing from anywhere above -10 hps, -10 being fatal but as I recall, the code is slightly glitchy in that anything below -10 that isnt fatal will never kill or regen. Granted, there arent a lot of ways to do that but it is possible.
#2
Hmmm I see, after much searching I'm still at ground zero...I plan a pretty sweet use for the stop of a pkill if togged, ..but dont know how to make a function that would stop an attacking if togged to spare in a player to player fight.
USA #3
I believe you would add a check to the damage function. If damage is enough to kill the victim (if damage > victim->hit I think), and the attacker is toggled (IS_SET(ch->act, PLR_TOGGLE) or whatever) then simply cap the damage at victim's hitpoints, and do whatever fancy ending you want.