Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-12-2011, 06:36 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
V6 Script Function Changes

I was curious to see what kind of functionality we may have lost or gained in the latest V6 compared to previous versions. You can see the diff I generated here:

http://fp4.ca/v6diff.html

Enjoy.

Disclaimer: The lines that are removed are only removed from the generated documentation which doesn't necessarily mean they've been removed from the client (most probably are however).
Attached Files
File Type: txt scriptfunctions_client_6_0_0_7.txt (102.8 KB, 398 views)
File Type: txt scriptfunctions_client_5_1_2_0.txt (81.8 KB, 301 views)
__________________
Quote:

Last edited by fowlplay4; 08-12-2011 at 06:58 AM..
Reply With Quote
  #2  
Old 08-12-2011, 06:42 AM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
levelorgy - float (read only)

hehehe
__________________
Reply With Quote
  #3  
Old 08-12-2011, 07:35 AM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Run it one of the things that make the +s green and the -s red.
Reply With Quote
  #4  
Old 08-12-2011, 08:58 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by WhiteDragon View Post
Run it one of the things that make the +s green and the -s red.
Done, looks prettier now.
__________________
Quote:
Reply With Quote
  #5  
Old 08-12-2011, 09:30 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Why does this even exist?
PHP Code:
enableganimoviereposition boolean 
__________________
Reply With Quote
  #6  
Old 08-12-2011, 10:22 PM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
PHP Code:
defaultwalkspeed float specifies the speed of the default movement (by default 0.5
This is nice. However, speeds 1 and over have bad wall detection.
Thats dissapointing...
__________________

Reply With Quote
  #7  
Old 08-12-2011, 10:30 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by oo_jazz_oo View Post
PHP Code:
defaultwalkspeed float specifies the speed of the default movement (by default 0.5
This is nice. However, speeds 1 and over have bad wall detection.
Thats dissapointing...
It was only added for iphone, and they didn't need speeds over 1...
Reply With Quote
  #8  
Old 08-12-2011, 10:43 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by oo_jazz_oo View Post
Thats dissapointing...
What's not disappointing is that the default movement system has better wall detection compared to v5. Lizard shield bug and the like are eliminated. And speeds above 1 are stupid anyway ^_^
__________________
Reply With Quote
  #9  
Old 08-12-2011, 10:46 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Crow View Post
What's not disappointing is that the default movement system has better wall detection compared to v5. Lizard shield bug and the like are eliminated. And speeds above 1 are stupid anyway ^_^
Lizard shield bug?
Reply With Quote
  #10  
Old 08-12-2011, 10:53 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by DustyPorViva View Post
Lizard shield bug?
The one where you could walk through the blocking tile to the right of you if you had the lizard shield (level 3) and your player.x was 15.5. Many other spots as well. Fixed in v6.
__________________
Reply With Quote
  #11  
Old 08-12-2011, 11:00 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Crow View Post
The one where you could walk through the blocking tile to the right of you if you had the lizard shield (level 3) and your player.x was 15.5. Many other spots as well. Fixed in v6.
Ah ya. I imagine he didn't fix walking through single tile diagonal gaps though. Would probably hear a lot of whining about that.
Reply With Quote
  #12  
Old 08-12-2011, 11:03 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by DustyPorViva View Post
Ah ya. I imagine he didn't fix walking through single tile diagonal gaps though. Would probably hear a lot of whining about that.
I, personally, don't even consider this a bug anymore. "It's not a bug, it's a feature."

Well, it has become one.
__________________
Reply With Quote
  #13  
Old 08-13-2011, 02:15 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Any idea how these are used?
PHP Code:
TGUIAnimation (TGraalVar):
amplitude float amplitude for moveupdownmoveleftright and zoominout
currenttime 
float
delay 
float the animation starts after the specified number of seconds
duration 
float the animation will last the specified number of seconds
interval 
float interval for moveupdownmoveleftright and zoominout
tabfirstonshow 
boolean calls tabfirst() after showing the controlby default true
timing 
string timing function: 'linear' or 'sinus'sinus is only used for moveupdownmoveleftright and zoominout
transition 
string specifies the animation typefadeoutfadeinmoveoutleftmoveinleftmoveoutrightmoveinrightmoveouttopmoveintopmoveoutbottommoveinbottommoveupdownmoveleftrightflipoutleftflipinleftflipoutrightflipinrightzoominzoomoutzoominoutgrowingrowoutshrinkinshrinkoutrotateoutleftrotateinleftrotateoutrightrotateinright 
PHP Code:
Key (TStaticVar):
backspace integer (read only)
capslock integer (read only)
control integer (read only)
deletekey integer (read only)
down integer (read only)
end integer (read only)
enter integer (read only)
escape integer (read only)
home integer (read only)
insert integer (read only)
left integer (read only)
pgdn integer (read only)
pgup integer (read only)
right integer (read only)
shift integer (read only)
space integer (read only)
tab integer (read only)
up integer (read only)
addlistener(obj)
getascii() - returns integer
getcode
() - returns integer
isaccessible
() - returns boolean
isdown
(int) - returns boolean
istoggled
(int) - returns boolean
removelistener
(obj) - returns boolean 
Also:
PHP Code:
isofflinemode() - returns boolean says if the game is running in offline mode (only for special packaged games
__________________
Testbed user: I figured since I can never find any scripters it was time to take desperate measures...and...TEACH MYSELF 0.0
Reply With Quote
  #14  
Old 08-13-2011, 02:20 PM
Rave_J Rave_J is offline
Graal Developer
Join Date: Feb 2006
Location: Texas
Posts: 848
Rave_J can only hope to improve
Send a message via AIM to Rave_J Send a message via MSN to Rave_J Send a message via Yahoo to Rave_J
did they add function OnMouseGrab () {
what im working on would make it easier if there was

i know there is a startdrag() but
wont work like they way i want it too
__________________
Graal Developer
Reply With Quote
  #15  
Old 08-13-2011, 02:33 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
For the animations,

PHP Code:
temp.animation this.createAnimation();
temp.animation.duration 1;
temp.animation.transition "moveoutleft"
Mostly for iPhone stuff, but it also works on v6 clients. It lets you easily fade in/out or move in/out GUI objects.
__________________
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 01:03 AM.


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