I think Check.vgreater(....) is good. I'm no coder at all, but as long as it allows to compare one variable to multiple other ones at the same time (rather than doing it 1 by 1 or only by a constant value). I figured out a way to do it with default editor, but it is pain and makes wall of text. Thanks for the response. I'll look forward to seeing the new function added.@w.alexander
No, no, not necroposting at all. It's a pretty quick add (currently writing it now), but I couldn't think of a better name than Check.vgreater(....). Any suggestions on what the function should be called?
@mjshi Thanks so much! Is there a ******* for you that I can donate? I don't have much, but I'd like to show my gratitude.@w.alexander
It has been done.
update 1.2a
- Added Check.vgreater and Check.vlesser
See the github link in the main post or below for the new version.
https://github.com/mjshi/RPGMakerRepo/blob/master/ConditionalBranch+/ConditionalBranch+.js
Sorry, it took a while, but I've finally gotten the chance to correct things! Everything is in working order. And it's so much easier to deal with this without all the nesting. Your plugin is brilliant! I can't thank you enough!@AndromedaFr
Does combining Check.greater and Check.lesser work for you? Ex. Check.greater(1, 5) && Check.lesser(1, 10) to check if 5 <= variable 1 <= 10.
Otherwise, I'll investigate to see if this is an issue as soon as I'm free.
(edit: also, make sure you're getting this from github and not dropbox! dropbox may be a little outdated.)
That looks right, you can just do Check.any_inrange(486, 487, 488, 489, 490, 0, 0) instead though if you just want to check for 0!Hey, quick question. Would you be able to take a look at the conditional branch script I'm trying to get working, and let me know what I'm doing wrong?
I'm trying to check if any of variable 486-490 are equal to 0 or 1 (although, if there's a way to just check if any of them are equal to 0 instead, please let me know!).
Check.any_inrange(486, 487, 488, 489, 490, 0, 1)
Yep! So in that example you'd want to see if the player has more than 5 of items 1, 2, 3, and 4.Question.
Check.has_more(~*items, number)
-- EX: Check.has_more(1, 2, 3, 4, 5)
** the last number in this is # of items you want the system to look to see if player has?