Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-29-2002, 02:52 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
screenx/y

NPC Code:

if (created || timeout) {
showimg 0,@X,screenx(mousex,mousey),screeny(mousex,mousey) ;
changeimgvis 0,4;
setplayerprop #c,#v(screenx(mousex,mousey)) #v(screeny(mousex,mousey));
timeout = 0.05;
}


It is giving me negative values, while I am under the strong impression that it should not.
Reply With Quote
  #2  
Old 10-29-2002, 03:55 AM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
Re: screenx/y

Quote:
Originally posted by Loriel
NPC Code:

if (created || timeout) {
showimg 0,@X,screenx(mousex,mousey),screeny(mousex,mousey) ;
changeimgvis 0,4;
setplayerprop #c,#v(screenx(mousex,mousey)) #v(screeny(mousex,mousey));
timeout = 0.05;
}


It is giving me negative values, while I am under the strong impression that it should not.


....


why not just do

if (created || timeout) {
showimg 0,@X,mousescreenx,mousescreeny;
changeimgvis 0,4;
setplayerprop #c,#v(mousescreenx) #v(mousescreeny);
timeout = 0.05;
}

????
Reply With Quote
  #3  
Old 10-29-2002, 02:03 PM
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
Works fine for me, unless you go off the graal window, where it should be negative.

Robin, sorry to sound pissy, but that is a testing script... it serves no more purpose than to test the effects of the functions
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #4  
Old 10-30-2002, 03:17 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by Dach
Works fine for me, unless you go off the graal window, where it should be negative.
Hey, it really does. I must have messed something else in the big script then.
Reply With Quote
  #5  
Old 10-30-2002, 04:09 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by Loriel

Hey, it really does. I must have messed something else in the big script then.
I figured it out.
NPC Code:
if (playerenters) toweapons Test;
if (created || timeout) {
if (isweapon) setplayerprop #c,#v(screenx(mousex,mousey)) #v(screeny(mousex,mousey));
else message #v(screenx(mousex,mousey)) #v(screeny(mousex,mousey));
timeout = 0.05;
}



Then you see that screenx/y do not work inside a weapon, because it is setting your chattext to different values than the ones the NPC itself is chatting.
Reply With Quote
  #6  
Old 10-30-2002, 06:27 AM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
Quote:
Originally posted by Dach
Works fine for me, unless you go off the graal window, where it should be negative.

Robin, sorry to sound pissy, but that is a testing script... it serves no more purpose than to test the effects of the functions
you are trying to sound pissy? X_X
Reply With Quote
  #7  
Old 10-30-2002, 11:09 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 Loriel

Then you see that screenx/y do not work inside a weapon, because it is setting your chattext to different values than the ones the NPC itself is chatting.
Whoa, that's a bit goofed...

Quote:
Originally posted by R0bin

you are trying to sound pissy? X_X
bah, I figured someone may try to yell at me for demeaning you, nm
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
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 06:33 PM.


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