Field manual / Level editor
hero — Party
The hero party: the selected hero, who is in the party, enabling and placing heroes, whether any hero has something.
Summary
hero::AnyInArea | True if at least one enabled and placed hero stands inside the zone's polygon (by background point). |
hero::GetSelected | Returns the name of the currently selected hero. |
hero::InParty | True if the hero is in the party (on the panel) and enabled. |
hero::SetInParty | The hero joins the party (1) or leaves it (0); outside_party is set to the opposite value. |
hero::EnableAll | Enables all heroes without the outside_party flag (party members). |
hero::DisableOthers | Disables all party heroes except the selected one. |
hero::PlaceAll | Places the heroes in the zone on floor 0 or 1 and moves the camera immediately. |
hero::AnyHasItem | True if the item's owner is a party hero. |
hero::AnyHasAmmo | True if any party hero has ammo for the weapon (the same check as in item::HasAmmo). |
Functions
hero::AnyInArea(string) → bool
True if at least one enabled and placed hero stands inside the zone's polygon (by background point).
hero::GetSelected() → string
Returns the name of the currently selected hero.
hero::InParty(string) → bool
True if the hero is in the party (on the panel) and enabled.
hero::SetInParty(string, int) → int
The hero joins the party (1) or leaves it (0); outside_party is set to the opposite value.
hero::EnableAll() → int
Enables all heroes without the outside_party flag (party members).
hero::DisableOthers() → int
Disables all party heroes except the selected one. Right after level::Load it acts on the new level.
hero::PlaceAll(string, ?int) → int
Places the heroes in the zone on floor 0 or 1 and moves the camera immediately. Returns 1; after level::Load it acts on the new level.
hero::AnyHasItem(string) → bool
True if the item's owner is a party hero.
hero::AnyHasAmmo(string) → bool
True if any party hero has ammo for the weapon (the same check as in item::HasAmmo).