Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-26-2002, 12:29 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
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:
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #2  
Old 05-26-2002, 12:35 AM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
if (leftmousebutton && mousedown) {
setplayerprop #c,Left Button;
}
Reply With Quote
  #3  
Old 05-26-2002, 12:49 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Hum, okay. Thanks.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #4  
Old 05-26-2002, 05:50 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
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.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #5  
Old 05-27-2002, 07:29 PM
Kamaeru Kamaeru is offline
G2k1
Kamaeru's Avatar
Join Date: Dec 2001
Posts: 1,040
Kamaeru has much to be proud ofKamaeru has much to be proud ofKamaeru has much to be proud ofKamaeru has much to be proud ofKamaeru has much to be proud ofKamaeru has much to be proud of
ehhh

how would you put like a window on your screen that you can click it and drag it to different places?
__________________
3DS friendcode: 1118-0226-7975
Reply With Quote
  #6  
Old 05-27-2002, 11:15 PM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
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.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:19 PM.


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