add-verb
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAdding Verbs to Word Lists
为词库添加动词
Verb word lists map player input to entity handlers (, , etc.).
OnLookOnTouch动词词库用于将玩家输入映射到实体处理器(、等)。
OnLookOnTouchAdding a Verb
添加动词
Run the script from the project root:
bash
./scripts/add_verb.py --action ACTION --verb VERBValid actions: Auto-discovered from files. Run to see current options.
data/verbs/on_*.txt./scripts/add_verb.py --helpExample:
./scripts/add_verb.py --action on_attack --verb pummel从项目根目录运行以下脚本:
bash
./scripts/add_verb.py --action ACTION --verb VERB有效动作:从文件中自动识别。运行查看当前可用选项。
data/verbs/on_*.txt./scripts/add_verb.py --help示例:
./scripts/add_verb.py --action on_attack --verb pummelRules
规则
- No duplicates: A verb can only exist in ONE file across all word lists
- Lowercase: All verbs are stored lowercase
- Auto-sorted: Files are automatically kept alphabetically sorted (Python default sort)
- One per line: Each verb on its own line
- Multi-word verbs: Supported (e.g., "log in", "log out")
- 无重复:一个动词只能出现在所有词库中的某一个文件里
- 小写存储:所有动词均以小写形式存储
- 自动排序:文件会自动保持按字母顺序排序(Python默认排序规则)
- 一行一词:每个动词单独占一行
- 支持多词动词:例如“log in”、“log out”
Files
文件说明
Word lists are in :
data/verbs/- - examine, inspect, look, peer, etc.
on_look.txt - - feel, poke, prod, touch, etc.
on_touch.txt - - attack, hit, smash, strike, etc.
on_attack.txt - - activate, operate, use, etc.
on_use.txt - - grab, pick, take, etc.
on_take.txt - - open, login, access, boot, etc.
on_open.txt - - close, logout, disconnect, etc.
on_close.txt - - drop, etc.
on_drop.txt
词库文件位于目录下:
data/verbs/- - 包含examine、inspect、look、peer等动词
on_look.txt - - 包含feel、poke、prod、touch等动词
on_touch.txt - - 包含attack、hit、smash、strike等动词
on_attack.txt - - 包含activate、operate、use等动词
on_use.txt - - 包含grab、pick、take等动词
on_take.txt - - 包含open、login、access、boot等动词
on_open.txt - - 包含close、logout、disconnect等动词
on_close.txt - - 包含drop等动词
on_drop.txt
Validation
验证
Run to check for duplicates across all files.
just verbs运行检查所有文件中是否存在重复动词。
just verbs