Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Something with mousescreeny (https://forums.graalonline.com/forums/showthread.php?t=59700)

GoZelda 06-30-2005 04:58 PM

Something with mousescreeny
 
I'm having a bit of trouble with using mousescreeny.

NPC Code:

if (leftmousebutton){
if (mousescreenx in |0,20| && mousescreeny in |screenheight,screenheight-20|){
message wtf.;
}
}


The part in red is what goes wrong. It works if I enter variables such as 1080,1100. But whenever I try using screenheight, it won't work. Someone care to explain what I'm doing wrong and what should be entered here?

Velox Cruentus 06-30-2005 05:25 PM

MIN, MAX. Make your range portray that. Right now, your MAX < MIN.

GoZelda 06-30-2005 06:34 PM

Quote:

Originally Posted by Velox Cruentus
MIN, MAX. Make your range portray that. Right now, your MAX < MIN.

Ah yes of course. Thank you very much =) I already tried reversing them, but did something wrong there.


All times are GMT +2. The time now is 12:25 PM.

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