View Single Post
  #5  
Old 10-11-2006, 05:12 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
function funcname() { operations; }
should probably be:
function funcname(parameters) { operations; }

--

return; ends the function immediatelly and returns to the function caller
Might be:
return value; ends the function immediatelly and returns the value specified. (If no value is specified 'null' or 0 is returned)

--

triggeraction(x,y,actionname,params); triggers an ‘if (action<action>)...’ on the objects on (x,y)
should be updated to gscript2 aswell:
triggeraction(x,y,actionname,params); triggers an ‘onAction<Action>()...’ on the objects on (x,y)

--

This is no longer correct:
this. variables that start with ‘this.’ are only accessible for the npc itself
and something should be written up for 'temp.' and non-prefixed variables aswell.

--

Built-in Flags/Events (function on...() {) true when:
...
onwall( x, y ) the specified field is blocked

You can't use functions with the syntax onOnWall(x,y)() etc. This section should be revised to differentiate functions from flags.

--

str SPC str inserts a space between two strings
should be appended after:
str NL str line break ( NL is an abbreviation for 'newline' )

These should be moved to the operators section, aswell.

--

@ should be added to the operators section, as a string concatination method.

--

Some things need to be marked as deprecated, and some things in that no longer work correctly.


These are the things I've noticed at first glance. If I have time tomorrow or something I will go through it again and possibly write up something for the ones I didn't provide much information for.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote