Arqade is a question and answer site for passionate videogamers on all platforms. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am experimenting with Cvars.

Those are variables set in the server and or client.

List here:

I want to export some of those via the say command but i am missing the syntax to do so.

For example:

say "My Hostport is :%s" %hostport


say "My Hostport is :" +hostport

does not work.

If there is a way with autoexec i would love to use that too.

share|improve this question
up vote 2 down vote accepted

The console in Source engine is very, very limited, and even more so in Dota 2.

The only 2 things you can do with a cvar are: print it to console and overwrite it.

What you want to do is impossible.

share|improve this answer
well thats sad. my intention was to get the current gametime ,(optional) add 10 min and say in allychat "roshan died at, respawns at: x". thx for your clear answer. i will let this question stay unaccepted for 2 days. maybe someone has a solution. – Wandang Apr 24 '13 at 22:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.