Home   Help Search Login Register  

Author Topic: "Hint" command with variables? Any chance?  (Read 638 times)

0 Members and 1 Guest are viewing this topic.

Offline jens198

  • Former Staff
  • ****
  • Falcon 3.0 forever!
"Hint" command with variables? Any chance?
« on: 27 Jul 2003, 14:53:12 »
Hi folks,

any chance to display a variable (e.g. score) with the nice little "hint" command?

Jens

P.S. Whats your favourite way to display the value of variables in a script?
Try to look unimportant; the enemy may be low on ammo and not want to waste a bullet on you!

deaddog

  • Guest
Re:"Hint" command with variables? Any chance?
« Reply #1 on: 27 Jul 2003, 15:22:29 »
Try this:

_score=500

hint format ["My score is: %1",_score]

or

player sidechat format ["My score is: %1",_score]

The format command will turn variables into strings.  The first variable is inserted where the %1 is.  You can have more than one, %1, %2, etc.

hint format ["%1's score is: %2",name(player),_score]