Actions

Advanced Scripting: Difference between revisions

From Iron Realms Nexus Client Documentation

No edit summary
No edit summary
Line 4: Line 4:
*[[Functions]]: Create custom javascript functions to use in with other [[reflexes]].
*[[Functions]]: Create custom javascript functions to use in with other [[reflexes]].
*[[GMCP]]: The game server communicates behind the scenes with the Nexus client using GMCP. You can access this information.
*[[GMCP]]: The game server communicates behind the scenes with the Nexus client using GMCP. You can access this information.
* Hints and tips:
** Namespacing
Each reflex and script is sandboxed. You will want to use the '''client.''' object as a shared namespace for custom functions, variables, etc.

Revision as of 20:36, 23 February 2016

A grook Occultist from Achaea.

The simplfied scripting system in the Nexus client should offer enough options for most players of the game. However, for those of you that may need a bit more power, or have some specific need that Nexus can't fill, you can use javascript to do nearly everything else.

  • Javascript: Javascript is the scripting language for the Nexus client.
  • Functions: Create custom javascript functions to use in with other reflexes.
  • GMCP: The game server communicates behind the scenes with the Nexus client using GMCP. You can access this information.
  • Hints and tips:
    • Namespacing

Each reflex and script is sandboxed. You will want to use the client. object as a shared namespace for custom functions, variables, etc.