Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-19-2005, 03:00 PM
Benm00t Benm00t is offline
I made a tree!
Benm00t's Avatar
Join Date: Jul 2003
Location: The Intarwebbernetwork!
Posts: 987
Benm00t is on a distinguished road
Quote:
Originally Posted by Evil_Trunks
seconds since 00:00:00 UTC, January 1, 1970, with nanoseconds precision
How can it have nanosecond precision when it's only counting in seconds.
__________________
Lag is a good thing. Only those without it complain.

~ Ben
Reply With Quote
  #2  
Old 06-19-2005, 08:04 PM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
Quote:
Originally Posted by Benm00t
How can it have nanosecond precision
the magic of decimals
__________________

Reply With Quote
  #3  
Old 06-20-2005, 12:43 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Ah its a little bit confusing, most of those commands are from Graal2D and exist for a long time, also you should also list the object type if you list object functions.

emoticonchar - also #E i think, its the character you typed for emoticons (Ctrl+key), this has been added before keydown2 was available

obj.sortascending() / obj.sortdescending() is sorting an array by name

worldminute, syntimeofday etc. is the for Graal3D daynight effect

waterheight - defines the z of the water on terrain (e.g. on Kingdoms)

gravity - can be set on clientside and serverside and defines how much projectiles (shoot) are moved towards the ground, default value is 2 i think, on Zone it is only 0.2 so that projectiles don't fly in a curve

requestfilesmove is for the scripted RC i think, not sure

selectedsword - gives the index of the sword weapon (not sure if its available in normal Graal but it has been used some years ago)

I will add more descriptions to the scripting commands, when you do "Graal4.exe -listscriptfunctions" it is listing all available functions and most built-in variables, and it is also giving some short description for important functions, but I haven't got the time yet to document them all.
Reply With Quote
  #4  
Old 06-20-2005, 01:44 AM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
Okay, thank you.

If only I had Graal4.
Reply With Quote
  #5  
Old 06-20-2005, 12:40 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally Posted by Stefan
I will add more descriptions to the scripting commands, when you do "Graal4.exe -listscriptfunctions" it is listing all available functions and most built-in variables, and it is also giving some short description for important functions, but I haven't got the time yet to document them all.
We have been thinking about doing some documentation on #gscript for GS2 with the scriptfunctions file. Is there any specific format it should be written in to make it easier for you to implement, or should the documentation just be written at the end of each line?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.