Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-16-2003, 09:39 PM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
testindex(x, y)

This would be usefull as it could return the index number of a item (e.g. showpoly, showimg, showtext, showani, etc . . .) at the given X and Y.

Example:
NPC Code:

if (created) {
showimg 1,test.gif,130,130;
changeimgvis 1,5;
timeout = .05;
}

if (timeout) {
test = testindex(mousescreenx, mousescreeny)

if (test == 1) {
message Mouse is at index 1;
}
timeout = .05;
}



For this to work it would have to check the demensions of the item, such as the full demensions of an showimg.
__________________
new account: Trevor
Reply With Quote
  #2  
Old 03-16-2003, 09:56 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
would be hard to have it return false since image indexs can have negative numbers as an index I think
Reply With Quote
  #3  
Old 03-16-2003, 10:45 PM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by Python523
would be hard to have it return false since image indexs can have negative numbers as an index I think
Your right, and I don't know how either. But Stefan seems like a fairly smart fellow, so he will probally find a way .
__________________
new account: Trevor
Reply With Quote
  #4  
Old 03-16-2003, 10:47 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
http://forums.graal2001.com/forums/s...threadid=42162

You already suggested it once, and stefan replied.. o.o
__________________

Reply With Quote
  #5  
Old 03-16-2003, 10:50 PM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by CheeToS2
http://forums.graal2001.com/forums/s...threadid=42162

You already suggested it once, and stefan replied.. o.o
Wasn't the same thing. Close, but not the same.
__________________
new account: Trevor
Reply With Quote
  #6  
Old 03-17-2003, 12:41 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by tlf288

Wasn't the same thing. Close, but not the same.
Quote:
Originally posted by Stefan

Both testimg and isonimg would be good
You need to pay attention
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #7  
Old 03-17-2003, 12:50 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by Dach



You need to pay attention
Still isn't the same thing. This would wrap it all into one.
__________________
new account: Trevor
Reply With Quote
  #8  
Old 03-17-2003, 05:46 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally posted by tlf288


Still isn't the same thing. This would wrap it all into one.
I think it would do that anyways, I'm pretty sure showpoly/showani are considered "images" too, I doubt you can use the same index twice on one NPC to show two different types of things
__________________

Reply With Quote
  #9  
Old 03-17-2003, 06:47 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by CheeToS2

I think it would do that anyways, I'm pretty sure showpoly/showani are considered "images" too, I doubt you can use the same index twice on one NPC to show two different types of things
YOU KNOW WHAT?!


Your exactly right
__________________
new account: Trevor
Reply With Quote
  #10  
Old 03-17-2003, 01:55 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
<3 I could still be wrong though, I had a reason, but then I forgot it ^_^
__________________

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:46 PM.


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