This is a discussion / support forum for the Hugo programming language by Kent Tessman. Hugo is a powerful programming language for making text games / interactive fiction with multimedia support.
global X
routine main
{
print "Start "; number 5
x = 8
print "Second item "; number x
}
Otherwise, it thinks you are referring to an object number.
Thanks! I'll try that; It was pissing me off, I was afraid my work on this game was going to be wasted. I had stopped working on City of Zenith because of this number problem; if numbers couldn't be displayed the Hugo game system was worthless.
"When I die, I want it easy and peaceful in my sleep, like my uncle.
Not screaming and crying like his passengers."
Wouldn't be odd if, in all the years that Hugo has been out, and all the authors that had programmed using it, and all the games that had been created with it, and all the people who had played those games, that no one had ever tried printing a number?
Flack wrote:Wouldn't be odd if, in all the years that Hugo has been out, and all the authors that had programmed using it, and all the games that had been created with it, and all the people who had played those games, that no one had ever tried printing a number?
Look, Flack, it doesn't mention this in the goddam manual. And people might simply have worked around it. Internally, you can't print a number anyway. You have to write a routine to change it into the component digit string it represents, then print that string. There can be assist packages such that some machine instructions do the translation for you, but the translation has to be done before a number can be written, unless you're going to write it as the raw binary value it actually is.
"When I die, I want it easy and peaceful in my sleep, like my uncle.
Not screaming and crying like his passengers."
Actually, it's mentioned on page 58 of the Hugo Book (page 68 according to the PDF reader) in the section about printing stuff. I'd be lying if I said I never ran into the same problem, though.