Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Mouse Clicking Flags (https://forums.graalonline.com/forums/showthread.php?t=30035)

BBflat 05-26-2002 12:29 AM

Mouse Clicking Flags
 
I was just testing the new mouse commands, and they are awesome. Everything works except a few commands. Maybe I'm just using them incorrectly, but I don't think so.

I am having trouble with the commands: leftmousebutton, middlemousebutton, and rightmousebutton. They are supposed to set to true when you click the left, right, or middle button. I can't get any of them to work.

The only clicking command I can get to work when you click a button is mousedown. Please help. Here's an example of what I'm doing...

NPC Code:

if (leftmousebutton)
{
setplayerprop #c,Left Button;
}



Here's a sample output:

user13-xo 05-26-2002 12:35 AM

if (leftmousebutton && mousedown) {
setplayerprop #c,Left Button;
}

BBflat 05-26-2002 12:49 AM

Hum, okay. Thanks.

BBflat 05-26-2002 05:50 AM

Quote:

Originally posted by Kaimetsu
Because, and let's all say it with me:

leftmousebutton is not an event

And neither is it a "command"

Lol ok. I guess what fooled me was it wasn't an event. It seems to me like it should be an event.

Kamaeru 05-27-2002 07:29 PM

ehhh
 
how would you put like a window on your screen that you can click it and drag it to different places?

BBflat 05-27-2002 11:15 PM

Quote:

Originally posted by Kaimetsu
If you have to ask then it's probably beyond your skill level.
Lol. If you want to copy/paste the quote tag thingy, change the person's name that you are quoting.


All times are GMT +2. The time now is 08:46 AM.

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