Options to change prices/rewardsSolved
The only way to properly display custom prices would be to make a custom GUI. I may add that later on, but it's a bit tedious to reimplement all of the dialog.
I've done some work on this feature. You can download the beta with the following link.
https://umod.org/plugins/VehicleVendorOptions.cs?version=1.3.0&branch=beta
The config now looks like this:
{
"Vehicles": {
"Minicopter": {
"FuelAmount": 100,
"ScrapCost": -1
},
"ScrapTransport": {
"FuelAmount": 100,
"ScrapCost": -1
},
"Rowboat": {
"FuelAmount": 50,
"ScrapCost": -1
},
"RHIB": {
"FuelAmount": 50,
"ScrapCost": -1
}
}
}The ScrapCost option is a global setting for all players. Setting to -1 (default) uses vanilla prices, so as to avoid server owners unintentionally locking in the prices, as they may want to follow the prices that the game developers set which could change.
Next, I'll work on adding support for Server Rewards and Economics, as well as multiple prices. Will probably need to include custom UI alongside that or it will likely be confusing to players.
Is having multiple prices something people would be interested in? For example, we could design the config like this:
"Minicopter": {
"FuelAmount": 100,
"AlternatePrices": [
{
"Item": "scrap",
"Amount": 100
},
{
"Item": "scrap",
"Amount": 200
},
{
"Economics": true,
"Amount": 100
},
{
"ServerRewards": true,
"Amount": 100
}
]
}This would then automatically generate permissions like the following.
vehiclevendoroptions.price.minicopter.scrap.100vehiclevendoroptions.price.minicopter.scrap.200vehiclevendoroptions.price.minicopter.economics.100vehiclevendoroptions.price.minicopter.serverrewards.100
I've released v1.3.0 which supports custom scrap amounts, other items, Economics, and Server Rewards. There is also a lightweight UI label that is floated on the conversation box when the vanilla price doesn't match the vanilla one, so that the player can be informed.