The Vampiric Bite action describes an action which turns a character into a vampire. It includes basic information about the description and depiction of the action, and indicates that it can be played as a card via the property-value implementsSpecification: playableCard. Via playTarget it indicates it should only be played on characters, and via the patchesOnComplete it describes to the game how to change the world state so that the change is made (making the character a vampire)
One of the next steps is to separate the consequences of the action from the action itself so that it can have different effects depending on the context
If a vampire drinks the blood of the dead or dying, then the vampire itself dies, but if it performs Vampiric Bite on the living, it should turn them into a vampire
This is best achieved via an endpoint which returns the consequences of performing an action given the context. The endpoint can be indicated using mudlogic:actAt, and the parameters expected as context can be represented using mudlogic:parameterConstraintsShape. The key to the work to extract from the game the context described in the shape, and then to effect the changes described by the endpoint
The Vampiric Bite action describes an action which turns a character into a vampire. It includes basic information about the description and depiction of the action, and indicates that it can be played as a card via the property-value
implementsSpecification: playableCard. ViaplayTargetit indicates it should only be played on characters, and via thepatchesOnCompleteit describes to the game how to change the world state so that the change is made (making the character a vampire)One of the next steps is to separate the consequences of the action from the action itself so that it can have different effects depending on the context
If a vampire drinks the blood of the dead or dying, then the vampire itself dies, but if it performs Vampiric Bite on the living, it should turn them into a vampire
This is best achieved via an endpoint which returns the consequences of performing an action given the context. The endpoint can be indicated using
mudlogic:actAt, and the parameters expected as context can be represented usingmudlogic:parameterConstraintsShape. The key to the work to extract from the game the context described in the shape, and then to effect the changes described by the endpoint