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 08-28-2002, 08:38 AM
Graal518 Graal518 is offline
Foolish Dreamer
Graal518's Avatar
Join Date: Dec 2001
Location: Montana
Posts: 2,140
Graal518 is on a distinguished road
Vars?

Are there any built in vars for:
players kills
players deaths
players total time online
??????????????????????????????
__________________


Can there be a guiding light I've yet to see? I know my heart should guide me, but...
Reply With Quote
  #2  
Old 08-28-2002, 09:03 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
LOL, yes and no. From what I've HEARD and experimented playerkills and deaths doesn't work online quite right. And if you want to check to see about time, make a timeout that increase a this.var x.X
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #3  
Old 08-28-2002, 01:09 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
timevar2 - playeronlinetime (in seconds)
__________________
[signature]insert here[/signature]
Reply With Quote
  #4  
Old 08-28-2002, 05:52 PM
Graal518 Graal518 is offline
Foolish Dreamer
Graal518's Avatar
Join Date: Dec 2001
Location: Montana
Posts: 2,140
Graal518 is on a distinguished road
Quote:
Originally posted by screen_name
timevar2 - playeronlinetime (in seconds)
Uhm, what? o.o
__________________


Can there be a guiding light I've yet to see? I know my heart should guide me, but...
Reply With Quote
  #5  
Old 08-29-2002, 12:06 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
timevar2;

It stores onlinetime, in seconds.

For example, I have approx. 23 hours on Providence, so timevar2 would approx. be equal to 82800.
__________________
[signature]insert here[/signature]
Reply With Quote
  #6  
Old 08-29-2002, 12:40 AM
Graal518 Graal518 is offline
Foolish Dreamer
Graal518's Avatar
Join Date: Dec 2001
Location: Montana
Posts: 2,140
Graal518 is on a distinguished road
timevar2 is clientside, then?
__________________


Can there be a guiding light I've yet to see? I know my heart should guide me, but...
Reply With Quote
  #7  
Old 08-29-2002, 03:04 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
x.X Perhaps so =P Timevar is serverwide, I wonder though, can I use it clientside? I was working on a time script, and it took me about 1.5 days to figure out the proper coding/mathmatics for it x.X
NPC Code:

this.minutes=timevar*5/60;
for (m=0;this.minutes>60;m++)
{ this.minutes=this.minutes-60;
}


That is for minutes. just add another /60 for hours, and then /60/24 for days, and /60/24/7 for weeks, I did a months and years too, he he. I'm working on a new "layout" for the A,S,D, Hearts, MP, basically showstats =P when I get done, you'll only see showstats 1024; =P Perhaps the minimap also I had a longer, actually more mathmatic version of that code I just put, but I simplified it =P
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
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 10:41 AM.


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