Optional
action: IActionDescription<A, E, R, CU, ActionArgumentTupleTypes<A>>Readonly
eventOptional
targetReadonly
typeCheck if the action has setup CanUse logic
Rest
...skills: SkillGain[]Optional
amount: numberOptional
actionTier: numberOptional
bypass: trueOptional
times: numberChecks to see if a protected item can be used
Check if an action can be used. When used within an action, the result will automatically be processed. So it will send a message to the executor / check for mobs depending on the result.
Rest
...args: AVRest
...args: AVAlternate version of canUse that allows you to specify the facing point. Use with caution as this probably won't work for some actions
Rest
...args: AVRest
...args: AVProtected
giveCheck if a creature on a tile and blocking the execution of the action
When checking before the action is being executed: true if a creature is on a tile and that creature is not hidden, false otherwise
When checking when the action is being execute true if a creature is on a tile, false otherwise
Prompts the user about something
Rest
...args: PromptDescriptionArgs<PROMPT>Sets the contextual tool & target for an action. Exclusively used for translations atm
Optional
tool: default | defaultOptional
target: default | default | ArrayOr<default<unknown, number, EntityReferenceTypes, unknown>>Optional
details: Record<string, TranslationArg>Optional
inFront: booleanOptional
count: numberOptional
inFront: booleanOptional
turnType: TurnTypeFlagSets the chance that this action will create a rune item in the player's inventory.
Optional
chance: numberOptional
inFront: booleanStatic
executeOptional
nonMpActionExecutor: default<(ActionArgument | ActionArgument[])[], default<unknown, number, EntityReferenceTypes, unknown>, any, any, any[]>Static
getGets an action by its description. If you're using the Action class for constructing the descriptions, just pass the action instance.
Note: Prefer IActionApi.get
if you're calling this from within another action.
Generated using TypeDoc
Result of a successful canUse check.