[DECORATE] Switching weapons if there's no ammo

I've successfully updated the Mancubus Arm from Realm667 so that it has an alt fire. I've also written code so that if there's not enough for one type of fire the other type of fire is checked as well. All that is missing is the the weapon switching to another weapon when no ammo is available. Currently I simply use Goto Ready when this condition is met.
Relevant code:
Fire:
MARG A 0 A_JumpIfInventory("DemonBlood", 1, "RealFire") //check for regular ammo
MARG A 0 A_JumpIfInventory("HectePlasma", 1, "RealAltFire") //check for alt ammo
Goto Ready
AltFire:
MARG A 0 A_JumpIfInventory("HectePlasma", 1, "RealAltFire") //check for alt ammo
MARG A 0 A_JumpIfInventory("DemonBlood", 1, "RealFire") //check for regular ammo
Goto Ready
Note that I'm after ZDoom (not GZDoom) compatibility. You can download the weapon wad here:
https://drive.google.com/file/d/1c4Q1BY ... sp=sharing
I've tried playing with A_SelectWeapon but I haven't had much success. I'll admit that there's a lot about DECORATE I don't understand.
Relevant code:
Fire:
MARG A 0 A_JumpIfInventory("DemonBlood", 1, "RealFire") //check for regular ammo
MARG A 0 A_JumpIfInventory("HectePlasma", 1, "RealAltFire") //check for alt ammo
Goto Ready
AltFire:
MARG A 0 A_JumpIfInventory("HectePlasma", 1, "RealAltFire") //check for alt ammo
MARG A 0 A_JumpIfInventory("DemonBlood", 1, "RealFire") //check for regular ammo
Goto Ready
Note that I'm after ZDoom (not GZDoom) compatibility. You can download the weapon wad here:
https://drive.google.com/file/d/1c4Q1BY ... sp=sharing
I've tried playing with A_SelectWeapon but I haven't had much success. I'll admit that there's a lot about DECORATE I don't understand.