View Single Post
Old 06-27-2003, 05:34 PM   #3
JusticeJustinian
New Member
 
Join Date: Jun 2003
Posts: 7
JusticeJustinian is on a distinguished road
The easiest solution?

Where it displays chars in a room, check if the player has "mounted" a vehicle, and continue past them.

This is the smoke and mirrors approach.

The clean approach to vehicles I've seen is with an item type, generate a "virtual room" using a pre-defined vnum range.

This room doesn't have exits, instead it has a "reference" to the "item" that represents it.

Then you just move the item from room to room as normal, and you move chars from room to room as normal.

Players leaving and entering the "vehicle" are actually entering a portal to the virtual room.

You'll need to modify a variety of commands (movement) to handle various other tasks.

The complexity from there is entirely up to you, you'll find some issues with combat... I've seen an implementation where they used extra fields for an npc to handle the vehicle, which should solve this. Just make sure to "purge" the virtual room when the NPC dies.

Either kill all the players and drop their corpses in the room with the dead "vehicle" or simply drop the players into the room with the vehicle.

Additionally, you can have "stations" for players to man within the vehicle. These stations could activate various abilities (the driver is capable of having the vehicle move).

-- Kwon J. Ekstrom
JusticeJustinian is offline   Reply With Quote