Is there a script call that can achieve that?
MZ Script Call to check if Gold >= to a variable value?
Javascript/Plugin Supportif ($gameParty.gold() >= $gameVariables.value(id))
As a side note, if I remember correctly, this could also easily be done with eventing. You put gold into a variable and then compare the two variables. At least in rm2k3 it can be done this way. 😀
If you want to use it in a conditional branch, you should make it a little shorter:
$gameParty.gold() >= $gameVariables.value(id)
Then you can use the conditional branch as any other. (Screenshot is from MV, but should work the same in MZ.)
Original thread: https://forums.rpgmakerweb.com/threads/script-call-to-check-if-gold-to-a-variable-value.150712/