Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Scripting improvements (https://forums.graalonline.com/forums/showthread.php?t=9107)

BocoC 08-08-2001 03:13 AM

Scripting improvements
 
I think Stefan should implement a way to disable certain actions, like disablesword; or disableDweapon; or disablePausebutton; ect... Also, I think hidesword or disablesword should also hide the sword icon in the ASD icons in the upper-left corner of the window, so people can script their own sword scripts or other things, without that annoying number in the way >_< Just my thoughts.

Falcor 08-08-2001 06:54 AM

disabledefkey(keyindex);

that would be good

Also more function stuffs

like

Params in functions

function funcname(param1name,param2name,...) {


}

and

funcname(value1,value2,...)


Also we should have

return [value];
(wich would be able to include boolean expressions like true and false)

Ahhh. So many posibilities with that *sigh*

dragoonvenganc 08-08-2001 11:24 AM

yes that would me good. and nice. i think stefan should update the g-server so we can test levels online with other people playering have a couple people testing the levels at one time to see how they do online.

General 08-08-2001 11:49 AM

3 player gserver

BocoC 08-08-2001 01:22 PM

Oh! And maybe add the Delete key to the list of KeyDown events. The only usefull keydown's are Up,Down,Left,Right,A,S,D, and Q if disableselectweapons; is called... Tab, P, and M are useless... Maybe if Stefan could add like a W,E,R, or Z,X,C keys instead? I'm sure that would make a lot of people stop complaining about extra keydowns, withough making things complicated.

Marco2002 08-09-2001 03:38 AM

if (keypressed(Key)) -> if the key was pressed for a short moment (if (keydown(key)) is set when the key is held down)

if (mousebuttonklicked(Left/right))
if (klickedonme(Left/Right))
and the variables
mousex/mousey
for mouse actions

General 08-09-2001 04:25 AM

if (wasclicked) {
message #v(mousex),#v(mousey);
}

BocoC 08-09-2001 05:25 AM

Didn't Stefan already say he was anti-mouse? Anyways, I think Stefan should also let you use a string in toweapons. Take this for example:
NPC Code:

if (created) {
setstring this.name,Test1;
}
if (playertouchsme) {
toweapons #s(this.name);
}


Currently, if I do that same method in Graal, it will create a weapon named: #s(this
That would be a huge help.


All times are GMT +2. The time now is 09:13 AM.

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