Interface IXR_relation_registry

namespace relation_registry

interface IXR_relation_registry {
    change_community_goodwill(
        this: void,
        from_community: string,
        to_object_id: number,
        delta_goodwill: number,
    ): void;
    community_goodwill(
        this: void,
        from_community: string,
        to_object_id: number,
    ): number;
    community_relation(
        this: void,
        from_community: string,
        to_community: string,
    ): number;
    get_general_goodwill_between(
        this: void,
        from_object_id: number,
        to_object_id: number,
    ): number;
    set_community_goodwill(
        this: void,
        from_community: string,
        to_object_id: number,
        goodwill: number,
    ): void;
    set_community_relation(
        this: void,
        from_community: string,
        to_community: string,
        goodwill: number,
    ): void;
}

Methods

  • Change relation from community to object by delta_goodwill.

    Parameters

    • this: void
    • from_community: string
    • to_object_id: number
    • delta_goodwill: number

    Returns void

  • Parameters

    • this: void
    • from_community: string
    • to_object_id: number

    Returns number

  • Parameters

    • this: void
    • from_community: string
    • to_community: string

    Returns number

    relation points between communities, usually between -5000 and 5000

  • Get relation from object to actor. Return formula looks like personal_goodwill + community_to_obj_goodwill + community_to_community_goodwill.

    Parameters

    • this: void
    • from_object_id: number

      object from

    • to_object_id: number

      object to

    Returns number

    general goodwill from object to another object based on personal and community goodwill

  • Parameters

    • this: void
    • from_community: string
    • to_object_id: number
    • goodwill: number

    Returns void

  • Parameters

    • this: void
    • from_community: string
    • to_community: string
    • goodwill: number

    Returns void