Hello everyone, I'm currently working on a game and I've gotten to the fishing system. I've made several before using eventing but the way I want to do this one is a little different. Have you ever played runescape? Basically I want my character to continue to fish until one of the following things happen:
1. Characters inventory is fill.
2. Player cancels the fishing action.
3. Fishing spot is depleted / enters cooldown period.
I feel like I'm missing something simple here. I want the player to press the action button at the fishing spot, a number is rolled to determine if the player catches a fish. They either do or don't and then another number is rolled for the same. And so on until one of the above conditions are met. Anyone have any advice on this? Thanks!
'Game Mechanics Design' is for looking at aspects of game play at a more conceptual level. "How do I...?" (implementation) questions belong in the Support forum for the engine you are using. The details of solutions can depend on which engine it is for.
Unfortunately you have not included the engine in the info under your avatar, nor do you mention in your post which it is, so this cannot be moved.
Please post stating which it is.
Okay, I'll move it. I recommend that you edit your Profile to include that info under your avatar, as it can be helpful for people if they can see at a glance which engine you are using.
Moderator note: Moving this to RPGMaker MV
Off the top of my head, I would suggest your event have two pages.
On page 1, no conditions, trigger type is action, and the only contents are to set a self-switch on.
On page 2, condition is the self-switch, trigger type is autorun. (This keeps the player from wandering off.)
Loop.
Conditional: if button cancel is pressed down, then Break Loop. End conditional.
Conditional: if inventory is full (however you define that), then Break Loop. End conditional.
[EDIT: Conditional: if fishing spot is depleted (however you define that), then Break Loop. End Conditional.]
Add whatever eventing you want for catching one fish here.
End loop.
After the loop add a set self-switch off command.
The downside I see to this is that they must hit the cancel button at the beginning of the loop, and they'll need to hold the cancel down to get the timing just right. If you're using Show Message during the fishing loop to give them the results of each roll, this probably won't work due to the timing issue. But if you're using something like Mr. T's Popups or Yanfly's Gab Message Window, it should work as long as the player knows to hold down the cancel. If your fishing includes a long wait time, you could always break up the wait time into repeats of a short wait followed by "if cancel button" to mitigate this.