Graal Forums

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

Pelikano 05-28-2009 05:03 PM

Quote:

Originally Posted by Codein (Post 1494898)
Or, rather, a pretty legitimate correction? This is from a standing point where I've known no previous bitterness between Chris and Andy. I've certainly seen none shown on the forums. Maybe you could correct me on that? :P

There's a first time for everything :].
And yes I have on the GST Team application of Andy or something

Codein 05-28-2009 05:50 PM

Quote:

Originally Posted by Pelikano (Post 1494909)
There's a first time for everything :].
And yes I have on the GST Team application of Andy or something

Ah, I see, but no cigar. That comment wasn't an attack either, nor did it display any kind of bitterness :P

Pelikano 06-13-2009 10:50 AM

However, can someone really do compile a list of all Events?
That'd be so cool :o

xXziroXx 01-30-2010 05:18 PM

Is there an event for when the player updates his settings (or at least closes the F3 menu)?

Admins 02-03-2010 03:58 PM

In the new v6 version you can now do "-listscriptfunctions" which generates scriptfunctions_client.txt and also contains (some) events.

The options are now done by script, there is no event for updating the options but we could add something in the script.

Crow 02-03-2010 08:37 PM

Quote:

Originally Posted by Stefan (Post 1553947)
The options are now done by script, there is no event for updating the options but we could add something in the script.

Yes, add it, please.

fowlplay4 02-03-2010 09:03 PM

This will/should work in v6:

PHP Code:

function F3WindowsName.onHide() {
  
// Options possibly updated.


Not sure of the real window name, but the above should suffice.

DustyPorViva 02-03-2010 10:16 PM

Quote:

Originally Posted by fowlplay4 (Post 1553981)
This will/should work in v6:

PHP Code:

function F3WindowsName.onHide() {
  
// Options possibly updated.


Not sure of the real window name, but the above should suffice.

Wouldn't you just detect when the 'Apply' button was clicked instead?

fowlplay4 02-03-2010 10:29 PM

Quote:

Originally Posted by DustyPorViva (Post 1553997)
Wouldn't you just detect when the 'Apply' button was clicked instead?

You can change things, and click the X on the window and those changes still save. I imagine the OK button just closes it as well.

But really why just check the window, when you can check an exact feature. If your script only cares about light effects:

PHP Code:

// Another case where I don't know the name :P
LightEffectsEnabledCheckBox.onAction() { 
  
// Do stuff.



xAndrewx 06-09-2010 08:23 AM

Isn't there an event which is triggered once the player leaves the level? Any idea's anyone

DustyPorViva 06-09-2010 08:30 AM

Quote:

Originally Posted by xAndrewx (Post 1580983)
Isn't there an event which is triggered once the player leaves the level? Any idea's anyone

onPlayerLeaves() I think, and it's serverside only.

xAndrewx 06-09-2010 08:46 AM

Great job- thanks! :D

xAndrewx 07-16-2010 09:33 PM

Requested ones

HTML Code:

onHPChanges
onMPChanges
onAPChanges


Skyld 07-16-2010 10:14 PM

Quote:

Originally Posted by xAndrewx (Post 1587950)
Requested ones

HTML Code:

onHPChanges
onMPChanges
onAPChanges


onPlayerChanges should do what you want I think, but it will also capture changing heads and stuff.

xAndrewx 07-16-2010 11:03 PM

doesn't detect any of them =o (only detects nicknames... from what I've tested) but thanks!!


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

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