
05-16-2007, 02:12 AM
|
|
Registered Omega
|
 |
Join Date: Apr 2006
Location: United States
Posts: 1,920
|
|
Quote:
Originally Posted by PrinceOfKenshin
I guess the problem is...as it the same with me that we don't need the basic info on it but just how to apply certain things.
Forexample:
NPC Code:
abs(float)
arctan(float) - arcus tangens
char(ascii) - gets the character for an ascii code (char(65) returns 'A')
cos(angle) - cosinus of a radiant angle
exp(float)
float(string) - for explicitely converting a string
to number (normally done automatically though
when accessing a string with numeric operators)
format(format,parameters,...) - formats a "%s %d" string,
inserts the parameters, and returns a string
getangle(delta x,delta y)
getdir(delta x,delta y) - returns 0 for up, 1 for left,
2 for down, 3 for right
int(a) - gets the integer part of a floating point number
log(base,a)
max(a,b)
min(a,b)
printf(format,parameters,...) - same as
echo(format(format,parameters,...))
random(rangestart,rangeend)
sin(angle) - sinus of a radiant angle
sleep(time) - suspends the current script for some time
vecx(direction 0..3)
vecy(direction 0..3)
waitfor(objectname,event[,timeout]) - suspends the current script
all that yea sure it tells me what it is but how do i apply that to make it work in a script. Some things in there i understand like the obvious ones. The only other language i know is Visual Basics so im not use to programming an object oriented langauge.
Like what am i going to use arctan(float) for? stuff like that is confussing to people.
|
You shouldn't really be focusing on trying to memorize or even understand all the functions of GS2.
It's not all about memorizing everything. |
__________________
REMEMBER, IF YOU REP ME, LEAVE A NAME! 
Quote:
Originally Posted by haunter
Graal admins don't die. They go to hell and regroup.
|
Quote:
Originally Posted by Inverness
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
|
|
|
|
|