From The Mana World
(This is not really up for discussion.)
Line 1: Line 1:
This is an attempt to standardize the eAthena coding. Any suggestions are welcome to be posted on the discussion page before editing.
This is an attempt to standardize the eAthena coding. Any suggestions are welcome to be posted on the discussion page before editing.


== Indentation ==
eAthena is a scripting language such as C++ or java, but for a specific compiler, people use eAthena's language to edit the game Ragnarok Online, distributed by Gravity.
 
Code is indented using 4 spaces, no tabs. Code in the same block should have the same indentation.


== Code Blocks ==
== Code Blocks ==

Revision as of 20:27, 17 September 2007

This is an attempt to standardize the eAthena coding. Any suggestions are welcome to be posted on the discussion page before editing.

eAthena is a scripting language such as C++ or java, but for a specific compiler, people use eAthena's language to edit the game Ragnarok Online, distributed by Gravity.

Code Blocks

  • Code blocks should be separated from the others in a dinstinct way; the best way of doing it is to insert a blank line between code blocks.
  • Also, the blocks should be together, (i.e.: without blank lines within them).
  • The opening brackets should be at the end of the parent line, not in a new line; the closing ones should be in a line of their own.
  • If Creating and NPC, remember to follow the rules stated in the NPC Development section.