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 04-17-2008, 08:57 PM
Dan Dan is offline
Daniel
Join Date: Oct 2007
Posts: 383
Dan is an unknown quantity at this point
Send a message via MSN to Dan
Chat

Imagine me and you in 1 level. From my client I change your chat clientside (you.chat = "test"). Now anybody knows if there's a way to restore your chat to what it was? Without having to save your chat before changing it?

Oh yeah and nothing serverside.
__________________

Last edited by Dan; 04-17-2008 at 09:12 PM..
Reply With Quote
  #2  
Old 04-17-2008, 10:01 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
A different players chat can't be changed clientside ...

I don't understand exactly what you're saying.
__________________
Reply With Quote
  #3  
Old 04-17-2008, 11:36 PM
Dan Dan is offline
Daniel
Join Date: Oct 2007
Posts: 383
Dan is an unknown quantity at this point
Send a message via MSN to Dan
It can be changed local, which is what I want for our heart display (when a player got hit), we're using a clientside hit detection system and try to copy the default systems of Graal.

I think there should be some player.chat.update() thing to restore to the real player chat, instead of the local/edited player chat that you can set to display local.
__________________
Reply With Quote
  #4  
Old 04-18-2008, 12:44 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
You should just have some TShowImg_Text or so.
__________________
Do it with a DON!
Reply With Quote
  #5  
Old 04-18-2008, 05:45 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Just save it like this:

PHP Code:
for ( temp.players )
{
  
this.( @ "chat_" temp.a.account ) = temp.a.chat;
  
temp.a.chat "lol";

or something like that?
__________________
Reply With Quote
  #6  
Old 04-18-2008, 01:08 PM
Dan Dan is offline
Daniel
Join Date: Oct 2007
Posts: 383
Dan is an unknown quantity at this point
Send a message via MSN to Dan
Quote:
Originally Posted by zokemon View Post
You should just have some TShowImg_Text or so.
Then I'd still have to hide the other players chat, and restore it again, same problem.

Quote:
Originally Posted by cbkbud View Post
Just save it like this:

PHP Code:
for ( temp.players )
{
  
this.( @ "chat_" temp.a.account ) = temp.a.chat;
  
temp.a.chat "lol";

or something like that?
Well I am currently saving it yes.. though the thing is, I don't want to save it.. since when 20 people in a level are pking, it has to save for all those 20 players, !good.
__________________
Reply With Quote
  #7  
Old 04-18-2008, 08:19 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Just have hearts as another parameter, and when hearts are showing, hide chat, when the hearts disappear, show the chat.
Reply With Quote
  #8  
Old 04-18-2008, 08:35 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Yeah, with a custom chat display system, It's not really hard to have them separate like Dusty said .
__________________
Do it with a DON!
Reply With Quote
  #9  
Old 04-18-2008, 10:00 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Why not just show a heart image above the player with the text?
__________________
Reply With Quote
  #10  
Old 04-18-2008, 10:15 PM
Dan Dan is offline
Daniel
Join Date: Oct 2007
Posts: 383
Dan is an unknown quantity at this point
Send a message via MSN to Dan
Rufus' orders were to make it like default, so I am making it like default. I won't have a custom nickname display, Stefan's done it in the default systems, so there must be some way to do it without having to store the old nickname, since that'd be too CPU intensive. I don't want to use a triggeraction to update the other players chat either .
__________________
Reply With Quote
  #11  
Old 04-18-2008, 11:32 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Dan View Post
that'd be too CPU intensive
-__-
__________________
Reply With Quote
  #12  
Old 04-18-2008, 10:29 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
You're severely underestimating the capability of a CPU if you think Graal will explode if you save the chat text of 20 people.

Basically I'm saying suck it up.
__________________
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:40 PM.


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