Generate SRV "low fuel" events in addition to the status.json
one, and generate them more frequently
#2462
Labels
9. enhancement
The behaviour is as specified, but we would like to modify or extend the spec.
What happens now
EDDI triggers
ShipLowFuelEvent
when the flag instatus.json
for low fuel flips.What I'd like to happen
I'd like to have a script respond to SRV fuel level changes. Especially, I'd like to respond when fuel dropped below 5 percent (not 25), in order to refuel when nearly empty with minimal waste of synthesis materials.
Then I can have the script check
vehicle = "SRV"
andstatus.fuel_percent
, and yell at me when fuel is getting close to empty ... so I'm no longer surprised by it. :)How it can happen
Personally, I'd trigger it by emitting
VehicleStatusUpdate
, orVehicleFuelUpdate
, with a speech responder script associated. Firing that when the percentage fuel level changed (up or down) by at least one percent (well,>= 0.99
percent, since these decimals) would allow the cottle script to generate an appropriate response to any/all the actions.That said, anything which let me capture the fuel level being low in a script would be fine.
For example, the existing
ShipLowFuelEvent
runs the speech responderLow fuel
event – which script internally checks if we are in a ship or not. So, firing that for the SRV would be a start, since I could extend the script to add the new condition.I would also be satisfied with a more coarse-grained tool: if you fired
ShipLowFuelEvent
when thestatus.json
fuel_low
flag was set, and also every time it crossed a five percent threshold, that'd work too. (eg: fire at <= 25%, <= 20%, <= 15%, ...) -- that'd reduce the frequency of events, without removing utility entirely. (might consider single digit percent changes below 5 percent, too, since yelling at me more when at 3 percent than 23 percent is reasonable.)EDDI Version
v.4.0.2-b5
The text was updated successfully, but these errors were encountered: