Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-10-2007, 03:41 AM
cheatbobb cheatbobb is offline
The_Danish
cheatbobb's Avatar
Join Date: Apr 2004
Location: Canada
Posts: 15
cheatbobb is on a distinguished road
a) Have a gani script always active, but only show the information if the mouse is in the right position.
b) It hasn't created any lag in my experience, but I haven't had the chance to try with many players at once.
c) Reading variables shouldn't create lag, as they're readily accessible and you don't have to "request" them or anything. Looping through all the players would give you as much lag as a custom chat system would, namely about none. If reading them does actually take a "request" or whatever, then the answer to b) would most likely be none.
__________________
Reply With Quote
  #2  
Old 01-10-2007, 06:57 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
huh
what exactly do you mean by that
Reply With Quote
  #3  
Old 01-11-2007, 12:02 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Quote:
Originally Posted by projectigi View Post
huh
what exactly do you mean by that
He means, put a script in a gani to show the HP bar, but only show the images when the mouse is over the player.. EG

NPC Code:


...

function update_bar() { ...some code to draw the HP Bars... }
function hide_bar() { ...some code to hide the HP Bars... }
function onTimeout() {
if(... some code to check if the mouse is on the player...) {
update_bar();
} else {
hide_bar();
}
setTimer(0.05);
}

...

__________________

subliminal message: 1+1=3
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 05:34 PM.


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