Card Games - Multi-User-Domain/vocab GitHub Wiki
This is a guide on how to use cards in your game using the MUD cards ontology
mudcard playable specification
If an object has this property it is indicating that it respects the specifications for being used as a playing card in a game. Set it like so:
:myCharacter a mudchar:Character ;
# ...
mud:implementsSpecification <https://raw.githubusercontent.com/Multi-User-Domain/vocab/main/mudcard.ttl#playableCard> .
mudcard properties
After indicating that the resource is playable as a card, it can have the following properties:
mudcard:description
: an optional description (xsd:string
) which describes the effects of playing the cardfoaf:depiction
: an optional depiction of the card. Borrowed from the vocabulary Friend of a Friendmudcard:playTarget
: instructs the game how the card should be played. E.g. if it's an action that effects characters, the target could be<https://raw.githubusercontent.com/Multi-User-Domain/vocab/main/mudchar.ttl#Character>
. If this value isn't present the game COULD assume that it's played on nothing