Initially sitting
Posted: Wed Jun 20, 2012 9:42 am
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:
There are two problems with this. These two unwanted lines are displayed:
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:
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.
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)
Also, when I run the game in the Debugger, I get the message "Property out of range: 255".Hugo v3.1 / Library 31031
You sit down on the stands.
It's too dark to see anything.
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)