Skip to content

bleed

Begins and ends the bleeding of a mobile, and tells whether it bleeds.

Source: src/Moongate.Server.Ultima/Modules/BleedModule.cs

bleed.begin(victim, attacker) -> boolean

Begins 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.

ParameterTypeDefault
victiminteger
attackerinteger

Returns boolean.

bleed.is_bleeding(victim) -> boolean

Whether the mobile is bleeding, as the bandage asks it; false for an unknown mobile.

ParameterTypeDefault
victiminteger

Returns boolean.

bleed.stop(victim) -> boolean

Ends the mobile's bleeding and tells it nothing — the texts of an end are the caller's. False when it was not bleeding.

ParameterTypeDefault
victiminteger

Returns boolean.

Made with ❤️ by Tom

Buy me a coffee