Can we have Plugin Commands in Conditional Branches?

Hey all,

this is a suggestion for the RPG Maker.

I think it would be efficient to enable something Plugin Command-like but in an If-Condition.

At the moment, I'm solving this like this:

1641804242049.png


Querying some information and passing a Switch to store the info, you can do a Conditional Branch right next to check for the Switch. This example is quite simple as it queries just one piece of information. You can think about more complex situations like "Is there a monster on X, Y" and then you need to fill X and Y.
I mean, it works right now, but only for "global" things. Imagine something like "Can this event see the player because he/she is in range?" then I cannot use global Switches (however, a Self-Switch may do the job).

So yeah, it's just a suggestion. The RPG Maker's devs probably already thought about it before and decided not to implement it because my workaround actually solves it - it's just not as efficient. I understand that adding a new feature is expensive, but maaaaybe it's just adding a few lines of code, in that case, it would be awesome to include it.
doesn't work that way - there are reasons why plugin commands have no returns, and you would need a return value for an if branch.

it is much easier to do this with script commands, and script functions do not need anything changed in the editor.
All a script function needs is for the plugin programmer to write it in, and that is much easier to do with a script than with a plugin command. And if the plugin programmer doesn't program a script function, then he can't even think of doing the same by plugin command because the plugin commands absolutely require the existance of the script function they call even now.
Well of course it doesn't work by just copy-pasting Plugin Commands into Conditional Branches, but with some adjusted it will. Like as you said with calling scripts; I suggest to open a new dialog/UI here. The RPG Maker's devs would need to add some lines of code and so do the Plugin devs in their plugins.
As I already said above, the code doesn't work that way.

if the plugin programmer provides a function returning true or false, that function can be placed directly into the script line.

Adding more code to tell the conditional branch what to place into the script line, plus programming code to have the editor handle that is a lot of work just to replace a copy&paste into the script line.

and that is exactly what you are proposing: a replacement for a copy&paste of a function to the conditional branch script line.
It might not sound like that to yourself because you don't know the internals of the plugin commands, but it is exactly what the process you propose would do.

Original thread: https://forums.rpgmakerweb.com/threads/can-we-have-plugin-commands-in-conditional-branches.143795/