Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Clicking on players (https://forums.graalonline.com/forums/showthread.php?t=34597)

bigkow44 07-29-2002 10:36 PM

Clicking on players
 
Can someone help me with a script that will show an image kinda like attributes. when you click on a player, it shows an image and text over the player you clicked on. im completely lost.

Python523 07-30-2002 12:41 AM

use testplayer to find the index if you clicked over someone, then if you're using built-in variables, do like players[index].hearts

screen_name 07-30-2002 09:05 AM

well, lets see, what kind of informaiton would you want displayed??

have a range of what of the mousex and mousey

test the player under the mouse to get the index of the clickee

use with () to access the the clickee's string to be displayed

display clientside for the clicker

timeout for bla seconds

hide the displayed information

adam 07-30-2002 10:30 AM

testplayer doesn't seem to work without an npc server.... ?

screen_name 07-30-2002 01:07 PM

???

it worked for me, i placed npc characters around the level and had a npc display the index of what character was under the mouse

worked fine

HoudiniMan 07-30-2002 01:53 PM

send me that, i'm an aspiring scripter and i've never used testplayer :p

adam 07-30-2002 07:42 PM

Quote:

Originally posted by screen_name
???

it worked for me, i placed npc characters around the level and had a npc display the index of what character was under the mouse

worked fine


try it online friend.


with players not npc's.

screen_name 07-31-2002 03:24 AM

Quote:

Originally posted by adam



try it online friend.


with players not npc's.

lol, i know it works online

never tried without npc server though :(

adam 07-31-2002 03:35 AM

Quote:

Originally posted by screen_name


lol, i know it works online

never tried without npc server though :(

Okies. Well it doesn't seem to work without one. :-/

I can't double check becouse Doomsday is missing.

bigkow44 07-31-2002 10:45 PM

Quote:

Originally posted by Python523
use testplayer to find the index if you clicked over someone, then if you're using built-in variables, do like players[index].hearts
like
if (actionleftmouse) {testplayer mousex,mousey;}
or something like that i havent looked at the commands lately


All times are GMT +2. The time now is 06:02 PM.

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