Skip to main content

RelationPacket

Module: Inworld.AI. Namespace: Inworld.Packet. Inherited from InworldPacket

This packet is used for character relationship updates.

VariablesDescription
debugInfoThe RelationEvent of the packet.
PropertiesDescription
ToJsonGenerates the string of json to send to the Inworld server.
RelationGet the detailed relation update.

RelationEvent

Module: Inworld.AI. Namespace: Inworld.Packet.

This class represents a "RelationEvent," which encapsulates the relationship data received within the packet.

VariablesDescription
relationThe RelationData received in this event.

RelationData

Module: Inworld.AI. Namespace: Inworld.Packet.

"RelationData" comprises crucial information that character interactions rely on, reflecting the current and incoming state of character relationships.

VariablesDescription
relationStateThe current RelationState.
relationUpdateThe incoming RelationState.

RelationState

Module: Inworld.AI. Namespace: Inworld.Packet.

The "RelationState" class breaks down relationship information into various attributes, each contributing to the overall dynamics of character interactions.

VariablesDescription
trustReflects the level of trust between player and the character.
respectIndicates the degree of respect shown by the character.
familiarRepresents the level of familiarity shared by the character.
flirtatiousCaptures the extent of flirtatious interactions of the character.
attractionMeasures the level of mutual attraction of the character.
FunctionsDescriptionParameters
IsEqualToReturn if this RelationState is equal to the required RelationState.url: the incoming RelationState.
ToStringRelationState as a string representation.
UpdateByTriggerUpdate the current RelationState by the TriggerParameterinput: the returned TriggerParameter
GetUpdateReturn a string summarizing the relationship updates based on the incoming RelationState.url: the incoming RelationState.