Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   V6 Script Function Changes (https://forums.graalonline.com/forums/showthread.php?t=134264191)

fowlplay4 08-12-2011 06:36 AM

V6 Script Function Changes
 
2 Attachment(s)
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).

Crono 08-12-2011 06:42 AM

levelorgy - float (read only)

hehehe

WhiteDragon 08-12-2011 07:35 AM

Run it one of the things that make the +s green and the -s red.

fowlplay4 08-12-2011 08:58 PM

Quote:

Originally Posted by WhiteDragon (Post 1663201)
Run it one of the things that make the +s green and the -s red.

Done, looks prettier now.

Crow 08-12-2011 09:30 PM

Why does this even exist?
PHP Code:

enableganimoviereposition boolean 


oo_jazz_oo 08-12-2011 10:22 PM

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...

DustyPorViva 08-12-2011 10:30 PM

Quote:

Originally Posted by oo_jazz_oo (Post 1663280)
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...

Crow 08-12-2011 10:43 PM

Quote:

Originally Posted by oo_jazz_oo (Post 1663280)
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 ^_^

DustyPorViva 08-12-2011 10:46 PM

Quote:

Originally Posted by Crow (Post 1663285)
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?

Crow 08-12-2011 10:53 PM

Quote:

Originally Posted by DustyPorViva (Post 1663288)
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.

DustyPorViva 08-12-2011 11:00 PM

Quote:

Originally Posted by Crow (Post 1663290)
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.

Crow 08-12-2011 11:03 PM

Quote:

Originally Posted by DustyPorViva (Post 1663292)
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.

DrakilorP2P 08-13-2011 02:15 PM

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


Rave_J 08-13-2011 02:20 PM

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

cbk1994 08-13-2011 02:33 PM

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.


All times are GMT +2. The time now is 10:37 AM.

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