Advanced Scripting: Difference between revisions
From Iron Realms Nexus Client Documentation
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
*[[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: | |||
* '''Hints and tips:''' | |||
** Namespacing | ** Namespacing | ||
*** Each reflex and script is sandboxed. You will want to use the '''client.''' object as a shared namespace for custom functions, variables, etc. | *** 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:37, 23 February 2016
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.
- Namespacing