Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Questions about V6 (https://forums.graalonline.com/forums/forumdisplay.php?f=196)
-   -   New script features (https://forums.graalonline.com/forums/showthread.php?t=75350)

coreys 07-13-2007 10:38 PM

New script features
 
What are the new script features of v5?

Inverness 07-14-2007 01:06 AM

I would like to know this myself. I must say I have always been rather irritated with Graal for the lack of documentation for the scripting engine, there are so many functions listed on the Wiki that only tell you what type of variable you need to input and not actually anything important like what that variable is for or what exactly the whole function does.

PrinceOfKenshin 07-14-2007 01:08 AM

Well i have the commands.rft for gs2 would that help you at all? I am pretty sure you have it but i am just putting it out there

coreys 07-14-2007 01:15 AM

I would also like to know how to set the server time on the start bar. I'm guessing that this would be a new script feature, as the login server has been able to set the server time on the start bar for some time now, but now that the start bar appears on all servers, it would beneficial to allow servers to set the time that shows on the start bar...right now it shows blank on anything other than the login server.

Inverness 07-14-2007 01:39 AM

We're waiting, I don't want the new scripting features to be a huge guessing game.

xXziroXx 07-14-2007 01:43 AM

This I want to know asap! :)

Admins 07-14-2007 01:49 AM

I will post the list of new features on the wiki tomorrow

xXziroXx 07-14-2007 01:54 AM

Quote:

Originally Posted by Stefan (Post 1329501)
I will post the list of new features on the wiki tomorrow

Dont forgett to link us when you're done! :D

Inverness 07-14-2007 11:36 AM

I'm still wanting to define read/write functions for variables, hopefully such a thing wouldn't be laggy.

Twinny 07-14-2007 11:40 AM

Quote:

Originally Posted by coreys (Post 1329484)
I would also like to know how to set the server time on the start bar. I'm guessing that this would be a new script feature, as the login server has been able to set the server time on the start bar for some time now, but now that the start bar appears on all servers, it would beneficial to allow servers to set the time that shows on the start bar...right now it shows blank on anything other than the login server.

I'm not sure if that toolbar will be accessible as an object to us. Would be great if it was though :D

Inverness 07-14-2007 11:43 AM

Quote:

Originally Posted by Twinny (Post 1329889)
I'm not sure if that toolbar will be accessible as an object to us. Would be great if it was though :D

Serverlist_TaskBar.hide();
Serverlist_TaskButton_Toggle.hide();

Twinny 07-14-2007 11:45 AM

Quote:

Originally Posted by Inverness (Post 1329890)
Serverlist_TaskBar.hide();
Serverlist_TaskButton_Toggle.hide();

Is that all there is? :(

Inverness 07-14-2007 11:51 AM

No...
PHP Code:

for (temp.iServerlist_TaskBar.controls) {
  echo(
i.name);


Messing with it can get kinda weird, I recommend simply doing Serverlist_TaskButton_Toggle.performClick(); on login if you wish to hide the TaskBar automatically. For some reason it doesn't appear to actually 'toggle' if you call the function again X_X

Twinny 07-14-2007 11:58 AM

Quote:

Originally Posted by Inverness (Post 1329894)
No...
PHP Code:

for (temp.iServerlist_TaskBar.controls) {
  echo(
i.name);


Messing with it can get kinda weird, I recommend simply doing Serverlist_TaskButton_Toggle.performClick(); on login if you wish to hide the TaskBar automatically. For some reason it doesn't appear to actually 'toggle' if you call the function again X_X

Yay i can edit the button text :D. Hell, i just removed the 'Start' button :p. Now when I change server, it still is deleted :D

I didn't think these objects would be available to edit but I think they will soon be read-only anyways.

Inverness 07-14-2007 12:01 PM

I want some way to trigger an event on all objects existing on the clientside or serverside =( Without having to manually add non-weapon objects by script, like I'm currently doing.

Edit: Please Stefan, hire/assign someone to do all the script documentation =( Its killing me.

Twinny 07-14-2007 12:08 PM

Quote:

Originally Posted by Inverness (Post 1329901)
I want some way to trigger an event on all objects existing on the clientside or serverside =( Without having to manually add non-weapon objects by script, like I'm currently doing.

Edit: Please Stefan, hire/assign someone to do all the script documentation =( Its killing me.

We could poke Skyld with a pointy stick until he does :D

Admins 07-14-2007 12:08 PM

Do
("-Serverlist").showTaskBar();
or
("-Serverlist").hideTaskBar();

Modifying the trial bar is not allowed though, if a server is doing that then it will be shutdown.

Twinny 07-14-2007 12:10 PM

Quote:

Originally Posted by Stefan (Post 1329905)
Do
("-Serverlist").showTaskBar();
or
("-Serverlist").hideTaskBar();

Modifying the trial bar is not allowed though, if a server is doing that then it will be shutdown.

Make it read-only with no access to functions on trials? :D

Inverness 07-14-2007 12:22 PM

Quote:

Originally Posted by Twinny (Post 1329907)
Make it read-only with no access to functions on trials? :D

Silly rabbit, tricks are for kids.

Twinny 07-14-2007 12:31 PM

Quote:

Originally Posted by Inverness (Post 1329912)
Silly rabbit, tricks are for kids.

The heck?

Inverness 07-14-2007 12:42 PM

Quote:

Originally Posted by Twinny (Post 1329915)
The heck?

Thats about how much sense you made.

Twinny 07-14-2007 02:23 PM

I meant make the taskbar object unaccessible if the player is a trial

Inverness 07-14-2007 06:46 PM

The clock is ticking ;)

coreys 07-14-2007 11:04 PM

Quote:

Originally Posted by Twinny (Post 1329954)
I meant make the taskbar object unaccessible if the player is a trial

Stefan meant the bar on top that tells the player they are a trial and they are limited.

JkWhoSaysNi 07-14-2007 11:25 PM

Yeah, I'm pretty sure that's what he meant.

Just don't have any scripts that do anything with it and you'll be fine :)

I guess this also applies to resizing the graalcontrol for trials (if it's even possible).

coreys 07-15-2007 12:27 AM

Quote:

Originally Posted by JkWhoSaysNi (Post 1330354)
Yeah, I'm pretty sure that's what he meant.

Just don't have any scripts that do anything with it and you'll be fine :)

I guess this also applies to resizing the graalcontrol for trials (if it's even possible).

It's possible, that's why I need the serverlister back up so I can change that on Thamhic and not get in trouble. ._.

zokemon 07-15-2007 12:42 AM

Quote:

Originally Posted by Inverness (Post 1329901)
Edit: Please Stefan, hire/assign someone to do all the script documentation =( Its killing me.

:: is up for the job ::

Cubical 07-15-2007 12:54 AM

Quote:

Originally Posted by coreys (Post 1330382)
It's possible, that's why I need the serverlister back up so I can change that on Thamhic and not get in trouble. ._.

I think he meant hosted/classic servers because I don't think trials can log onto UC servers.

coreys 07-15-2007 12:55 AM

I guess...lol

dNeonb 07-15-2007 01:00 AM

Quote:

Originally Posted by zokemon (Post 1330395)
:: is up for the job ::

You can already view the new clientside functions. You just have to run graal with -listscriptfunctions and voila it creates you a textfile scriptfunctions_client.txt.

JkWhoSaysNi 07-15-2007 01:02 AM

yes, but you cant see any actual explanation of what they do or how to use them and importantly, what each parameter for each function is.

Inverness 07-15-2007 01:24 AM

Quote:

Originally Posted by JkWhoSaysNi (Post 1330424)
yes, but you cant see any actual explanation of what they do or how to use them and importantly, what each parameter for each function is.

We should have to try to guess what a function does based on its name and whether certain parameter are a number or string -.-

Skyld 07-15-2007 01:26 AM

Quote:

Originally Posted by Inverness (Post 1330444)
We should have to try to guess what a function does based on its name and whether certain parameter are a number or string -.-

A lot of the time you can use /scripthelp in RC to get information on script commands and objects.

Inverness 07-15-2007 03:49 AM

New scripting features supposed to be on Wiki today, where is it?


All times are GMT +2. The time now is 02:04 PM.

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