Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-25-2002, 10:28 PM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
actionmouseover

actionmouseover

Is then the mouse is anywhere over the NPC object, but only works when you state the X,Y of the NPC and use setshape/setshape2

EG:

NPC Code:

if (created) {
x=32;
y=32;
setshape 0,16,16;
}
if (actionmouseover) {
say #bYour mouse is over this NPC
}

Reply With Quote
  #2  
Old 08-25-2002, 10:47 PM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
NingNong just said there is already a command like that? Is this true!? if so what is it, I didnt see it in the commands new txt file. hm...
Reply With Quote
  #3  
Old 08-25-2002, 11:41 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
this can be done with just checking if the mousex/y is in a certain radius
Reply With Quote
  #4  
Old 08-28-2002, 03:14 AM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
This wuld make it easier! 0_0
Reply With Quote
  #5  
Old 08-28-2002, 01:11 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Spark910
This wuld make it easier! 0_0
It would be much easier.
__________________
[signature]insert here[/signature]
Reply With Quote
  #6  
Old 08-30-2002, 08:58 AM
RavenTelvecho RavenTelvecho is offline
Registered User
RavenTelvecho's Avatar
Join Date: Apr 2002
Location: Toronto, Ontario, Canada
Posts: 0
RavenTelvecho is on a distinguished road
Send a message via ICQ to RavenTelvecho Send a message via AIM to RavenTelvecho Send a message via Yahoo to RavenTelvecho
R0bin: It would be so easy, it wouldnt be worth using, like

if(playersays(This command is OBSOLETE))

__________________

^tuff newbie ;x
RavenTelvecho
!Booj
we are 'brothers'
Reply With Quote
  #7  
Old 08-30-2002, 10:46 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
I QUITE agree with Raven. There is NO point in using it, plus you would have to have HOURS of Stefan making and debugging it to work, for WHAT possible purpose? I've already shown this code like 4+ times :'(
NPC Code:

if (created)
{ timeout=0.25;}
if (timeout)
{ if (abs(mousex-x)=<1 && abs(mousey-y)=<1)
{ actions;}
timeout=0.25;
}


This would check to see if it is within one space of it =/ Just use that.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #8  
Old 08-30-2002, 06:28 PM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Quote:
Originally posted by emortylone
NPC Code:

if (created)
{ timeout=0.25;}
if (timeout)
{ if (abs(mousex-x)=<1 && abs(mousey-y)=<1)
{ actions;}
timeout=0.25;
}


It would just check that the mouse is within a distance of one tile from the top left corner.

This might be a bit better:
NPC Code:

if (playerenters || timeout) {
if (mousex >= x && mousex < x+npcs[0].width &&
mousey >= y && mousey < y+npcs[0].height) {
// do stuff
}
timereverywhere;
timeout = 0.05;
}

__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote
  #9  
Old 08-30-2002, 08:31 PM
RavenTelvecho RavenTelvecho is offline
Registered User
RavenTelvecho's Avatar
Join Date: Apr 2002
Location: Toronto, Ontario, Canada
Posts: 0
RavenTelvecho is on a distinguished road
Send a message via ICQ to RavenTelvecho Send a message via AIM to RavenTelvecho Send a message via Yahoo to RavenTelvecho
R0bin: Shifter, i post in blue, Im not raven :P
__________________

^tuff newbie ;x
RavenTelvecho
!Booj
we are 'brothers'
Reply With Quote
  #10  
Old 08-31-2002, 12:59 AM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
but a code like I suggested would be easier and quicker.
Reply With Quote
  #11  
Old 08-31-2002, 01:37 AM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
life isn't always easy...
...as long as it is possible it is enough for me, no matter how hard it is.
Or it does matter...it shouldn't be too hard, but this is no too hard...
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
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 11:45 PM.


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