Page 1 of 2

Body color

Posted: Mon Jun 27, 2016 10:49 pm
by stompie
i was trying to get someone to tell me their code for their body color and i thought why doesnt he just do in console
say player_color_body
theoretically it would work it makes sense but it doesnt is there someway to make this possible?

Re: Body color

Posted: Tue Jun 28, 2016 12:58 am
by Soreu
Well, color codes are short, and most guys don't even actually know they could use say command within console, so it's not a big problem imo. Though sounds useful, I doubt there would be many guys using this feature.

//If somehow added, it should work with all commands returning any value ofc

Re: Body color

Posted: Tue Jun 28, 2016 6:12 pm
by stompie
Well thoughts for the future i guess Thanks

Re: Body color

Posted: Tue Jun 28, 2016 6:28 pm
by Index
Returning the value of any given command with "say command" in f1 actually sounds like a good feature :o

Yea, it would probably not be used that much and it should be no problem to just request the value and write it in chat.
But well, if it's easy to implement, I'm definitely looking forward to this :3

Re: Body color

Posted: Tue Jun 28, 2016 7:04 pm
by Soreu
I guess it could be just like this:
say player_color_body -> chat: 65408
say "player_color_body" -> chat: player_color_body
say "player_color_body" player_color_body -> chat: player_color_body 65408
I guess the last one would already be too complicated for TW :P

but that, even though seem to be good solution & used in some programming-languages, would require changing some binds...

Re: Body color

Posted: Tue Jun 28, 2016 7:33 pm
by stompie
changing binds like what?

Re: Body color

Posted: Tue Jun 28, 2016 7:36 pm
by Soreu
say xD -> say "xD" etc.

Re: Body color

Posted: Tue Jun 28, 2016 10:23 pm
by Chairn
xD is not a command i think.

Re: Body color

Posted: Wed Jun 29, 2016 12:14 pm
by Soreu
that's why to wrap it inside quotes, making it be just plain text... like all the other binds to say "hi!", "sup", "bye", "gg", "I'm not a seagull", "haha", and so on.

//Edit: Meh, just recognized it wouldn't work anyway way, since tw wraps everything inside quotes... so maybe:
say_cmd player_color_body -> chat: player_color_body 65408
instead?

Re: Body color

Posted: Wed Jun 29, 2016 6:01 pm
by Ryozuki
I talked with timakro and we think the best way to refer to the variable player_color_body is by putting a $ like:

say $player_body_color This prints the color number

say player_color_body This prints "player_color_body" string