A
/ \ _ Play Now Nemesis on
| | | | _______ _ _ _______ _______ _ _______
| |\ | | | ____| | \ / | | ____| / ____| | | / ____|
/-------/-------------------------------------------------------------------,
O= Home <=XX| About News Pics Adventurers Wizards Download Connect >
\-------\-------------------------------------------------------------------'
| | \ | | |____ | | | | | |____ ___ \ \ | | ___ \ \
| | \_| |_______| |_| |_| |_______| |_______/ |_| |_______/
\ /
V
Documentation Area
Document Path: /doc/living/reduce_hit_point
Name: reduce_hit_point - reduce the hit points in a living
Syntax:
int reduce_hit_point(int damage)
Description:
The reduce_hit_point function reduces the hit points in a living. The
player can't die from this operation for if the hit points are reduced
below zero they are set to 1.
The single argument must be a positive integer and states the amount
if hit points to be reduced.
Return value:
The function returns an integer containing the new hit points of the
living.
Examples:
this_player()->reduce_hit_point(10);
See also:
This page was generated in LPC
Imprint / Impressum