MZ IsDLCInstalled from SteamLinkCommandAddOn

I'm trying to use it to check if a Steam DLC is installed:
1739309404501.png


I'm not sure why we need to use a variable instead of a switch for that to be honest... like, the DLC is installed, or it's not. A switch would have made better sense unless I'm missing something. But whatever, let's use a variable then...
The problem is that if I launch the game from Steam, then I get this:

1739309484105.png


Any clue what the hell is going on?
I'm trying to use it to check if a Steam DLC is installed:
View attachment 331266

I'm not sure why we need to use a variable instead of a switch for that to be honest... like, the DLC is installed, or it's not. A switch would have made better sense unless I'm missing something. But whatever, let's use a variable then...
The problem is that if I launch the game from Steam, then I get this:

View attachment 331267

Any clue what the hell is going on?
DLC Name has to be an app ID, so it's expecting a number.
Yeah, the parameter should be called dlc app id, like in greenworks' document.
And so that I'm sure, variable will be 1 if the DLC in installed, and 0 otherwise?

Sorry for double post but I'm still getting an error when I'm putting the ID number of the DLC instead.

1739356312516.png


Here is what DevTools says about it:

1739356068047.png
Is there a link to the plugin?
It looks like the variable parameter is not correct.
It's this:
OK it seems falseVariable is definitely undefined.
I wonder if the author have tested this.

1739363638803.png
Yep, I realized you need a "true" variable, this is a bit circumvoluted IMO (why not just use a switch??) but I tried to follow their rules, this is what I did last, and it STILL won't detect the DLC, so I wonder if this function has been tested properly.

EDIT: at least this doesn't give any error message, but no DLC detected still.

1739367941449.png
The problem is that the code is checking for a falseVariable if trueVariable is false, but it doesn't exist.

Honestly I would edit the command to take a switch instead of a variable, and just set the switch to the return value from isDLCInstalled.
I would too, if I could... <__<
Yeah, the need of a trueVariable and falseVariable completely loses me.
1739369571593.png

You can also use script to get that like this.

Tested that in the console:
1739369814521.png
I finally got it to work. Their wording is pretty terrible IMO.
First why ask for the DLC "name" when you could just say the DLC "ID number".
Then what they call true variable is just the value expected if the condition is true.
For instance if you put 200 in "True Variable" then it means the variable you will use to test Is DLC Installed will get the value 200 if it's true.
So after you've tested Is DLC Installed you will have to test if variable used = 200 to check it.
That's why he used "1" in his demo. But the way it's worded I thought we were selecting a variable not a variable value. Anyway super confusing but finally got it to work. And yeah a switch would have been 1000% more obvious.
Well one of the reason is plugin command doesn't have a return value so you can't put them in a conditional branch directly. So they use a work around. It is a design flaw of MZ and MV.
If you know how to use script, you won't need the plugin, you can just use greenworks directly.
Yeah, the need of a trueVariable and falseVariable completely loses me.
View attachment 331328
You can also use script to get that like this.

Tested that in the console:
View attachment 331329

Thanks, this worked beautifully.
That add-on plugin was really a nightmare to use honestly, one of the most counter-intuitive I've had to deal with.

Original thread: https://forums.rpgmakerweb.com/threads/isdlcinstalled-from-steamlinkcommandaddon.175377/