Alexandria Uptime: 2.50 Days
Total players online: 1



Take the Tour | Site Map

Chapter 1. Authoring Guide

Table of Contents

Naming Conventions
EasyUO System Variables
Usage of #sCnt and #sCnt2

Naming Conventions

Sub names must be unique and meaningful. Labels use within a sub should be composed with the sub's name prefixed by an underscore like:

sub openContextMenu
  ...
  if %outsideScreen = 1
    goto _openContextMenuExit
  ...
_openContextMenuExit:
  ...
return

Using only the sub's name prefixed by an underscore is acceptable:

sub findItemInContainer
	set %_idx 1
_findItemInContainer:
  findItem %1 %_idx
  set %_idx %_idx + 1
  if #findKind = 1
    goto _findItemInContainer
return

User variables usage should be kept minimal. Variable names should be prefixed by an underscore with the possible exception of variable used to return values. Meaningful variable names are encouraged.

  set %_newCursorX %_cursorX + 40
  set %return %_FALSE