From The Mana World
Revision as of 12:01, 14 October 2008 by Kess (talk | contribs) (EOF newline & NPC section suggestion)

Irving Rivas, 31/7/07:

Perhaps we should regulate comments?

EOF newline

I’d like to propose that all script files should have a mandatory newline at the end of file, to ease working with shell scripts on these files. —kess 14:01, 14 October 2008 (CEST)

NPC section suggestion

The NPC section isn’t there yet, and while I do not know it. Here’s a beginning text someone might be able to work off from. Note that the NPC script in new_37-1-woodland-mine/miners.txt has two additional values just before the start of the script section.

NPCs are defined like this:

map,x,y,?<TAB>script<TAB>name<TAB>spriteID,[?,?,]{

script

}

Where

  • map is the map the NPC is located in
  • x is the x-coordinate of the NPC
  • y is the y-coordinate of the NPC
  • ? is ...
  • name is the name of the NPC, is this also unused?
  • spriteID is the NPC sprite identifier
  • ? is ...
  • ? is ...
  • script is the scripting code, see below

—kess 14:01, 14 October 2008 (CEST)