Main Connecting Starting



Building: Mount

To make an object mountable, set the "Mount" flag on it. Players can then mount/dismount it. If it's a mobile it will refuse to go indoors. (into locations without the Outdoors flag, that is).

(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

propertyNoSaddle defaultdefault
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
These two strings are normal action strings as defined elsewhere. Both %W and %a may be used to refer to the mount.

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.