Building: Mount
- Land Vehicles (motorbikes) - Mount flag
- Sea Vehicles (jetskis) - Boat and Mount flag
- Amphibious Vehicles (hoverbikes) - Boat and LandVehicle and Mount flag.
(Boat on its own will stop landgoing you need LandVehicle to reenable it.)
You can either make Mountable objects Fixed or not, it doesn't matter. Eg the heavier hoverbike is Fixed but the pedal-cycle is lightweight and therefore not Fixed (and thus you can carry it around with you).
For skateboards, we implemented a few extra things. riding_verb is set to "standing on",
so you'll see "You are standing on your skateboard" and others will see "%M is standing
on their skateboard."
And motion.verb
is set to "skate", so "You skate north on your skateboard" will happen.
You can make a mount item wearable as well, so you can create things like skis or rollerskates. They are automatically used when worn. Don't forget to flag them as NoSaddle (see below) and create an appropriate riding_verb for them. You may find the clothing dev doc useful.
If the object doesn't have a Saddle, set NoSaddle on it. If you want to customise the "step on" messages then do so as follows
property | NoSaddle default | default |
mount.geton | %1 step%[s] on %W | %1 jump%[s] into the saddle of %W |
mount.getoff | %1 step%[s] off %W | %1 jump%[s] off the saddle of %W |
BarUp on a mount will stop it going up. This doesn't generalise.
There is a "lua.jump_mount" trap on a mount that is called when you try to jump when mounted on it. Also, there is a "lua.mounted_act.%s" that is called when you do an action. For example "dance" will cause "lua.mounted_act.dance" to be called.