Hugo:room
From IFWiki
Room definition
A room as defined by the Hugo library:
class room { type room is static, light, open }
Sample Room
room vault "Hugo Vault" { initial_desc ! printed the first time player enters room "Wow, for your first time in this place, you really have to admit that it's great! Lots of junk, though. There is an exit to the east." long_desc ! printed every other time "Wow, even as you get more and more used to this place, you have to admit it's great! Lots of junk, though. There is an exit to the east." e_to other_room ! link to the other room cant_go ! printed when someone tries going in a different direction than east "There is only that exit to the east." extra_scenery "junk" ! referring to junk informs player it is not important misc 0 ! just a property to hold a number each_turn ! an example of an each_turn routine { "" print "You have been here for "; number ++self.misc; " turn"; if self.misc ~= 1 print "s"; "." } }
Links
A library contribution such as Future Boy!'s "enviroweather" extension can make it easier to simulate indoor and outdoor conditions.
Code Compare: Room | |
ADRIFT 4: | The Room dialog box (Add a Room/Edit Room) |
Hugo: | The room class |
Inform 6: | The Object class |
Inform 7: | The room kind |
TADS 2: | The room class |
TADS 3: | The Room class |