damage-formula
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
damage-formula [2023/03/30 07:55] – banerjeesw | damage-formula [2025/01/27 23:04] (current) – [Damage Formula] isiahgames | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Damage Formula ====== | ====== Damage Formula ====== | ||
- | Using [[plugin-core|IsiahCardGameCombat]] in your project adds these new variables are available to the damage calculation formula: | + | Using [[plugin-core|MYTH_CGC_CoreEngine]] in your project adds these new variables are available to the damage calculation formula: |
| **handSize** | | **handSize** | ||
Line 9: | Line 9: | ||
| **cardsInPlay** | | **cardsInPlay** | ||
| **removedCards** | | **removedCards** | ||
+ | |||
+ | For example, if the player has 7 cards in their hand and they select this skill, it will take them to 6 cards, and the calculation will deal 60 damage. | ||
{{https:// | {{https:// | ||
- | |||
- | For example, if the player has 7 cards in their hand and they select this skill, it will take them to 6 cards, and the calculation will deal 60 damage. | ||
**Note**: Enemies do not use cards, and as a result their values for all of these variables will be 0. If an enemy used a skill with the above formula, then, they would deal 0 damage. | **Note**: Enemies do not use cards, and as a result their values for all of these variables will be 0. If an enemy used a skill with the above formula, then, they would deal 0 damage. | ||
===== Card Types ===== | ===== Card Types ===== | ||
- | If you have [[plugin-card-types|IsiahCGCCardTypes]], you also have access to this function: | + | If you have [[plugin-card-types|MYTH_CGC_CardTypes]], you also have access to this function: |
< | < | ||
Line 24: | Line 24: | ||
This function will tell you how many cards of the specified type are in the specified zone. So if your damage formula says: | This function will tell you how many cards of the specified type are in the specified zone. So if your damage formula says: | ||
- | < | + | < |
Then the damage dealt will be equal to 10 times the amount of Zombie cards currently in the player’s discard. | Then the damage dealt will be equal to 10 times the amount of Zombie cards currently in the player’s discard. | ||
This function can be used just like the variables in the last section for the **Require** keyword. | This function can be used just like the variables in the last section for the **Require** keyword. | ||
- |
damage-formula.1680155755.txt.gz · Last modified: 2023/03/30 07:55 by banerjeesw