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-23-2002, 05:41 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Mouse Functions...

Can anyone tell me (the commands) I would need to make it so if I clicked on a certain point in a level I could set a variable, such as:
display=1;
Reply With Quote
  #2  
Old 05-23-2002, 05:45 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
You need the varuiables mousex and mousey, and the flag leftmousebutton

No commands are necesarry though :P
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #3  
Old 05-23-2002, 06:38 PM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
Quote:
Originally posted by Spanko
You need the varuiables mousex and mousey, and the flag leftmousebutton

No commands are necesarry though :P
The variable mousebuttons works better. :P
Reply With Quote
  #4  
Old 05-23-2002, 06:40 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Quote:
Originally posted by LilNiglet

The variable mousebuttons works better. :P
I haven't used it yet, so bleh.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #5  
Old 05-23-2002, 07:55 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
I don't have NewFeatures 2002 with me, but is mousex the x coordinate of the mouse on the level, or on the screen?
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #6  
Old 05-23-2002, 08:07 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Quote:
Originally posted by BBflat
I don't have NewFeatures 2002 with me, but is mousex the x coordinate of the mouse on the level, or on the screen?
mousex is level.
mousescreenx is screen.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #7  
Old 05-23-2002, 08:09 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 Spanko
mousex is level.
mousescreenx is screen.
Hm. So there's nothing for the levelx the mouse is on? You could do cool things like killing people by clicking on them. Lol.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #8  
Old 05-23-2002, 08:45 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
if (hasweapon(grenade)&&weaponfired) showimg crosshiar.gif,mousex,mousey; this.grenade=1;
if (this.grenade==1&&leftmousebutton) putexplosion 1,mousex,mousey;
:P He he. Would put an explosion where you click. I believe that would work. Haven't tested it b/c i'm @ school, but you could actually make it THROW a grenade if you wanted, requires more scripting, which is more time than i have ATM.
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #9  
Old 05-23-2002, 09:02 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Quote:
Originally posted by BBflat

Hm. So there's nothing for the levelx the mouse is on? You could do cool things like killing people by clicking on them. Lol.
levelx == mousex.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #10  
Old 05-23-2002, 09:24 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
LOL, i need it to be if (this.grenade==1) timeout=0.05;
if (timeout&&this.grenade==1) then set the x's and y's of the mouse. Otherwise it wouldn't cycle through it. It would happen but once.
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #11  
Old 05-24-2002, 05:16 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
Haha this stuff is awesome. You can do things like keeping people from right-clicking you to get your profile. Cool stuff.
__________________
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:10 PM.


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