Ah, whoops, I missed that this was in the VXAce forum. Sorry for the confusing answer! But as you figured out yourself, it does still work if you properly convert it to Ruby.
But you likely still want paramPlus and not param – as you said,
param(2) returns the attack value, not the attack buff (and thus is no different from just writing
atk); whereas
paramPlus(2) returns the amount that your attack has been buffed (in the range [-2,2], I believe). This is just a guess as I haven't opened up VXAce, but maybe it's called
param_plus? Try this:
Ruby:
$game_troop.members()[0].param_plus(2) < 0
Don't use () parentheses after members. Ruby doesn't need them there.
I may not be a Ruby expert, but… does it not work both with and without the parentheses? But that said, if it
does work without them, even if it still works with them, I'd recommend omitting them:
Ruby:
$game_troop.members[0].param_plus(2) < 0