Body color

Request help for teeworlds-related subjects (mapping, servers, ..).
For client issues, see our repositories (https://github.com/ddnet/ddnet/issues).
User avatar
stompie
Posts: 700
Joined: Thu Jun 18, 2015 2:40 pm
Player profile: http://ddnet.org/players/stompie/
Mapper profile: https://ddnet.tw/mappers/stompie/

Body color

Post 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?
\,,/(◣_◢)\,,/
User avatar
Soreu
Posts: 1371
Joined: Fri Aug 22, 2014 2:47 pm
Location: Poland
Player profile: http://ddnet.org/players/Soreu
Mapper profile: http://ddnet.tw/mappers/Soreu
Clan: GSP

Re: Body color

Post 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
„Vince te ipsum”

         :3             |     GSP Founder     Honorary iMTGmember
Graphic-guy     |     Website & Forum Team Leader (Ex)     [ToP] Leader (Dead)

Last truly active: Sun Aug 28, 2016 11:13 pm - having great DDNet in both memory and heart
User avatar
stompie
Posts: 700
Joined: Thu Jun 18, 2015 2:40 pm
Player profile: http://ddnet.org/players/stompie/
Mapper profile: https://ddnet.tw/mappers/stompie/

Re: Body color

Post by stompie »

Well thoughts for the future i guess Thanks
\,,/(◣_◢)\,,/
Index
Posts: 1136
Joined: Mon May 05, 2014 7:30 pm
Clan: Eagle

Re: Body color

Post 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
User avatar
Soreu
Posts: 1371
Joined: Fri Aug 22, 2014 2:47 pm
Location: Poland
Player profile: http://ddnet.org/players/Soreu
Mapper profile: http://ddnet.tw/mappers/Soreu
Clan: GSP

Re: Body color

Post 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...
„Vince te ipsum”

         :3             |     GSP Founder     Honorary iMTGmember
Graphic-guy     |     Website & Forum Team Leader (Ex)     [ToP] Leader (Dead)

Last truly active: Sun Aug 28, 2016 11:13 pm - having great DDNet in both memory and heart
User avatar
stompie
Posts: 700
Joined: Thu Jun 18, 2015 2:40 pm
Player profile: http://ddnet.org/players/stompie/
Mapper profile: https://ddnet.tw/mappers/stompie/

Re: Body color

Post by stompie »

changing binds like what?
\,,/(◣_◢)\,,/
User avatar
Soreu
Posts: 1371
Joined: Fri Aug 22, 2014 2:47 pm
Location: Poland
Player profile: http://ddnet.org/players/Soreu
Mapper profile: http://ddnet.tw/mappers/Soreu
Clan: GSP

Re: Body color

Post by Soreu »

say xD -> say "xD" etc.
„Vince te ipsum”

         :3             |     GSP Founder     Honorary iMTGmember
Graphic-guy     |     Website & Forum Team Leader (Ex)     [ToP] Leader (Dead)

Last truly active: Sun Aug 28, 2016 11:13 pm - having great DDNet in both memory and heart
Chairn
Posts: 399
Joined: Sat Apr 11, 2015 5:05 pm
Player profile: http://ddnet.org/players/Chairn/
Clan: QuintessenZ

Re: Body color

Post by Chairn »

xD is not a command i think.
User avatar
Soreu
Posts: 1371
Joined: Fri Aug 22, 2014 2:47 pm
Location: Poland
Player profile: http://ddnet.org/players/Soreu
Mapper profile: http://ddnet.tw/mappers/Soreu
Clan: GSP

Re: Body color

Post 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?
„Vince te ipsum”

         :3             |     GSP Founder     Honorary iMTGmember
Graphic-guy     |     Website & Forum Team Leader (Ex)     [ToP] Leader (Dead)

Last truly active: Sun Aug 28, 2016 11:13 pm - having great DDNet in both memory and heart
User avatar
Ryozuki
Posts: 1748
Joined: Tue Feb 24, 2015 7:28 am
Location: Catalonia
Player profile: http://ddnet.org/players/Ryozuki/
Mapper profile: http://ddnet.tw/mappers/Ryozuki/
Clan: Unique
Website: https://edgarluque.com
Discord: Ryozuki#2188

Re: Body color

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests