Page 1 of 1

Echo server chat

Posted: Fri Aug 08, 2008 3:44 pm
by Nalo Jade
I am working on a secret project, I think I have most of it worked out ... except ... I need the Server to send chat twice, once to just the player that activated an item and then again to local PCs near the player.

So ...

Player A activates <item>

<item> sends text "X" to Player A only

Player A activates the <item> again and now the text "X" is displayed to all the local players.

The text generated will change each time it is first activated, but the second time it will only repeat the original text.

What function would I need to "get last text generated from player A's item use"

Posted: Fri Aug 08, 2008 4:17 pm
by Demson
Can't you just store the first text somehow? As a variable.

Posted: Fri Aug 08, 2008 6:06 pm
by White Warlock
Always helps to know what the end goal is, that way 'alternative' approaches can be presented rather than headbanging on one approach that may very well be hardcoded and thus inflexible.

Posted: Fri Aug 08, 2008 6:57 pm
by Nalo Jade
secret project is a secret... I will try a little harder on my own, if I cannot succeed I will return and reveal the secret project and all its sillyness.

I will try the storing variable and recalling that makes sense to me, thanks