plugin-card-summons
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin-card-summons [2024/10/15 05:32] – [Enemy Status Window] isiahgames | plugin-card-summons [2025/06/27 22:36] (current) – [Version History] isiahgames | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | //**This page is a work in progress, and will be updating periodically.**// | + | {{https://img.itch.zone/aW1nLzE4NzczOTY5LnBuZw==/original/ |
This plugin adds a new Zone to battles called the Field, and with it come several new features. | This plugin adds a new Zone to battles called the Field, and with it come several new features. | ||
Line 57: | Line 57: | ||
< | < | ||
- | skill x | + | Skill X |
- | skill x limit y per turn | + | Skill X Limit Y per Turn |
- | skill x limit y per battle | + | Skill X Limit Y per Battle |
</ | </ | ||
- | Replace 'x' with a Skill ID. | + | Replace 'X' with a Skill ID. |
- | (Optional) replace 'y' with the amount of times a skill can be used within a turn/ | + | (Optional) replace 'Y' with the amount of times a skill can be used within a turn/ |
If a card is removed from the Field and then placed again, its per-battle skills are refreshed. | If a card is removed from the Field and then placed again, its per-battle skills are refreshed. | ||
Line 76: | Line 76: | ||
<Card Passives> | <Card Passives> | ||
- | Start of Turn Field: Skill x | + | Start of Turn Field: Skill X |
- | End of Turn Field: Skill x | + | End of Turn Field: Skill X |
</Card Passives> | </Card Passives> | ||
- | Replace 'x' with a Skill ID. | + | Replace 'X' with a Skill ID. |
This should go inside the Skills database regardless of whether this is for a Field Card or a Creature Card, as it belongs to the card itself. | This should go inside the Skills database regardless of whether this is for a Field Card or a Creature Card, as it belongs to the card itself. | ||
Line 127: | Line 127: | ||
Inside a card, you can set it to summon a Creature when it moves to the Field through the following Skill Notetag: | Inside a card, you can set it to summon a Creature when it moves to the Field through the following Skill Notetag: | ||
- | <Field Creature ID: x> | + | <Field Creature ID: X> |
- | Replace 'x' with an Enemy ID. | + | Replace 'X' with an Enemy ID. |
When a card summons a Creature by moving to the field, the card is made invisible, but is still present underneath the Creature. When a Creature' | When a card summons a Creature by moving to the field, the card is made invisible, but is still present underneath the Creature. When a Creature' | ||
- | An animation can be played on the Creature when it is summoned by | + | An animation can be played on the Creature when it is summoned by using the following Skill Notetag: |
- | using the following Skill Notetag: | + | |
- | <Summon Animation ID: x> | + | <Summon Animation ID: X> |
- | Replace 'x' with an Animation ID. | + | Replace 'X' with an Animation ID. |
The specific placement of a Creature within the Field is relative to what RPG Maker considers its " | The specific placement of a Creature within the Field is relative to what RPG Maker considers its " | ||
- | <grid offset | + | <Grid Offset |
- | <grid offset | + | <Grid Offset |
| | ||
- | Replace 'x' with a number, positive or negative. | + | Replace 'Z' with a number, positive or negative. |
==== Creatures' | ==== Creatures' | ||
Line 157: | Line 156: | ||
You can override default display behavior by using the following notetags: | You can override default display behavior by using the following notetags: | ||
- | < | + | < |
- | < | + | < |
- | Replace 'x' with the stat/param associated with the Stat Display. | + | Replace 'X' with the stat/param associated with the Stat Display. |
Stat Displays also have a list of Text Color Conditions, which determine what color the text will be that displays the stat. This allows you to use a system where a number changes color when it lowers. | Stat Displays also have a list of Text Color Conditions, which determine what color the text will be that displays the stat. This allows you to use a system where a number changes color when it lowers. | ||
Line 170: | Line 169: | ||
The Stat Display will use the color of the first condition that returns true in the list. | The Stat Display will use the color of the first condition that returns true in the list. | ||
+ | ===== Summons Scope ===== | ||
+ | |||
+ | Base RPG Maker allows you to select the Scope of a skill, which determines who can be targeted for it. The addition of Creatures complicates this, and so you should work both with RPG Maker' | ||
+ | |||
+ | By default, all skills can target both Battlers and Creatures, and you can modify this with the following notetags: | ||
+ | |||
+ | <Card Summons Scope> | ||
+ | Battler | ||
+ | </Card Summons Scope> | ||
+ | |||
+ | <Card Summons Scope> | ||
+ | Creature | ||
+ | </Card Summons Scope> | ||
+ | |||
+ | In addition, scope can be made to include Battlers or individual Creatures when certain conditions are met, like so: | ||
+ | |||
+ | <Card Summons Scope> | ||
+ | if [expression] | ||
+ | Creature | ||
+ | </Card Summons Scope> | ||
+ | |||
+ | These if expressions are similar to the If Action in the Core Engine. They evaluate a code expression. | ||
+ | |||
+ | However, in this condition the user has access to the variable " | ||
+ | |||
+ | For example: | ||
+ | |||
+ | <Card Summons Scope> | ||
+ | Battler | ||
+ | if target.hp >= target.mhp | ||
+ | Creature | ||
+ | </Card Summons Scope> | ||
+ | |||
+ | In the above example, a skill could target the opponent Battler, and any Creature whose HP is greater than or equal to their Max HP - any Creature who hasn't taken damage. | ||
+ | |||
+ | Creatures that cannot be targeted will be greyed out during selection. | ||
+ | |||
+ | Another example: | ||
+ | |||
+ | <Card Summons Scope> | ||
+ | if target.friendsUnit().fieldCreatures().count == 0 | ||
+ | Battler | ||
+ | if user.mp < user.mmp | ||
+ | Creature | ||
+ | </Card Summons Scope> | ||
+ | |||
+ | The above example could target the opponent Battler only if there are no Creatures on their side of the field. It also can only target Creatures if the user's MP is not full. If neither condition is met there are no valid targets. | ||
+ | |||
+ | ===== Card Actions ===== | ||
+ | |||
+ | ^ Card Action Syntax | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | Select All Type typeName from unitName Field</ | ||
+ | | < | ||
+ | | < | ||
===== Enemy Status Window ===== | ===== Enemy Status Window ===== | ||
Line 182: | Line 238: | ||
In the Enemies database, you can adjust the position of the Enemy sprite within the Enemy Status Window using the following notetags: | In the Enemies database, you can adjust the position of the Enemy sprite within the Enemy Status Window using the following notetags: | ||
- | <Status Window Offset X: x> | + | <Status Window Offset X: Z> |
- | <Status Window Offset Y: x> | + | <Status Window Offset Y: Z> |
- | Replace 'x' with a number, positive or negative. | + | Replace 'Z' with a number, positive or negative. |
In Mugshot mode, this will determine what section of the Enemy Sprite is cropped within the corner of the window. | In Mugshot mode, this will determine what section of the Enemy Sprite is cropped within the corner of the window. | ||
In Full Image mode, this will determine the placement of the Enemy Sprite within the window. | In Full Image mode, this will determine the placement of the Enemy Sprite within the window. | ||
+ | ===== Debug Mode ===== | ||
+ | |||
+ | Card Summons has a Debug feature which may be useful for lining up parameters. | ||
+ | |||
+ | If the user hits F11 in battle during a playtest, some debug visuals will appear that show each side's field grid based on the user's parameters, as well as the " | ||
+ | |||
+ | This can help the user set their parameters to match up with the images they' | ||
+ | |||
+ | ===== Plugin Commands ===== | ||
+ | |||
+ | ^ Command Syntax | ||
+ | | < | ||
+ | | < | ||
+ | ====== Parameters ====== | ||
+ | |||
+ | ^ Field Grid Settings | ||
+ | | **Grid Width** | The amount of squares wide the Field is for each side. | | ||
+ | | **Grid Height** | The amount of squares tall the Field is for each side. Width * Height = The total amount of cards that can move onto the Field. | | ||
+ | | **Tile Width** | The amount of pixels wide each tile on the Field is. When Cards move to the Field, they move to the center of the first available tile. | | ||
+ | | **Tile Height** | The amount of pixels tall each tile on the Field is. | | ||
+ | | **Troop Field Image** | The image in img/ | ||
+ | | **Troop Field Position** | The coordinates for the troop' | ||
+ | | **Party Field Image** | The image in img/ | ||
+ | | **Party Field Position** | The coordinates for the party' | ||
+ | | **Grid Tile Offset** | The pixel offset between where the image coordinates are and where the tiles are computed. Essentially, | ||
+ | | **Troop Selection Image** | The image in img/ | ||
+ | | **Party | ||
+ | |||
+ | ^ Field Zone Info ^ This is a struct much like the Zone structs, simplified to remove extraneous information. ^ | ||
+ | | **Card Scale** | The scale Cards will become as they move to this Zone. Set this to a value less than 1 if you want cards to shrink as they approach the Zone, and greater than 1 if you want them to grow. || | ||
+ | | **Skew** | This parameter contains X/Y values that can be used together to simulate isometric 3D rotation. Like Scale, Cards will change their skew to match this value when they enter this Zone. || | ||
+ | | **Card Rotation** | Card Rotation is measured in degrees between -360 and 360. || | ||
+ | | **Card Enter SFX** | The SE that will play when a Card enters this Zone. Leave blank for no SE. || | ||
+ | | **Card Enter SFX** | The SE that will play when a Card exits this Zone. Leave blank for no SE. || | ||
+ | | **Card Actions on Empty** | See [[card-actions# | ||
+ | |||
+ | ^ Creature Behavior | ||
+ | | **Attack First Turn?** | The default behavior for whether Creatures can attack in the same turn they' | ||
+ | | **Animation Scale** | The scale for attack animations when targeting Creatures. | | ||
+ | |||
+ | ^ Creature Stats ^^ | ||
+ | | **Stats to Display** | This is an array of Stat Display setting structs, which will be detailed in the table below this one. | | ||
+ | | **Font Size** | The font size for the value of stats inside Stat Displays. | | ||
+ | | **Font Face** | The name of the font used to display stat text for creatures. Use " | ||
+ | |||
+ | ^ Stat Display | ||
+ | | **Parameter** | The name of the stat/ | ||
+ | | **Coordinates** | The position relative to the bottom center of the Creature for this stat to display. || | ||
+ | | **Display on Card?** | Determines whether this Stat Display will appear on Cards with a <Field Creature ID> notetag. || | ||
+ | | **Card Coordinates** | The position relative to the center of the Card for this stat to display, if Display on Card? is set to True. || | ||
+ | | **Background Image** | The image to draw behind the text, in img/ | ||
+ | | **Text Color Conditions** | This is a list of colors and conditions for the stat text to display in that color. || | ||
+ | | ::: | **Text Color** | The hexcode value for the text to be under this condition. Some color names also work. | | ||
+ | | ::: | **Condition** | An expression that evaluates to true/false. Use battler.statName, | ||
+ | |||
+ | ^ Field Skill Window | ||
+ | | **Static Position** | The default position of the window. | | ||
+ | | **Follow Conditions** | Determines whether the Field Skill Window follows the currently selected tile on the Field at an offset. If false, it will use the Static Position instead. | | ||
+ | | **Follow Offset** | Determines the offset value of the window relative to the selected tile. Ignore if Follow Conditions is false. | | ||
+ | |||
+ | ^ Enemy Status Window ^ This is the window that displays the Enemy' | ||
+ | | **Display Enemy Mode** | Determines how the Enemy Status Window visually displays the Enemy. Options are: || | ||
+ | | ::: | **Mugshot** | This takes a cropped section of the Enemy sprite and puts it in the corner of the window in the same way the Actor Status Window crops the Actor' | ||
+ | | ::: | **Full Image** | This shows the entire Enemy sprite inside the window, behind all text components. | | ||
+ | | ::: | **None** | This does not display the Enemy sprite at all within the Window. | | ||
+ | ====== Version History ====== | ||
+ | |||
+ | < | ||
+ | **v1.0.3** | ||
+ | - Added extra error handling when PartyUI_A is missing/ | ||
+ | |||
+ | **v1.0.2** | ||
+ | - Fixed bug where Help Window would not open after using a Selection skill on the Field while using HelpBoxControl. | ||
+ | |||
+ | **v1.0.1** | ||
+ | - Fixed Use Skill on This Card Action targeting the wrong Creature when the Creature was not the most recently played Card. | ||
+ | |||
+ | **v1.0.0** | ||
+ | - Released plugin | ||
+ | </ |
plugin-card-summons.1728963122.txt.gz · Last modified: 2024/10/15 05:32 by isiahgames