Chuyển đến nội dung
Skillpedia
Lập trình chung6.6k · #13815

visual-novel

Skill này làm gì

Skill này hướng dẫn xây dựng visual novel và game truyện nhánh có hình nhân vật và hộp thoại. Nó dành cho nhà văn và nhà phát triển làm visual novel, game hẹn hò hoặc tiểu thuyết tương tác.

Khi nào nên dùng

  • ✓Khi bạn đang xây dựng visual novel với lựa chọn nhánh và hình nhân vật.
  • ✓Khi người chơi cần nhật ký, bỏ qua, tự động tiếp tục hoặc lưu ở bất cứ đâu.
  • ✓Khi bạn dùng Ren'Py và muốn áp dụng hướng dẫn thiết kế cho các tuyến và cờ.

Liên kết skill

https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/genres/visual-novel/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/genres/visual-novel/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi đang làm một visual novel có ba tuyến. Bạn có thể thiết lập kịch bản, hộp thoại có lựa chọn và màn hình nhật ký không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent xây dựng kịch bản nhánh với các cờ truyện, hiển thị hình nhân vật và phông nền, rồi thêm lựa chọn trong hộp thoại. Nó có các tính năng tiện ích như nhật ký, bỏ qua và lưu ở bất cứ đâu, hoặc dùng các bản dựng sẵn của Ren'Py khi dùng engine đó.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Visual Novel

A playbook for visual novels — the branching script, the presentation (text box, characters, backgrounds), choices, and the quality-of-life systems players expect (save anywhere, backlog, skip, auto). This is a compositional skill: it drives a dialogue engine and a UI layer. It does not re-teach the dialogue engine or UI nodes; it defines the script model and the player conveniences that make a VN pleasant to read.

When to use

  • Use when the game is mostly reading branching text with character art and backgrounds: visual novel, dating sim, branching interactive fiction, story-choice game.
  • Use when designing a choice/route structure, story flags, or VN conveniences (backlog, skip, auto-advance, save-anywhere).

When not to use: dialogue as one feature inside a larger game → rpg consuming dialogue-systems. Card/board play → other genres. For the branching-script engine itself, use dialogue-systems (Ink / Yarn Spinner).

If the project is Ren'Py (current stable 8.5.3): the engine already ships save-anywhere, rollback, a history (backlog) screen, skip that stops at unseen text by default (preferences.skip_unseen = False), auto-forward and a text-speed preference. Use and restyle those through its screens and preferences; apply this skill's design guidance (routes, flags, reactivity) rather than rebuilding the systems in Patterns 2–3.

Core loop

Read a line → advance → (at a branch) make a choice → the story branches on flags/choices → read on → reach an ending. The "game" is the shape of the branching and whether choices feel consequential; everything else is presentation and convenience.

Must-have systems

  1. Branching script — ordered lines + choices + jumps, with conditions and variables (Ink/Yarn).
  2. Text box — speaker name, body text, typewriter reveal, advance on click/key.
  3. Characters — sprites with expressions/poses, positions, show/hide transitions.
  4. Backgrounds + transitions — scene images, fades/dissolves.
  5. Choices — present options, gate some on flags, record the pick.
  6. Story state — flags/variables that branch the script and unlock content.
  7. Save/load (save-anywhere) — full script position + state; multiple slots; quick save.
  8. VN conveniences — backlog/history, skip (read text), auto-advance, text-speed setting.
  9. Audio — music per scene, SFX, optional voice clips.

Design knobs

Knob Effect Notes
Text speed / instant reading comfort Always allow instant + a skip.
Auto-advance delay hands-free reading Tunable; pause on choices.
Skip scope re-reading Skip read text only by default.
Branch breadth/depth replay value vs. cost Branches multiply writing/art work.
Flag-gated content reactivity Lines/choices that check past decisions.
Route structure story shape Branch-and-merge vs. distinct routes (refs).
Choice visibility fairness Show locked choices vs. hide them.
Backlog length convenience Keep enough to re-read recent context.

Patterns

1. Script as data the engine walks

# Pseudocode. Lines, choices, and jumps as data — usually authored in Ink/Yarn and stepped
# through by that runtime. The engine asks the script for "the next thing to show".
node = script.current()
if node.kind == "line":
    show_text(node.speaker, node.text)        # wait for advance input
elif node.kind == "choice":
    options = [o for o in node.options if condition_met(o.condition, flags)]  # gate by flags
    show_choices(options)                      # wait for selection
elif node.kind == "set":
    flags[node.var] = eval_expr(node.expr, flags)
script.advance(selected_option_or_none)

2. Typewriter reveal + advance (skippable)

# Pseudocode. Lay out the whole line once, then reveal it; a press first completes the line.
def show_text(speaker, text):
    name_label.text = speaker
    body_label.text = text                     # full text set up front: wrapping is decided now
    shown = 0.0
    while shown < visible_length(body_label):  # count displayed characters, not markup tags
        if advance_pressed():                   # first press: reveal the whole line instantly
            break
        shown += chars_per_second * frame_dt()
        body_label.visible_characters = int(shown)
        wait_one_frame()
    show_all_characters(body_label)
    backlog.append((speaker, text))  
Câu hỏi thường gặp

Skill có bao quát Ren'Py không?

Có. Skill lưu ý Ren'Py đã có sẵn lưu, quay lại, nhật ký và bỏ qua, và gợi ý dùng chúng.

Nó dùng công cụ hội thoại nào?

Nó dùng skill hệ thống hội thoại, bao quát Ink và Yarn Spinner cho engine kịch bản.

Nó có dành cho hội thoại trong một RPG lớn không?

Không. Hội thoại như một tính năng trong RPG được skill RPG phục vụ tốt hơn.

Chi tiết

Mô tả gốc của tác giả

Build a visual novel: a branching script, character and background display, a text box with choices, save/load, backlog, and skip/auto. Use for a VN, dating sim, or branching story game.

repo: gamedev-skills/awesome-gamedev-agent-skills

Độ phổ biến

Sao GitHub
6.6k
Vị trí xếp hạng
#13815
Giấy phép
Apache-2.0
Cập nhật
28/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự