Skip to content

arshtyi/typst-ygo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typst-ygo

Typst模板可用于创作游戏王卡片.

Note

  • 模板不会提交到universe.
  • 目前仅支持简体中文.
  • 仅限已发售的卡片.
  • 不支持 DIY 卡片.
  • 模板可能不会非常频繁地更新,因为非web的游戏王卡片模板非常难做,而且不稳定.所以我只会在有时间和动力的时候更新,并且我不会承诺任何更新计划.并且不是所有问题都会被解决,因为如果每个参数(和行为)都是合法的就不会有任何问题.

Examples

1 2 3
4 5 6
7 8 9

Usage

Assets

使用此模板时应当拥有类似arshtyi/Card-Templates-Of-YuGiOh的资源文件.文件树应当和本仓库(assets/)类似,但你也可以修改文件树,只要在模板中override正确的资源路径即可.

Quick Start

假设你已经拥有了assets中的资源文件,并且在template目录下编写:

#import "../lib/mod.typ": card, card_kind, frame_family, make_frame, monster_frame
#card(
    atk: 4000,
    attribute: "dark",
    card_image: 13331639,
    def: 4000,
    description: "龙族的融合·同调·超量·灵摆怪兽各1只合计4只\n这张卡不用融合召唤不能特殊召唤。\n①:这张卡特殊召唤的场合发动。对方场上的卡全部破坏。②:这张卡不会被对方的效果破坏,对方不能把这张卡作为效果的对象。③:这张卡战斗破坏对方怪兽时才能发动。从卡组·额外卡组把1只「霸王眷龙」怪兽特殊召唤。④:怪兽区域的这张卡被战斗·效果破坏的场合才能发动。这张卡在自己的灵摆区域放置。",
    frame: make_frame(card_kind.monster, monster_frame.fusion, family: frame_family.pendulum),
    id: 13331639,
    level: 12,
    name: "霸王龙 扎克",
    pendulum_description: "①:只要这张卡在灵摆区域存在,对方不能把场上的融合·同调·超量怪兽的效果发动。②:1回合1次,抽卡阶段以外从卡组有卡加入对方手卡时才能发动。那些卡破坏。",
    scale: 12,
    type_line: "【龙族/灵摆/融合/效果】",
)

Export

PPI的最佳值为600.

About

This template can be used to create a Yu-Gi-Oh! card using Typst.

Resources

License

Stars

Watchers

Forks

Contributors

Languages