Extending the editor
From CCG Kit
Revision as of 03:19, 21 July 2017 by David (Talk | contribs) (Created page with "== Creating new card effects == The kit includes a collection of default card effects: * Increase player stat: It increases the stat of the target player by a given amount a...")
Creating new card effects
The kit includes a collection of default card effects:
- Increase player stat: It increases the stat of the target player by a given amount and for a given duration.
- Decrease player stat: It decreases the stat of the target player by a given amount and for a given duration.
- Set player stat: It sets the stat of the target player to a given value.
- Reset player stat: It resets the stat of the target player to its original value.
- Increase card stat: It increases the stat of the target card by a given amount and for a given duration.
- Decrease card stat: It decreases the stat of the target card by a given amount and for a given duration.
- Set card stat: It sets the stat of the target card to a given value.
- Reset card stat: It resets the stat of the target card to its original value.
- Add keyword: It adds a given keyword to the target card.
- Remove keyword: It removes a given keyword from the target card.
- Move card effect: It moves the target card to another game zone.
It is possible to create your own custom effects in a very convenient way. The editor will pick them up automatically without you having to write any additional code to do so. If you want to create a new effect, you will first need to decide if it is a player effect (i.e., it targets a player or group of players) or a card effect (i.e., it targets a card or group of cards).