Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • 1 12782867-Changes-Into-Here
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kaoru Aoi
  • 12782867-Changes-Into-Here
  • Wiki
  • Testing Cards

Testing Cards · Changes

Page history
dulst-admin created page: Testing Cards authored Aug 10, 2019 by Kaoru Aoi's avatar Kaoru Aoi
Hide whitespace changes
Inline Side-by-side
Testing-Cards.md 0 → 100644
View page @ 87cab63a
Testing Cards In General
========================
To test cards, play with yourself in 2 tabs.
Use the special test url:
http://dulst.com/\[gamename\]/play/test/\[myname\]
You can name test games anything you like, for example:
http://dulst.com/\[gamename\]/play/test/test1
In a test match, there are some special command available to you. Type these commands into the match chat.
To help testing, all players start with 100 mana at the start of the match.
**Add a new card to the match:**
Type into chat:
/a \[cardID\]
This command adds the specified card to your hand (importantly, you must have a board location called hand). A card's ID is the ID of the card in the url. It is 15903 in the following example: http://dulst.com/\[gamename\]/cards/**15903**/\[cardname\]
You can also add multiple cards on the same line:
/a 15903 15904 15905
**Replace your current deck with a different deck:**
/a deck \[deckID\]
Advanced
========
In testing sometimes you want to see what's actually happening behind the scenes.
The game log shows which effects are running throughout the entire game.:
**Show the game log:**
Run in devtools console:
dulst.logs()
This view gives more information.
**Show all the properties on the game.**
Run in devtools console:
dulst.view('game')
**Show all the properties of a player.**
Run in devtools console:
dulst.view('player1')
dulst.view('player2')
**Show all the properties of a card.**
Run in devtools console:
dulst.view(ciid)
Cards are identified in-game by the ciid or **Card Instance ID**. This is the unique ID for each card. Rule cards also have ciids. This is different from the card id of each card in the url. Multiple copies of the same card in game share the same card ID, also known in the debugger as "nid". Each copy has its individual "ciid".
**Stop the card preview from disappearing and making it clickable:**
Type into chat:
/a keepOpen
**Theme the look of the play area via CSS:**
Type into chat:
/a editCSS
\ No newline at end of file
Clone repository
  • Testing Cards
  • Home