is_outpost_tribe_owner - ryzom/ryzomcore GitHub Wiki


title: Is Outpost Tribe Owner description: published: true date: 2023-03-14T02:49:41.754Z tags: editor: markdown dateCreated: 2023-03-14T02:49:41.754Z

isOutpostTribeOwner

The isOutpostTribeOwner native AI script function checks whether the current outpost owner is a tribe (group must be in an outpost NPC manager). It returns 1 if the owner of the current outpost is a tribe, 0 otherwise.

Syntax

(tribeOwner)isOutpostTribeOwner(); // isOutpostTribeOwner__f

Return value

  • tribeOwner (float): Returns 1 if the owner of the current outpost is a tribe, 0 otherwise.

Examples

($tribeOwner)isOutpostTribeOwner();
if ($tribeOwner == 1.0f) {
    debug("The current outpost owner is a tribe!");
}

This example code calls the isOutpostTribeOwner function and stores the result in the $tribeOwner variable. If the owner of the current outpost is a tribe, it prints a debug message.

Notes

This function can only be used when the group is in an outpost NPC manager. It checks whether the owner of the outpost is a tribe or not.

This function is useful for determining the type of owner of an outpost, as different types of owners may have different interactions and behaviors.

⚠️ **GitHub.com Fallback** ⚠️