bleed
Begins and ends the bleeding of a mobile, and tells whether it bleeds.
Source: src/Moongate.Server.Ultima/Modules/BleedModule.cs
Functions
Section titled “Functions”bleed.begin(victim, attacker) -> booleanBegins the bleeding of the mobile, of the attacker given: both are told, the victim bleeds for ten seconds — five ticks of two seconds, the damage random from the tick's level to its double and less a point a tick, double for an NPC, a pool of blood under it each tick — and the fifth tick heals the wounds. A new begin replaces a running one; nothing is saved. False for a dead or unknown victim.
| Parameter | Type | Default |
|---|---|---|
victim | integer | |
attacker | integer |
Returns boolean.
is_bleeding
Section titled “is_bleeding”bleed.is_bleeding(victim) -> booleanWhether the mobile is bleeding, as the bandage asks it; false for an unknown mobile.
| Parameter | Type | Default |
|---|---|---|
victim | integer |
Returns boolean.
bleed.stop(victim) -> booleanEnds the mobile's bleeding and tells it nothing — the texts of an end are the caller's. False when it was not bleeding.
| Parameter | Type | Default |
|---|---|---|
victim | integer |
Returns boolean.
Made with ❤️ by Tom
