I'm trying to create a quest (in RPG Maker MV) where the player has to collect 35 berries. But when I go to create the conditional branch, this is what I see:
Swipe Input – MV Plugin. SumRndmDde August 30, 2016 October 15, 2016 2 Comments on Swipe Input. Of a conditional branch, or through some other boolean-releated code. Somehow my Game doesnt detect the swipes anymore, could it be that the plugin doesnt work with a newer RPG Maker MV version? I am trying to create a conditional branch in RPG Maker using scripting that checks if a character's MP is at 0 and then gives the player a game over. I have tried looking for other alternatives to work around scripting but I couldn't find anything. If anyone can help me with the scripting or finding an alternative way, that would be awesome!
It does not let me add a number limit, so basically all the player has to dois collect 1 berry to complete the quest.
How can I change this so the player has to collect 35 berries in order to complete the quest? Is this a limitation of RPG Maker MV?
DMGregory♦
sketchersktsketcherskt
$endgroup$
1 Answer
$begingroup$
A Conditional Branch cannot refer directly to the quantity of an item, but the quantity can be copied to a variable, and the Conditional Branch can refer directly to that.
Before your Conditional Branch, insert a Control Variables (tab 1). In the Variable pane, select Single, click the button next to Single, select a variable that you're not using for anything else, and name it 'Berry Count'. In the Operation pane, select Set. In the Operand pane, select Game Data. Click the button next to Game Data to open the Game Data dialog. In the Game Data dialog, select Item. Click the button next to Item and select your item 'Berry'. The Game Data dialog should look like this:
and the Control Variables dialog should look like this:
In your Conditional Branch, don't select Item (tab 4). Select Variable (tab 1), set the variable to 'Berry Count', set the comparison to ≥, and set the value to constant 35. The Conditional Branch dialog should look like this:
and your event code should look like this:
TheBeardyManTheBeardyMan
$endgroup$
Not the answer you're looking for? Browse other questions tagged rpgeventsquestsrpg-maker or ask your own question.