by looper » Sun Mar 02, 2003 2:34 pm
My programming experience is trying to learn ATARI BASIC out of books when I was 10, a college course called Liberal Arts Mathematics that covered logic, and trying to read first the TADS manual, then the Inform manual, and now the Hugo manual, off a computer screen. I don't have a job where I can print out the bible for free.
So, I can see how Hugo has a little bit more of an intuitive and simple grammar structure than, say, TADS or Inform, but also how they're very similar. I am stuck at properties and routines (I think I hit the wall at around page 83 of the Hugo manual). I understand creating an object and giving it attributes and properties. But I don't understand this object.nouns business. Say, I have an object called FatAss; with the nouns property defined. What does FatAss.nouns do?
I am also not clear on how to call a routine. I thought I could do something like this:
routine main
{ print "Hello sailor!"
}
routine Bob
{ print "Hello Bob!"
}
Bob
and get two lines of text. I don't understand why "Hello sailor!" gets printed right off the bat; what is calling the main routine? Why doesn't Bob print also? And how do I call "Bob", if not by saying "Bob" (the file compiles if I leave out that last line -"Bob"- but doesn't if I put it in. Nonetheless, it was my attempt to call the Bob routine)?
???
My programming experience is trying to learn ATARI BASIC out of books when I was 10, a college course called Liberal Arts Mathematics that covered logic, and trying to read first the TADS manual, then the Inform manual, and now the Hugo manual, off a computer screen. I don't have a job where I can print out the bible for free.
So, I can see how Hugo has a little bit more of an intuitive and simple grammar structure than, say, TADS or Inform, but also how they're very similar. I am stuck at properties and routines (I think I hit the wall at around page 83 of the Hugo manual). I understand creating an object and giving it attributes and properties. But I don't understand this object.nouns business. Say, I have an object called FatAss; with the nouns property defined. What does FatAss.nouns do?
I am also not clear on how to call a routine. I thought I could do something like this:
routine main
{ print "Hello sailor!"
}
routine Bob
{ print "Hello Bob!"
}
Bob
and get two lines of text. I don't understand why "Hello sailor!" gets printed right off the bat; what is calling the main routine? Why doesn't Bob print also? And how do I call "Bob", if not by saying "Bob" (the file compiles if I leave out that last line -"Bob"- but doesn't if I put it in. Nonetheless, it was my attempt to call the Bob routine)?
???