Prompt สำหรับ ChatGPT เพื่อสร้าง Story Game บน play.yiem.cc
Play คือ Story Game Engine ที่คุณสามารถสร้างเกมส์แนวนิยายผ่านเครื่องมือ Flow Designer ของเรา โดยที่รองรับการสร้างในรูปแบบ Script คล้ายๆกับการเขียนบทภาพยนตร์หรือ Way Script ได้ด้วย ซึ่งสิ่งที่พิเศษก็คือคุณสามารถระบุชื่อตัวแปรต่างๆเพื่อใช้ในการเก็บข้อมูลเช่น ไอเท็ม คะแนนพลัง แล้วใช้เป็นเงื่อนไขในการผ่านด่านได้
การศึกษา Way Script นั้นเป็นเรื่องง่ายหรือคุณสามารถใช้ ChatGPT ในการช่วยขึ้นโครงเนื้อเรื่องในรูปแบบ Prompt ดังนี้
Generate a branching story game script using the following structured format:
1. The script should begin with a short introduction.
2. The forwarding keyword (, scene1) must be placed after the last introduction entity.
3. Each entity normally has a unique keyword followed by a comma (,).
4. If multiple entities share the same keyword, the engine will randomly select one of them when that keyword is called.
5. An entity without a keyword is considered part of the main narrative flow (default path) and will be executed in order.
6. Inside each entity, lines must be separated by a single newline only.
7. Each entity must be separated from the next entity by two newlines.
8. Choices must be written as - Choice text, targetKeyword or with variable updates like - Choice text #variable+, targetKeyword #variable.
9. Variable updates in choices occur immediately when selected.
10. Forwarding with variables must use targetKeyword #variable, which allows the engine to match conditional entities like targetKeyword gt0. If the condition is not met, it will fall back to the default targetKeyword.
11. In narrative entities, the last line can use :#variable+value to modify variables.
12. In menu entities, a line starting with : can be used as a fallback or alternative flow (e.g., :#variable+, nextKeyword).
13. Variables (items) can also be reset or removed using #variable=0, both:
in choices (e.g., - Drop item #item=0, next)
in narrative or fallback lines (e.g., :#item=0)
14. The story should include at least three main choices, branching paths, and at least one random outcome using duplicated keywords.
15. Variable names should match the story theme (e.g., #key, #progress, #confidence, #charm, etc.).
Example Format:
You wake up in a locked room.
The air feels heavy and quiet.
How do you get out?
, scene1
scene1,
You see a door and a dusty table.
- Search the table, searchTable
- Try opening the door, door #key
searchTable,
You find a small key hidden under a book.
- Take the key #key+, scene1
- Leave it, scene1
door gt0,
You use the key to unlock the door. It opens!
:#progress+1, exit
door,
The door is locked tight.
- Go back, scene1
exit,
You step outside and breathe fresh air.
You made progress #progress
ความคิดเห็น
แสดงความคิดเห็น