I am trying to make a vehicle that behaves in such a way that when the player “takes” the lawn mower they become in a state where they are pushing it around.
It works great but there is one piece I can’t figure out. The status when you are in the vehicle is (standing in the lawn mower)
I want to change this to (pushing the lawn mower)
I have gotten pretty far searching the manuals but I’m lost here.
This is my code for it
// #lawnMower This is the object seen in the room
- lawnMower : Vehicle, Fixture ‘electric lawn mower’ ‘electric lawn mower’
"This lime green electric lawn mower looks pretty awesome. "
;
// #lawnMowerHandle This is the object from inside the lawn mower for “drop mower” or “drop handle”
++ lawnMowerHandle : Thing ‘electric lawn mower/handle’ ‘mower handle’
"This lime green electric lawn mower looks pretty awesome. "
isListed = nil
dobjFor(Board) asDobjFor(Take)
dobjFor(Take)
{
verify() {}
check() {}
action()
{
"You grab the handle of the lawn mower, ready to push it wherever you go. ";
gPlayerChar.moveInto(lawnMower);
inherited;
}
}
dobjFor(Drop)
{
verify() {}
check() {}
action()
{
"You let go of the handle, no longer pushing the lawn mower. ";
gPlayerChar.moveInto(lawnMower.location);
inherited;
}
}
;