Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   The Cursor! (https://forums.graalonline.com/forums/showthread.php?t=73491)

Chompy 04-15-2007 12:24 AM

The Cursor!
 
So, I searched around the Wiki about functions and vars that the cursor uses... and... I only found something in GS1 (http://wiki.graal.net/index.php/Crea...ev/Old_GScript, are these the same in GS2? Like does those commands works etc..?

Would love to hear if someone knew if there were some new ones too!



Edit
: The link only tells about 'setcursor' but I can't get that to work..
Is there any articles about the cursor?

Would be nice if there was one..

cbk1994 04-16-2007 03:36 AM

I think it's something used by Stefan when he compiles the game.

I suppose it could be abused ...

Chompy 04-16-2007 02:30 PM

Quote:

Originally Posted by cbkbud (Post 1300292)
I think it's something used by Stefan when he compiles the game.

I suppose it could be abused ...


...? How can 'setcursor' and such be abused?

Well, I heard there was a hideCursor()? Anyone would know if there is?

But some cursor functions/vars would be nice..

Chompy 06-14-2007 02:50 PM

bump?

coreys 06-14-2007 10:20 PM

God, I've tried setcursor a million times and I could never get it to work, it made me mad. Perhaps Stefan could enlighten us?

DustyPorViva 06-14-2007 10:35 PM

setcursor #;
I believe is what you use. 0-20 or something like that.
setcursor2 image; I think is how you change it to an image, I'm not sure though.

coreys 06-14-2007 10:38 PM

Quote:

Originally Posted by DustyPorViva (Post 1318026)
setcursor #;
I believe is what you use. 0-20 or something like that.
setcursor2 image; I think is how you change it to an image, I'm not sure though.

Neither worked for me. :(

DustyPorViva 06-14-2007 10:41 PM

It might have been removed in newer versions(I remember when Graal3/4 or whatever first came out Stefan had a custom cursor for it), so I dunno if they work anymore.

EDIT: setcursor worked for me in the editor, via setcursor #1-25, but setcursor2 works by setcursor2 cursorfile, not image. Such as ones you'll find in your windows cursors directory. Again, not sure if this was removed from newer versions.

coreys 06-14-2007 11:07 PM

Quote:

Originally Posted by DustyPorViva (Post 1318031)
It might have been removed in newer versions(I remember when Graal3/4 or whatever first came out Stefan had a custom cursor for it), so I dunno if they work anymore.

EDIT: setcursor worked for me in the editor, via setcursor #1-25, but setcursor2 works by setcursor2 cursorfile, not image. Such as ones you'll find in your windows cursors directory. Again, not sure if this was removed from newer versions.

Well, in the same folder the Gui Profiles are in (levels3d/gui/) theres two custom cursor images that I think have been used in some way. It would be awesome for Stefan it possible to use custom cursor images, if it isn't already and we just don't know how.

JkWhoSaysNi 06-14-2007 11:32 PM

Even if it was possible to hide the default cursor so we could make our own using a GUI type script would be great.

DustyPorViva 06-15-2007 12:21 AM

setcursor and one of the numbers hides the cursor.

zokemon 06-15-2007 12:22 AM

setcursor was usable with Graal v3 but removed in Graal v4 because Stefan either found there not to be enough functionality for it for him to waste time re-adding it to Graal or he just saw it could be abused like someone said.

Skyld 06-15-2007 12:44 AM

I'm wondering whether you need to use cursoroff() first for it to work, however it might only work in Graal3D or OpenGL mode.

zokemon 06-15-2007 12:50 AM

Quote:

Originally Posted by Skyld (Post 1318061)
I'm wondering whether you need to use cursoroff() first for it to work, however it might only work in Graal3D or OpenGL mode.

Never thought of that! Sadly, not many use OpenGL mode so it would probably be not worth it to make your own cursors and/or code them/some in.

Admins 06-15-2007 06:06 PM

Graal is trying to use the default hardware cursor. The scripted cursor (from v3) was lagging too much. In v2 there were scripting functions for replacing the cursor with another hardware cursor, but it was never really used.


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

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