Jump to content
Sign in to follow this  
Bullz_eye_on_my_back

Sidechat

Recommended Posts

I currently have a dialog and I want to include a feature where the person can comunicate with his team while still in the dialog screen.

I've set up an editing box with the idc=663 (where they can type there message)

Then a button executes the program by [ctrltext 663] exec "side_chat.sqs"

then the script reads

player sidechat "ctrltext 663"

but all i get is "ctrltext 663"

ive also tried

_text = _this select 0

player sidechat "_text"

which returns "_text"

so is there away for it to read the string from the edit box?

Share this post


Link to post
Share on other sites

Remove the "" :

player sideChat ctrlText 663

ctrlText already returns a string, ie a set of characters enclosed in "", so you don't need to add these, otherwise "ctrlText 663" is seen as a string and not interpreted (= executed)

Whis'

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (whisperFFW06 @ Feb. 10 2003,19:12)</td></tr><tr><td id="QUOTE">Remove the "" :

player sideChat ctrlText 663

ctrlText already returns a string, ie a set of characters enclosed in "", so you don't need to add these, otherwise "ctrlText 663" is seen as a string and not interpreted (= executed)<span id='postcolor'>

Does it really work like that?

If it doesn't, this should work for sure:

unitName sideChat format [ctrlText 663];

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Spitfire @ Feb. 10 2003,22:27)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (whisperFFW06 @ Feb. 10 2003,19:12)</td></tr><tr><td id="QUOTE">Remove the "" :

player sideChat ctrlText 663

ctrlText already returns a string, ie a set of characters enclosed in "", so you don't need to add these, otherwise "ctrlText 663" is seen as a string and not interpreted (= executed)<span id='postcolor'>

Does it really work like that?

If it doesn't, this should work for sure:

unitName sideChat format [ctrlText 663];<span id='postcolor'>

Well...

As, for example, </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">a=units group player<span id='postcolor'>works fine, I assumed that return value "passing" was natural and did not require (). But I did not test, so in fact I don't know  biggrin.gif

Whis'

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×