Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-29-2002, 10:36 PM
bigkow44 bigkow44 is offline
Registered User
bigkow44's Avatar
Join Date: Dec 2001
Location: Inside my head.
Posts: 610
bigkow44 is on a distinguished road
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.
__________________
Reply With Quote
  #2  
Old 07-30-2002, 12:41 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
use testplayer to find the index if you clicked over someone, then if you're using built-in variables, do like players[index].hearts
Reply With Quote
  #3  
Old 07-30-2002, 09:05 AM
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
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
__________________
[signature]insert here[/signature]
Reply With Quote
  #4  
Old 07-30-2002, 10:30 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
testplayer doesn't seem to work without an npc server.... ?
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #5  
Old 07-30-2002, 01:07 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
???

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
__________________
[signature]insert here[/signature]
Reply With Quote
  #6  
Old 07-30-2002, 01:53 PM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
send me that, i'm an aspiring scripter and i've never used testplayer
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #7  
Old 07-30-2002, 07:42 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
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.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #8  
Old 07-31-2002, 03:24 AM
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 adam



try it online friend.


with players not npc's.
lol, i know it works online

never tried without npc server though
__________________
[signature]insert here[/signature]
Reply With Quote
  #9  
Old 07-31-2002, 03:35 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
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.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #10  
Old 07-31-2002, 10:45 PM
bigkow44 bigkow44 is offline
Registered User
bigkow44's Avatar
Join Date: Dec 2001
Location: Inside my head.
Posts: 610
bigkow44 is on a distinguished road
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
__________________
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 06:49 AM.


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