Talk:Vehicle Use
Jump to navigation
Jump to search
Can a vehicle (with all of the same settings like other vehicles) be made that is not associated with any NPC? For example:
- If the player character has wings and can fly; while flying you might be able to move faster and on places where you cannot otherwise move, however in some places you might not be able to fly, or there might be some other conditions which disallow it (e.g. if you are carrying too much).
- If like in pokemon game, you can have a bicycle in your inventory, you can move faster, and some terrains might have other effect too. In some places you cannot use a bicycle.
- Swimming (again like in pokemon game). Some characters might be able to swim and some not (and some kind of clothing might not be suitable for swimming, maybe).
- If you have a spell or item that you can use only once to have the effect of a vehicle.
Perhaps it should be mention in the question section. --Zzo38 (talk) 15:22, 22 October 2021 (PDT)
This is a good idea, and one I'd never thought of. Unfortunately the vehicle code is terrible, so I avoid adding new vehicle features, but this might still be feasible. While riding a vehicle the NPC is ignored for nearly all purposes, so it's actually not much difference if there is no NPC at all. --TMC (talk) 17:32, 22 October 2021 (PDT)
I have a few more comments:
- The code suggests an option to use zone restrictions for vehicles; I agree that is good (that could be one of its bits, although the deprecated options should remain available, even if hidden in a deprecated menu). However, when it is an independent vehicle, there is no associated NPC.
- For independent vehicles, there will need to specify the icon and zone restrictions since there is no NPC to inherit these values from. One possibility is to have extra fields in the VEH lump (I think four of the eighteen available spaces should be needed for this purpose: picture, palette, zone restriction, avoidance zone). There can then be a bit which activates these settings (and hides them when they are not active).
- It is necessary to ensure that dismounting is working properly for independent vehicles (I am not sure how difficult this is; I haven't examined the code thoroughly).
--Zzo38 (talk) 21:22, 22 October 2021 (PDT)
I agree with all that. --TMC (talk) 05:35, 24 October 2021 (PDT)