SHOPRO, a customizable text-based fighting card game
link to project on Github
Players can create their own cards using a special set of keywords.
Example: I want to make an event card called "Swimming in Money," which gives 2 ACP when used.
This card can be written as:
<Event "Swimming in Money" "Gain 2 ACP." [s event > gain_acp 2]>
After adding this line to the cards.txt file, the card will be added to the deck and randomly assigned to a player.
Running the game, it appears in Player 2's opening hand along with some other premade cards:
We can use the "check" command to confirm the card was properly created:
We can now try using our new event card by using the "event" command:
The message "You gained 2 ACP" is generated by the effect resolution method, meaning our new card worked.
Pressing Enter again reloads the board and updates Player 2's hand and ACP count.