Skip to content

nationoralliance_placeholders

xdnw edited this page Mar 16, 2024 · 10 revisions

Placeholder Syntax

  • <arg> - A required parameter

  • [arg] - An optional parameter

  • <arg1|arg2> - Multiple parameters options

  • <arg=value> - Default or suggested value

  • [-f flag] - A optional command argument flag

Example discord usage

For placeholders {getLand}

For filters #getLand>30

Use round brackets for arguments #myFunction(123)


Placeholders


#getResource - double

This command is public

Gets a resource amount from a map of resources

Arguments:

<resources> - Map<ResourceType, Double>

A comma separated list of resources and their amounts

<resource> - ResourceType

The name of a resource


#getResourceValue - double

This command is public

Gets the total resource value for a map of resources

Arguments:

<resources> - Map<ResourceType, Double>

A comma separated list of resources and their amounts


#getSheetUrl - String

This command is public

Get the sheet url for this nation/alliance

This command has no arguments


#isValid - boolean

This command is public

If this exists in game

This command has no arguments


Clone this wiki locally