SystemB Slow Leak: switch ixeg/733/failures/hydraulics/systemB_slowLeak from 0 to 1, ixeg/733/failures/hydraulics/systemB_leakTime2Empty_mins from 0 to 20, and ixeg/733/hydraulics/hyd_quantity_B from 1 to 0 very slowly (1, 0999, 0998, 09777 etc).
But, if you switch the dataref manually (write 1 instead of 0, which is the job of your script), ixeg/733/failures/hydraulics/systemB_leakTime2Empty_mins switch from 0 to 0.1, This is the job of the System B Fast Leak, There is no specific custom dataref for this button.
So as it is, i see no way with the script.
SystemA Slow leak, same as above, but works with the button as it works directly with the dataref. Good for the sript.ixeg.
SystemA Fast Leak, Both ixeg/733/failures/hydraulics/systemA_blowout and ixeg/733/failures/hydraulics/systemB_blowout are switched from 0 to 1, but only ixeg/733/failures/hydralics/systemA_leakTime2Empty_mins is set to 0.1 (ixeg/733/failures/hydralics/systemB_leakTime2Empty_mins stays on 0. So only ixeg/733/hydraulics/hyd_quantity_A decrease).
Writing ixeg/733/failures/hydraulics/systemA_blowout, or ixeg/733/failures/hydraulics/systemB_blowout with the script should have the same effect. Good for the script.
EDP A Fast Leak = ixeg/733/failures/hydraulics/engine_pump_A_blowout. Should work with the script.
EDP A Slow Leak set ixeg/733/failures/hydralics/systemA_leakTime2Empty_mins to 20, decrease ixeg/733/hydraulics/hyd_quantity_A. But, no custom command, no custom dataref = nothing to do with the script.
Same with EDP B.
Is it clear? Probably only for me, hope also for Tom.
Claude.