The player object has to be located within an object with the "enterable" attribute from the very first move of the game. This represents the player character sitting in a sort of stands or bleachers, and the game has to begin in that state.
I've tried a couple different things in my
init routine, but nothing has worked flawlessly so far. I've been setting
location to the parent room object, moving the player to the room, and then using
Perform() to make the player enter the bleachers object:
Code: Select all
player = you
location = dome
old_location = location
move player to location
Perform(&DoEnter, bleachers) ! initially sitting -- sort of works
FindLight(location)
DescribePlace(location)
location is visited
CalculateHolding(player)
There are two problems with this. These two unwanted lines are displayed:
Hugo v3.1 / Library 31031
You sit down on the stands.
It's too dark to see anything.
Also, when I run the game in the Debugger, I get the message "Property out of range: 255".
I've also tried setting the location to the room, moving the player directly to the bleachers, and then doing
FindLight() for the bleachers directly:
Code: Select all
player = you
location = dome
old_location = location
move player to bleachers
FindLight(bleachers)
DescribePlace(location)
location is visited
CalculateHolding(player)
This doesn't produce the Debugger warning message. However, the darkness message is printed instead of the room description. Evidently, I can't make the game undersand that the bleachers are not closed off to the light.
The player object has to be located within an object with the "enterable" attribute from the very first move of the game. This represents the player character sitting in a sort of stands or bleachers, and the game has to begin in that state.
I've tried a couple different things in my [b]init[/b] routine, but nothing has worked flawlessly so far. I've been setting [b]location[/b] to the parent room object, moving the player to the room, and then using [b]Perform()[/b] to make the player enter the bleachers object:
[code] player = you
location = dome
old_location = location
move player to location
Perform(&DoEnter, bleachers) ! initially sitting -- sort of works
FindLight(location)
DescribePlace(location)
location is visited
CalculateHolding(player)[/code]
There are two problems with this. These two unwanted lines are displayed:
[quote]Hugo v3.1 / Library 31031
You sit down on the stands.
It's too dark to see anything.[/quote]
Also, when I run the game in the Debugger, I get the message "Property out of range: 255".
I've also tried setting the location to the room, moving the player directly to the bleachers, and then doing [b]FindLight()[/b] for the bleachers directly:
[code] player = you
location = dome
old_location = location
move player to bleachers
FindLight(bleachers)
DescribePlace(location)
location is visited
CalculateHolding(player)[/code]
This doesn't produce the Debugger warning message. However, the darkness message is printed instead of the room description. Evidently, I can't make the game undersand that the bleachers are not closed off to the light.