Common Events Deck

Isc_CommonEventsDeck V 1.1.0
ISC

Introduction

This plugin allows you to draw common events that do not repeat, just as you would when drawing from a deck of cards.

Features
It allows you to randomly draw an event from a list of events chosen by the developer, as if it were drawn from a deck of cards (in this case, common events). The event will not repeat until the "deck" is reshuffled. Several features can be customized, such as:

- Creating your own "deck" of events to draw from.
- The ability to add a new pool of events to the existing one during the game.
- The ability to add single events to existing decks during the game.

Screenshots

1725609310129.png

1725609332414.png

1725609356570.png

1725609372744.png


1725609682802.png


How to Use
- You can define all events in the initial deck by prefixing the event name with the tag <deck>.
To draw a common event from the deck, simply invoke the `plugin command: drawevent`.

- Adds a new block to the initial deck.
This command can be used during the game to add a new block of events that have the tag <deck_add> at the beginning of their name.
invoke the `plugin command: addEvents`.

- Add single events.
To add a single event to the deck, no type of tag is needed, only the related plugin command.
invoke the `plugin command: event [ID]`.

- Shuffle Common events Deck.
invoke the `plugin command: shuffleDeck`.

Parameter of plugin:
Show if you want to see a message when the deck is shuffled. Choose the type of message to display and where to display it.

Versatility: This plugin can be used for various mechanics beyond just creating a deck from which to draw. For example, you could create NPC dialogues, image extraction, or, if you're familiar with RPG Maker, you could even create random plot branches. Simply put, anything your imagination can create through common events can be included in a hypothetical deck from which to draw. Enjoy!

Possible issues with other plugins and mechanics: The plugin does not check if you have already called the common event using other methods; it only excludes the common event from the deck if the event is called through the specific plugin command (keep this in mind).

Plugin Commands / Script Calls
prefix tag:
- <deck> main deck
- <deck_add> add a new block of events

Plugin commands:
Draw event from deck: drawevent
Shuffle the deck: shuffleDeck
Add a single event to the deck: event [ID]
Add a new block of events: addEvents



Demo
The demo is an RPG Maker project where you can experiment.

Download
What you'll find is a project in RPG Maker MV. You are free to experiment directly with the demo.


Terms and Credits
You can use the plugin on both commercial and non-commercial projects. Just credit: Ischenderun or ISC.
Free to use.
not exactly sure what the purpose is, but the concept is a bit unclear.

you use in the sample image <maz> and <maz_agg> while you said to
use <mazz>?

than on itch to shuffle the deck, plugin command: SuffleDeck without the "h"
while the image uses ShuffleDeck.

which one is correct, the helpfile or the image?
Thank you for pointing that out, it was a typo on my part. I’ve corrected the instructions on the itch.io page. Tomorrow, I will fix the plugin help file. Please consider the terms found in the demo and shown in the images to be correct. In the future, I will change the tags to make them closer to the correct translation and rewrite the help file if it's unclear.

The developer defines the base common events that will be drawn. At their discretion, they can expand this list of events by adding an entire block of events or a single event during the game. In reality, the uses can be varied, all tied to a random draw that doesn't repeat.

I'll give a very simple example.

Let's say I have an NPC that will speak using 10 random dialogues that don't repeat (at least until the deck is reshuffled). Let's say that after successfully completing a quest, the NPC’s dialogues can change, or new dialogues can be added to those previously seen. Imagine having a deck of cards made up of common events and randomly drawing a card that allows you to activate a common event.
Obviously, this system is adaptable to many things but can work especially well in a card game.

Feud, the game I created, uses this mechanic. The events are random and do not repeat, so it’s unlikely that one game will be the same as another.
A query about this one: is it possible to set up several decks you can pick from for the AddEvents command? It sounds like it globally adds everything with <deck_add>, is that right?

Since my game has the player able to pick 4 of the potential 10 characters, what I'd like to do with this is set up a pool of dialogue that can randomly occur based on what party members have been selected. Is that possible?

Original thread: https://forums.rpgmakerweb.com/threads/common-events-deck.171708/