User Tools

Site Tools


plugin-card-fusion-beta

This is an old revision of the document!


MYTH_CGC_Fusion will allow you to create a system where Cards can be combined into new cards.

There are two card-combinations inside this plugin:

  1. Fusion
  2. Sleights

Current Version: 2.0.0

Fusion

Fusion is the automatic system of card combination.

Whenever a zone's contents are changed, the game will check if it contains cards that can be fused, and if so it will fuse them. Cards that will be fused together will go to the Fusion Zone, a temporary zone like the Temp Zone in the CoreEngine. The Fusion Zone can be configured through plugin parameters. Once the cards arrive at the Fusion Zone, they will be replaced with the newly fused card which will then return to the zone of origin.

Card Fusion will take priority over Card Action execution, pausing the active CA list until the fusion resolves. Similarly, the player cannot make inputs until the fusion is done.

Card Passives

Place the following inside the Card Passives of the Skill you want cards to be fused into - the result of the fusion.

Card Passive Syntax Description
[zoneName] Fusion Recipe: 
    X, Y, Z, A, B...
Replace [zoneName] with the name of a Zone

Replace X, Y, etc with skill IDs.

When the specified zone contains cards of the specified IDs, a Card Fusion will take place that removes those cards from the zone and replaces them with this card.

Hand Fusion Recipe: 4, 4, 4

The above will make the game check if the Hand contains 3 copies of a card with the skill ID 4, and if it does those three cards will be fused into the card that contains this Card Passive.

Discard Fusion Recipe: 5, 7, 9, 10, 11

The above will require that 5 different, specific cards are in the Discard, and if they are, they will fuse into the card that contains this Card Passive.

Note that a Card can have any number of Fusion Recipes, in any number of zones, including Extra Zones.

Yu-Gi-Oh Style Polymerization

Yu-Gi-Oh has a card which the player can use to select cards to fuse together. This mechanic can be recreated through clever use of the CoreEngine's extra zones parameters.

First, add an extra zone called Polymer. Then, have a Card with the following Card Actions:

Move 2 from Hand to Polymer
Move All from Polymer to Hand

This card will make the player select 2 cards to potentially fuse. If they can't fuse, they will return to the hand immediately. However, if they match IDs in any skill's Card Passive saying:

Polymer Fusion Recipe: X, Y

They will fuse before the Move All Card Action executes. Then the Move All CA will execute, moving the newly fused card into the hand.

Sleights

Sleights are the active system of card combination. They are done through player input. With Sleights, the cards don't get fused for the rest of battle. Instead, their resulting skill gets executed with all of the individual cards still in play.

Sleights are executed through the following process:

  1. The player moves cards to a dedicated Sleight Zone, either through Card Actions or through keyboard/mouse inputs to move them from the hand.
  2. When the player hits the Execute Sleight button, or when a card attempts to move to the Sleight Zone while it is full, the Sleight is executed.
  3. On execution, if the contents of the Sleight Zone match a Sleight Recipe, the current actor will use that Recipe's resulting skill.
  4. Afterwards, the Leftover Resolution will execute, which by default means that all cards not used in the Sleight Recipe will then be played one after another. This happens regardless of whether Step 3 occurs.
  5. Then the Sleight End Actions will execute. By default, this is set to “Move All from Sleight to Discard”. The Sleight End Actions must empty the Sleight Zone.

For an example of this, imagine a Sleight Recipe that requires 2 copies of the card Freeze, which results in a skill called Freeze+. If you were to move 2 Freeze cards and 1 Burn card into the Sleight Zone and then execute, the current actor would perform Freeze+, followed by the remaining Burn.

Leftover Resolution

The Leftover Resolution determines what happens with the remaining cards after a Sleight Execution. If no Recipe was met, all cards in the Sleight Zone are considered the remaining cards; similarly, if all cards in the Sleight Zone are ingredients in the Recipe, then none of them are considered the remaining cards, and the Resolution is skipped.

The settings are as follows:

  Play in Sequence

This plays every remaining card in the order in which they were added to the Sleight Zone, executing each one's skill as if the card had been played from the hand.

 Play First Card Only

This plays the first remaining card that was added to the Sleight Zone

 Play Last Card Only

This plays the most recently added remaining card

 Play Random Card

This chooses a random remaining card and plays that.

 Do Nothing

Does nothing.

When a card is played as part of the Leftover Resolution, its cost is paid. If the actor cannot afford the card's cost, it is skipped.

If the Leftover Resolution is set to play a single card and the actor cannot pay the skill cost of the chosen card, the card is skipped and the Leftover Resolution is ignored.

Version History

v2.0.0
- Added Fusion Recipe Plugin Params
- Added Fusion End Actions
- Added Fusion Recipe Scene
- Added Sleight System, including its scenes and params.

v1.0.4 
- Updated for compatibility with CoreEngine v1.7.0. Skew is now measured in degrees instead of radians.

v1.0.3 
- Fixed bug that prevented the Zone Coordinates and the Skew from being editable.

v1.0.2 
- Added Warning Message infrastructure.

v1.0.1 
- Fixed bad error handling resulting in crashes at start of battle in niche cases.
- Invisible cards now become visible when fusing.
- Slight refactoring.

v1.0.0 - Released plugin!
plugin-card-fusion-beta.1765837772.txt.gz · Last modified: 2025/12/15 23:29 by isiahgames