Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Stumped on llMessageLinked with XyText 1.5

Dmitriy Gausman
Registered User
Join date: 16 May 2007
Posts: 132
03-31-2009 13:38
I am making an item that will be a contribution tot board. Currently, the object works with floating text, and I really dont like that, so I thought I would make a board where someone could pay to contribute, and rather than the hovering text be updated as it is now, the cumulative total would be updated on a board.

I thought I would use the XYText program from the wiki. I have my contribution script and was hoping that I could just put in an llMessageLinked statement where the hovering text normally is, and have the board listen and take that cumulative total amount and use that to display on the board.

In the XyText Board Control script, there is a line " SetText( llBase64ToString("SXMgdGhhdCBub3QgY29vbCBvciB3aGF0PyA6KQ==";) );" where if I replace the contents of SetText with a manually encoded word or number, that is displayed properly on the board.

My hope is that the number from the contribution script gets sent via llMessageLink and the sent string is embedded into SetText.

After 2 days, I am struggling as to how to get the board to hear it.

In the contribution script I had:
llMessageLinked(LINK_SET, 1, totaltips, "";);

and hoped that in the XyText Board Control script
//SetText(totaltips) );


If someone can steer me in the right direction I would appreciate it. I hate to include the entire XyText script here, so maybe I will just place the link to the wiki:

http://wiki.secondlife.com/wiki/XyText_1.5[url]Thank you-
Dmitriy
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-31-2009 15:12
integer DISPLAY_STRING = 204000;

change 1 in your link message to 204000
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
03-31-2009 16:14
XyText uses the llMessageLinked() integer as a code, telling the XyText script what to do with the string. At the top of the XyText script, there is a "Message Map". Copy the needed constants from that "map" to your main script, then use the DISPLAY_STRING constant as the integer for you llMessageLinked().
Dmitriy Gausman
Registered User
Join date: 16 May 2007
Posts: 132
03-31-2009 18:51
Many thanks. That did the trick.