conversations

package
v0.9.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttemptConversation

func AttemptConversation(initiatorMobId int, initatorInstanceId int, initiatorName string, participantInstanceId int, participantName string, zone string, forceIndex ...int) int

Returns a non empty ConversationId if successful

func Destroy

func Destroy(conversationId int)

func GetNextActions

func GetNextActions(convId int) (mob1 int, mob2 int, actions []string)

func HasConverseFile

func HasConverseFile(mobId int, zone string) bool

func IsComplete

func IsComplete(conversationId int) bool

func ZoneNameSanitize

func ZoneNameSanitize(zone string) string

Types

type Conversation

type Conversation struct {
	Id             int
	MobInstanceId1 int
	MobInstanceId2 int
	StartRound     uint64
	LastRound      uint64
	// What the actions are and where we are in them
	Position   int
	ActionList [][]string
}

func (*Conversation) NextActions

func (c *Conversation) NextActions(roundNow uint64) []string

type ConversationData

type ConversationData struct {
	// A map of lowercase names of "Initiator" (#1) to array of
	// "Participant" (#2) names allowed to use this conversation.
	Supported map[string][]string `yaml:"Supported"`
	// A list of command lists, each prefixed with which Mob should execute
	// the action (#1 or #2)
	Conversation [][]string `yaml:"Conversation"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL