Skip to content

mercenary

This is the type used for mercenaries.

Members

This type inherits members from spawn.

int AAPoints

AA Points spent on mercenary abilities

string Index

Index

string Name

Name of the mercenary

string Stance

Current stance of the mercenary

string State

Current state of the mercenary:

  • "DEAD"
  • "SUSPENDED"
  • "ACTIVE"
  • "UNKNOWN"

int StateID

Current state ID of the mercenary as a number.

string To String

Same as Name

Examples

Example

Check on if you have an active mercenary, mercenary is a cleric, and if it's stance is NOT reactive.... then change it TO reactive.

/if (${Mercenary.State.Equal[ACTIVE]} && ${Mercenary.Class.Name.Equal[Cleric]} && ${Mercenary.Stance.NotEqual[REACTIVE]}) {
    /stance reactive
}