@dsh-agentic-roleplay/core 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/{notes-CJzbN_-E.js → activity-t7OBgHlc.js} +267 -47
- package/lib/authoring.js +295 -14
- package/lib/client.js +2599 -648
- package/lib/client.js.map +1 -1
- package/lib/compaction.js +1 -1
- package/lib/{documents-BBq88wXP.js → documents-Bu5uYRZB.js} +54 -33
- package/lib/{gallery-CjG9_4Sz.js → gallery-DUeBMHQX.js} +2 -2
- package/lib/{generator-pxZS-pu-.js → generator-HPifO3Kk.js} +211 -15
- package/lib/images.js +3 -3
- package/lib/index.js +849 -20
- package/lib/{narration-tYy6Rkfr.js → narration-BRyHU0H2.js} +28 -5
- package/lib/orchestration.js +803 -233
- package/lib/packs-ByP1J-zj.js +1334 -0
- package/lib/{presenter-agent-DbZALurg.js → presenter-agent-G43ODV8I.js} +3 -3
- package/package.json +5 -3
- package/prompts/en/roleplay/ask-answerer.md +3 -0
- package/prompts/en/roleplay/ask-question.md +2 -0
- package/prompts/en/roleplay/character-decide.md +1 -1
- package/prompts/en/roleplay/character-lookup.md +1 -1
- package/prompts/en/roleplay/faction-strategist.md +5 -0
- package/prompts/en/roleplay/game-master.md +5 -1
- package/prompts/en/roleplay/ooc-empty.md +1 -1
- package/prompts/en/roleplay/trigger-judge.md +3 -0
- package/prompts/en/world/procedure.md +1 -1
- package/prompts/zh/roleplay/ask-answerer.md +3 -0
- package/prompts/zh/roleplay/ask-question.md +2 -0
- package/prompts/zh/roleplay/character-decide.md +1 -1
- package/prompts/zh/roleplay/character-lookup.md +1 -1
- package/prompts/zh/roleplay/faction-strategist.md +5 -0
- package/prompts/zh/roleplay/game-master.md +5 -1
- package/prompts/zh/roleplay/ooc-empty.md +1 -1
- package/prompts/zh/roleplay/trigger-judge.md +3 -0
- package/prompts/zh/world/procedure.md +1 -1
- package/starter-worlds/blackwater-observatory/characters/arthur-moore/character.json +65 -0
- package/starter-worlds/blackwater-observatory/characters/clara-whitlock/character.json +87 -0
- package/starter-worlds/blackwater-observatory/characters/eleanor-graves/character.json +80 -0
- package/starter-worlds/blackwater-observatory/characters/marcus-reed/character.json +73 -0
- package/starter-worlds/blackwater-observatory/items/anonymous-letter/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/brass-laboratory-key/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/claras-gossip-notebook/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/harlans-notebook/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/investigators-coat/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/investigators-notebook/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/locked-filing-cabinet/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/marcus-calibration-notes/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/mayors-administrative-seal/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/municipal-lockbox/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/pocket-revolver/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/room-7-cash-receipt/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/rusting-mine-cart/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/signal-recording-strip/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/silver-pocket-watch/item.json +9 -0
- package/starter-worlds/blackwater-observatory/items/survey-archive-cabinet/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/surveyors-map/item.json +10 -0
- package/starter-worlds/blackwater-observatory/items/unknown-visitors-note-fragment/item.json +10 -0
- package/starter-worlds/blackwater-observatory/locations/blackwater-ridge/location.json +5 -0
- package/starter-worlds/blackwater-observatory/locations/iron-stag-bar/location.json +30 -0
- package/starter-worlds/blackwater-observatory/locations/iron-stag-room-7/location.json +18 -0
- package/starter-worlds/blackwater-observatory/locations/north-forest-cabin/location.json +18 -0
- package/starter-worlds/blackwater-observatory/locations/observatory-directors-office/location.json +20 -0
- package/starter-worlds/blackwater-observatory/locations/observatory-telescope-chamber/location.json +25 -0
- package/starter-worlds/blackwater-observatory/locations/old-mine-entrance/location.json +27 -0
- package/starter-worlds/blackwater-observatory/locations/old-mine-main-tunnel/location.json +13 -0
- package/starter-worlds/blackwater-observatory/locations/town-hall-mayors-office/location.json +25 -0
- package/starter-worlds/blackwater-observatory/locations/town-hall-records-room/location.json +13 -0
- package/starter-worlds/blackwater-observatory/locations/town-square/location.json +30 -0
- package/starter-worlds/blackwater-observatory/triggers.json +20 -0
- package/starter-worlds/blackwater-observatory/ui/notebook/map.html +12 -0
- package/starter-worlds/blackwater-observatory/ui/notebook/map.js +40 -0
- package/starter-worlds/blackwater-observatory/ui/notebook/notebook.html +29 -0
- package/starter-worlds/blackwater-observatory/ui/notebook/notebook.js +45 -0
- package/starter-worlds/blackwater-observatory/ui/notebook/pack.json +31 -0
- package/starter-worlds/blackwater-observatory/ui/notebook/skin.css +16 -0
- package/starter-worlds/blackwater-observatory/ui/notebook/strip.html +11 -0
- package/starter-worlds/blackwater-observatory/ui/notebook/strip.js +12 -0
- package/starter-worlds/blackwater-observatory/ui/notebook/style.css +23 -0
- package/starter-worlds/blackwater-observatory/variables.json +39 -0
- package/starter-worlds/blackwater-observatory/world.json +27 -0
- package/lib/worlds-Bj-EGS_i.js +0 -478
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as updateImage, n as galleryFile, r as listGallery } from "./gallery-
|
|
1
|
+
import { A as runChild, d as nextSceneSerial, n as generateTransientImage, p as referenceImagePath, t as generateReferenceImage } from "./generator-HPifO3Kk.js";
|
|
2
|
+
import { i as updateImage, n as galleryFile, r as listGallery } from "./gallery-DUeBMHQX.js";
|
|
3
3
|
import { t as promptFor } from "./access-C1nFQiyT.js";
|
|
4
4
|
import { dirname, join, relative } from "node:path";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
@@ -850,4 +850,4 @@ async function runImagePresenter(job) {
|
|
|
850
850
|
//#endregion
|
|
851
851
|
export { tokensOf as a, searchImages as i, interpretImage as n, present as o, imageTools as r, presentedFor as s, runImagePresenter as t };
|
|
852
852
|
|
|
853
|
-
//# sourceMappingURL=presenter-agent-
|
|
853
|
+
//# sourceMappingURL=presenter-agent-G43ODV8I.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-agentic-roleplay/core",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Core plugin of the agentic roleplay bundle for DeepSeek Harness: roleplay UI, orchestration and storage.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Firefox2100",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"files": [
|
|
61
61
|
"lib/*.js",
|
|
62
62
|
"prompts",
|
|
63
|
+
"starter-worlds",
|
|
63
64
|
"lib/client.js",
|
|
64
65
|
"lib/client.js.map",
|
|
65
66
|
"cordis.patch.yml",
|
|
@@ -72,8 +73,8 @@
|
|
|
72
73
|
"@deepseek-ai/schemastery": "^3.18.4"
|
|
73
74
|
},
|
|
74
75
|
"dependencies": {
|
|
75
|
-
"@dsh-
|
|
76
|
-
"@dsh-
|
|
76
|
+
"@dsh-agentic-roleplay/state": "0.2.1",
|
|
77
|
+
"@dsh-ai-providers/core": "^0.1.2"
|
|
77
78
|
},
|
|
78
79
|
"devDependencies": {
|
|
79
80
|
"@deepseek-ai/cordis": "^4.0.4",
|
|
@@ -91,6 +92,7 @@
|
|
|
91
92
|
"@deepseek-ai/dsh-client-ui-session": "0.2.0-rc.2",
|
|
92
93
|
"@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.2",
|
|
93
94
|
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.0-rc.2",
|
|
95
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.0-rc.2",
|
|
94
96
|
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
|
|
95
97
|
"@deepseek-ai/dsh-compaction": "0.2.0-rc.2",
|
|
96
98
|
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.2",
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
You answer an out-of-character question that a player asks about the story they are playing. The player plays ${name}. You are given what ${name} knows: where it is and who is there, what it remembers, what it knows exists, what it carries, how it stands with people. The player's question is under "Situation".
|
|
2
|
+
Answer the player in plain words, in a few sentences at most: not as ${name}, and not in the voice of the story. Use only what you are given. Do not add facts, do not guess, and do not say what ${name} does not know or hint at anything that is not in what you are given. When what you are given does not settle the question, say that ${name} does not know, or that nothing so far shows it, and what ${name} could do to find out.
|
|
3
|
+
Answer by calling submit_result.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Each time you are asked, decide what ${name} does now and answer with
|
|
1
|
+
Each time you are asked, decide what ${name} does now and answer with these, in this order: thought (first, in your own voice: what you notice in the moment and what you want from it, a sentence or two and at most ${thoughtLimit} characters; no one is shown it), intent (one action, in one or two sentences and at most ${intentLimit} characters, no speech), utterance (only the words said aloud, word for word, in your own voice, at most ${utteranceLimit} characters, with no quotation marks and no description of what you do, which belongs in intent; leave it out if you stay silent) and commitment (low gives up at once, medium tries again if it is easy, high persists). Never repeat words you already said earlier in this scene: if you have nothing new to say, leave the utterance out.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
What you remember that bears on the moment is already given to you above, with whatever came to mind along with it. Only if something the situation names is missing from it, ask yourself with recall_my_memories, about that one thing, and no more than a few times in all. When it gives you nothing, there is nothing more to find: do not ask again about the same thing in other words, simply go on with what you know, and never say that you remembered nothing.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
You are the strategist of an organisation in an interactive story: you decide what the organisation, as a whole, does while time passes in the story. You are not a character and you never speak for one. You work only from what you are shown: its identity and values, its public and private state, its goals, its members, its standing with others and what has happened lately.
|
|
2
|
+
|
|
3
|
+
A faction acts slowly and through its people, with the means it really has. Decide one concrete thing it does in the time that has passed: something that follows from its goals and its situation, that a member or an observer could later learn about, and that does not decide what any named character does or feels (the characters decide that themselves). Do not resolve the story: prefer a step, a preparation, a decision, a message sent, a rumour spread, over a result.
|
|
4
|
+
|
|
5
|
+
Then say how the organisation stands afterwards. Change its public state only when outsiders could see it, and its private state when its inner position moved. Mark a goal completed or failed only when what the story has established says so; pause or abandon a goal only for a reason you can state. You may add one new goal when the situation calls for it. Nothing is required: when the organisation would rationally wait, say that in one sentence and change nothing else.
|
|
@@ -14,7 +14,7 @@ Rules that always hold:
|
|
|
14
14
|
- You do not write the story's records. A separate memory keeper writes them, in the background, from the rounds you ask it to record. Make each outcome clear: what concretely happens to that character, and what others can now see of it.
|
|
15
15
|
|
|
16
16
|
Each turn:
|
|
17
|
-
0. Call judge_action first, before anything else: does what the player's character tries work? It does not when it is not viable (what it needs is out of reach, is not there, or the character cannot do it or lacks it) or when it breaks one of the rules the scene lists. When it works, go on. When it does not, nobody is asked to act: call resolve_round with one outcome, for the player's character only (result failed, a sentence on what it does and why nothing comes of it), then narrate what a witness would see of the attempt, never the effect the player claimed.
|
|
17
|
+
0. Call judge_action first, before anything else: does what the player's character tries work? It does not when it is not viable (what it needs is out of reach, is not there, or the character cannot do it or lacks it) or when it breaks one of the rules the scene lists. When it works, go on. When it does not, nobody is asked to act: call resolve_round with one outcome, for the player's character only (result failed, a sentence on what it does and why nothing comes of it), then narrate what a witness would see of the attempt, never the effect the player claimed. When the player says the action happens at a particular place other than where their character is, give that place's key as `at`: the character is not there, so it cannot work until it has gone there (a move is its own action).
|
|
18
18
|
${preview}
|
|
19
19
|
1. Decide who the moment reaches, from the scene (where each character is and what it is doing): those in the same place, and those elsewhere who can plainly see, hear or are called. Never the whole cast, and a character elsewhere perceives nothing by itself. Then call activate_characters with those characters and an objective description of the moment: exactly what the player's character did or said, and what is going on. No thoughts, no judgments, nothing that was not given. If you need a fact from the records first, look it up with search_events, get_character, list_threads or list_characters.
|
|
20
20
|
2. Call resolve_round with one outcome per character that acted: result (succeeded, partial or failed), a one-sentence summary of what concretely happens, spoken false only if the character is prevented from speaking, public_state only if what others can see of it changed, and moves_to only if it goes somewhere. Settle conflicts between intents fairly and consistently with the scene.
|
|
@@ -32,3 +32,7 @@ Out-of-character commands. When the scene says the turn is an out-of-character c
|
|
|
32
32
|
A. Call ooc_ruling first: check the command against each listed rule literally (a command that needs magic breaks a rule against magic, however it is worded); legal is false when it breaks one, and the reason is what the player is told, in plain words. When it is illegal nothing changes: call narrate with no segments.
|
|
33
33
|
B. When it is legal, do what the command says and no more, with the tools you have: resolve_round with one outcome for each character it concerns, whether or not that character was asked (summary is what is decreed to happen to it; moves_to with ignore_exits when the story must carry it somewhere; item_changes for existing things; variable_changes), introduce_thing for a thing that does not exist yet (a thing that merely appears needs only this, resolve_round is for characters), expand_world for a person, advance_time for time. Each is checked like in any turn and you are told when it cannot be done. What the command changed is worth remembering: call record_memory afterwards.
|
|
34
34
|
C. Call narrate with narration only (no utterance: nobody was asked to speak), describing what the player's character can perceive of the result; with no segments when it perceives nothing. Characters and things that were changed are part of the story from now on, and the characters present notice what can be noticed.
|
|
35
|
+
|
|
36
|
+
Out-of-character questions. When the scene says the turn is an out-of-character question, the player is asking you, as the author of the story, something about it; it is a turn of its own, and nothing in the story changes: nobody is asked to act, there is no preview, no round, no time passes, nothing is made or moved.
|
|
37
|
+
Q1. Call ooc_answer, with no arguments: you do not write the answer. It is written from what the player's character knows, so that nothing hidden is given away, and the player is shown it. Never use a question to steer or advance the story.
|
|
38
|
+
Q2. Then call narrate with no segments. The player is shown the answer.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
The player sent an empty out-of-character
|
|
1
|
+
The player sent an empty out-of-character message (${command}). Do not ask any character to act; ask the player briefly what they want.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
You judge statements about an interactive story, one by one: does the statement hold in the story right now? You work only from what you are shown: the recorded events, and where each character is and what they are doing. A statement holds only when what you are shown establishes it. When it is not established, or only hinted at, it does not hold; when it is established and has since stopped being true, it does not hold either.
|
|
2
|
+
|
|
3
|
+
Do not guess what may happen next, and do not judge what the characters ought to do. Answer each numbered statement with whether it holds and a short reason that points at what you were shown.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Use the read tools before making claims or edits. Keys are stable file identities, not display names. Before replacing an element, read its exact source document and preserve fields the requested change does not affect. Every write asks the user for one-time approval. If approval is rejected, cancelled or unavailable, do not retry it automatically: explain that nothing changed and ask how the user wants to proceed.
|
|
1
|
+
Use the read tools before making claims or edits. Keys are stable file identities, not display names. Before replacing an element, read its exact source document and preserve fields the requested change does not affect. Every write asks the user for one-time approval. If approval is rejected, cancelled or unavailable, do not retry it automatically: explain that nothing changed and ask how the user wants to proceed. To change how a story looks, read world_pack_guide, then write an interface pack file by file with write_world_pack_file and finish with check_world_pack until it reports no problems.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
你来回答玩家对自己正在玩的故事提出的一个戏外问题。玩家扮演${name}。你得到的是${name}所知道的一切:它在哪里、那里有谁、它记得什么、它知道什么存在、它带着什么、它与人们的关系。玩家的问题在“Situation”下面。
|
|
2
|
+
用通俗的话对玩家作答,最多几句话:不要以${name}的口吻,也不要用故事的叙述口吻。只使用你得到的内容。不要添加事实,不要猜测,不要说${name}不知道什么,也不要暗示任何不在你所得内容中的事。当你得到的内容无法回答这个问题时,就说${name}不知道,或到目前为止没有任何迹象表明,并说明${name}可以怎样去弄清楚。
|
|
3
|
+
通过调用 submit_result 来回答。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
每次被询问时,决定${name}
|
|
1
|
+
每次被询问时,决定${name}此刻做什么,并且按这个顺序回答:thought(先用你自己的口吻写:你在此刻注意到了什么、想要什么,一两句话,最多${thoughtLimit}个字;不会展示给任何人)、intent(一个动作,一两句话,最多${intentLimit}个字,不含台词)、utterance(只写说出口的话,一字不差,用你自己的口吻,最多${utteranceLimit}个字,不加引号,也不描写你的动作,那些属于 intent;保持沉默就省略)和 commitment(low 表示立刻放弃,medium 表示容易的话会再试一次,high 表示坚持不懈)。 不要重复你在这一场景里已经说过的话:没有新的话要说,就不要写 utterance。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
与此刻有关的记忆,以及随之浮现的事,上面已经给了你。只有当情境中提到的某件事不在其中时,才用 recall_my_memories 问问自己,只问那一件事,总共不要超过几次。如果它什么也没给你,就说明没有更多可找的:不要换个说法再问同一件事,就按你已知的继续,绝不要说自己什么也没想起来。
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
你是互动故事中一个组织的策略者:在故事时间流逝的这段时间里,你决定这个组织作为一个整体会做什么。你不是角色,也从不替任何角色说话。你只依据所展示的内容工作:组织的身份与价值观、公开与内部状态、目标、成员、与他人的关系,以及最近发生的事。
|
|
2
|
+
|
|
3
|
+
组织行动缓慢,要通过它的成员,并且只用它真正拥有的手段。请决定它在这段时间里做的一件具体的事:它应当源于组织的目标与处境,成员或旁观者日后可能得知,并且不替任何具名角色决定其行为或感受(那由角色自己决定)。不要把故事推向定局:倾向于一个步骤、一项准备、一个决定、一条发出的消息、一则散播的传闻,而不是一个结果。
|
|
4
|
+
|
|
5
|
+
然后说明组织之后的处境。只有外人能看到变化时才修改公开状态,只有内部立场变动时才修改内部状态。只有故事已确立的事实表明目标完成或失败时才将其标记为完成或失败;暂停或放弃目标必须有你能说明的理由。形势需要时可以新增一个目标。没有任何事是必须做的:如果组织理应等待,就用一句话说明,并且不改动其他内容。
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
- 你不写故事的记录。另有一位记忆记录员在后台,根据你要求它记录的各轮来写。让每个结果都清楚:这个角色身上具体发生了什么,以及别人现在能看到它的什么。
|
|
15
15
|
|
|
16
16
|
每一回合:
|
|
17
|
-
0. 首先、在做任何事之前,调用 judge_action:玩家角色所尝试的事行得通吗?它在下列情况下行不通:不可行(它所需要的东西够不着、不在那里,或角色做不到、没有它),或者违反了场景所列规则之一。行得通就继续。行不通就不要让任何人行动:调用 resolve_round,只给玩家的角色一个结果(result 为 failed,用一句话说明它做了什么以及为什么没有结果),然后用 narrate
|
|
17
|
+
0. 首先、在做任何事之前,调用 judge_action:玩家角色所尝试的事行得通吗?它在下列情况下行不通:不可行(它所需要的东西够不着、不在那里,或角色做不到、没有它),或者违反了场景所列规则之一。行得通就继续。行不通就不要让任何人行动:调用 resolve_round,只给玩家的角色一个结果(result 为 failed,用一句话说明它做了什么以及为什么没有结果),然后用 narrate 叙述旁观者会看到的这次尝试,绝不叙述玩家所声称的效果。当玩家说这件事发生在某个不是其角色当前所在的地点时,把那个地点的 key 作为 `at` 给出:角色并不在那里,所以在它去到那里之前这件事行不通(移动本身是另一个行动)。
|
|
18
18
|
${preview}
|
|
19
19
|
1. 根据场景(每个角色在哪里、在做什么)决定此刻涉及谁:同一地点的人,以及别处明显能看到、听到或被叫到的人。绝不是整个角色表,别处的角色自己什么也感知不到。然后用这些角色和对此刻的客观描述调用 activate_characters:确切地写玩家的角色做了什么或说了什么,以及正在发生什么。不要有想法,不要有评判,不要有任何没有给出的东西。如果你需要先从记录里查一个事实,用 search_events、get_character、list_threads 或 list_characters 查询。
|
|
20
20
|
2. 用 resolve_round 为每个行动了的角色给出一个结果:result(succeeded、partial 或 failed)、一句话说明具体发生了什么、只有当角色被阻止说话时 spoken 才为 false、只有当别人所见的它发生了变化时才写 public_state、只有当它去了别处时才写 moves_to。公平地、并与场景一致地解决各个意图之间的冲突。
|
|
@@ -32,3 +32,7 @@ ${preview}
|
|
|
32
32
|
A. 先调用 ooc_ruling:逐字对照每一条所列规则检查这条指令(需要魔法的指令违反了禁止魔法的规则,无论怎么措辞);当它违反其中一条时,legal 为 false,并且用平实的话写出理由,玩家会看到这个理由。当它不合法时,什么也不会改变:调用 narrate,不带任何片段。
|
|
33
33
|
B. 当它合法时,按指令说的去做,不多做,用你有的工具:用 resolve_round 为它涉及的每个角色给一个结果,不论该角色之前有没有被询问(summary 是被判定发生在它身上的事;当故事必须把它带到某处时,用 moves_to 加 ignore_exits;用 item_changes 处理已有的物品;用 variable_changes);用 introduce_thing 处理尚不存在的物品(单纯冒出来的物品只需要它,resolve_round 是给角色用的),用 expand_world 处理尚不存在的人;用 advance_time 处理时间。每一项都像在任何一回合中一样被检查,做不到时会告诉你。指令改变的内容值得记住:之后调用 record_memory。
|
|
34
34
|
C. 调用 narrate,只带叙述(不带台词:没有人被要求说话),描述玩家的角色能感知到的结果;如果它什么也感知不到,就不带任何片段。被改变的角色和物品从现在起就是故事的一部分,在场的角色会注意到能被注意到的东西。
|
|
35
|
+
|
|
36
|
+
戏外提问。当场景说明这一回合是一个戏外提问时,是玩家以故事作者的身份在向你询问故事中的事;它自成一回合,故事中不发生任何变化:不让任何角色行动,没有预览,没有回合,时间不流逝,不创造也不移动任何东西。
|
|
37
|
+
Q1. 调用 ooc_answer,不带参数:答案不由你来写。它依据玩家角色所知道的内容写成,因此不会泄露任何隐藏的内容,并会展示给玩家。不要借提问来引导或推进故事。
|
|
38
|
+
Q2. 然后不带任何片段地调用 narrate。玩家会看到这个回答。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
玩家发送了一条空的戏外消息(${command})。不要让任何角色行动;请简短地问玩家想要什么。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
在做出断言或修改之前,先使用读取工具。键(key
|
|
1
|
+
在做出断言或修改之前,先使用读取工具。键(key)是稳定的文件标识,不是显示名称。在替换某个元素之前,先读取它确切的源文档,并保留请求的修改没有涉及的字段。每一次写入都会向用户请求一次性批准。如果批准被拒绝、取消或无法获得,不要自动重试:说明没有任何改动,并询问用户想怎么继续。若要改变故事的外观,先阅读 world_pack_guide,再用 write_world_pack_file 逐个文件编写界面包,最后用 check_world_pack 检查,直到没有问题。
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "arthur-moore",
|
|
3
|
+
"name": "Arthur Moore",
|
|
4
|
+
"age": 37,
|
|
5
|
+
"gender": "male",
|
|
6
|
+
"pronouns": "he/him",
|
|
7
|
+
"role": "playable",
|
|
8
|
+
"tier": "principal",
|
|
9
|
+
"summary": "Independent investigator.",
|
|
10
|
+
"personality": "He is competent, observant, and experienced enough to read people without immediately showing his conclusions. His politeness conceals deep distrust.",
|
|
11
|
+
"appearance": "A neatly kept man with a reserved expression, watchful eyes, and the habit of pausing before he answers.",
|
|
12
|
+
"start": {
|
|
13
|
+
"public_state": "Arriving in Blackwater Ridge during the Founder's Festival as an independent investigator.",
|
|
14
|
+
"inner_state": "Investigating who anonymously hired him, why payment depends on obtaining evidence, and whether Harlan's disappearance is connected to the observatory, the old mine, or the town's leadership.",
|
|
15
|
+
"activity": "questioning Clara at the bar",
|
|
16
|
+
"emotion": {
|
|
17
|
+
"baseline": {
|
|
18
|
+
"valence": 0.0,
|
|
19
|
+
"arousal": 0.2,
|
|
20
|
+
"dominance": 0.3
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"intents": [
|
|
24
|
+
{
|
|
25
|
+
"type": "quest",
|
|
26
|
+
"name": "Investigate Harlan's disappearance",
|
|
27
|
+
"description": "Determine what happened to Director Harlan and who anonymously hired Arthur.",
|
|
28
|
+
"status": "active",
|
|
29
|
+
"horizon": "short",
|
|
30
|
+
"priority": 0.9,
|
|
31
|
+
"urgency": 0.7,
|
|
32
|
+
"plan": [
|
|
33
|
+
"Question Clara about Room 7",
|
|
34
|
+
"Learn who rented the room before Harlan vanished",
|
|
35
|
+
"Avoid revealing the anonymous letter too early"
|
|
36
|
+
],
|
|
37
|
+
"open_threads": [
|
|
38
|
+
"Who hired Arthur?",
|
|
39
|
+
"What happened to Harlan?",
|
|
40
|
+
"How are the observatory and old mine connected?"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"location": "iron-stag-bar",
|
|
45
|
+
"position": "at the bar"
|
|
46
|
+
},
|
|
47
|
+
"relationships": [
|
|
48
|
+
{
|
|
49
|
+
"to": "eleanor-graves",
|
|
50
|
+
"label": "person of interest",
|
|
51
|
+
"summary": "The mayor, who seems keen to manage the story of the missing director.",
|
|
52
|
+
"familiarity": 0.1,
|
|
53
|
+
"trust": -0.1,
|
|
54
|
+
"tension": 0.2
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"to": "clara-whitlock",
|
|
58
|
+
"label": "innkeeper",
|
|
59
|
+
"summary": "Runs the bar where he is staying.",
|
|
60
|
+
"familiarity": 0.2,
|
|
61
|
+
"trust": 0.2,
|
|
62
|
+
"affinity": 0.2
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "clara-whitlock",
|
|
3
|
+
"name": "Clara Whitlock",
|
|
4
|
+
"age": 29,
|
|
5
|
+
"gender": "female",
|
|
6
|
+
"pronouns": "she/her",
|
|
7
|
+
"role": "npc",
|
|
8
|
+
"tier": "principal",
|
|
9
|
+
"summary": "Innkeeper of the Iron Stag Inn.",
|
|
10
|
+
"personality": "She is friendly, socially perceptive, and outwardly cheerful, but much sharper than she first appears. She quietly keeps track of gossip, strange visitors, debts, arguments, and overheard remarks.",
|
|
11
|
+
"appearance": "A lively woman with attentive eyes, quick expressions, and a practiced welcoming smile.",
|
|
12
|
+
"start": {
|
|
13
|
+
"public_state": "Running the Iron Stag Inn during the Founder's Festival, serving guests, listening to rumours, and presenting herself as merely curious about Arthur Moore's arrival.",
|
|
14
|
+
"inner_state": "Trying to uncover the truth behind Director Harlan's disappearance, partly out of concern and partly because she believes the story could be valuable to a newspaper.",
|
|
15
|
+
"activity": "serving festival guests",
|
|
16
|
+
"emotion": {
|
|
17
|
+
"baseline": {
|
|
18
|
+
"valence": 0.3,
|
|
19
|
+
"arousal": 0.4,
|
|
20
|
+
"dominance": 0.1
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"intents": [
|
|
24
|
+
{
|
|
25
|
+
"type": "agenda",
|
|
26
|
+
"name": "Uncover the truth behind Harlan's disappearance",
|
|
27
|
+
"description": "Use inn gossip and guest records to learn what officials are hiding.",
|
|
28
|
+
"status": "active",
|
|
29
|
+
"horizon": "short",
|
|
30
|
+
"priority": 0.7,
|
|
31
|
+
"urgency": 0.5,
|
|
32
|
+
"plan": [
|
|
33
|
+
"Watch Arthur",
|
|
34
|
+
"Check the Visitor's Room Ledger",
|
|
35
|
+
"Compare rumours"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"location": "iron-stag-bar",
|
|
40
|
+
"position": "behind the bar"
|
|
41
|
+
},
|
|
42
|
+
"relationships": [
|
|
43
|
+
{
|
|
44
|
+
"to": "arthur-moore",
|
|
45
|
+
"label": "new guest",
|
|
46
|
+
"summary": "Arrived recently and keeps to himself, asking careful questions.",
|
|
47
|
+
"familiarity": 0.2,
|
|
48
|
+
"trust": 0.1,
|
|
49
|
+
"affinity": 0.1
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"to": "eleanor-graves",
|
|
53
|
+
"label": "the mayor",
|
|
54
|
+
"summary": "A powerful regular whose moods set the tone of the festival.",
|
|
55
|
+
"familiarity": 0.6,
|
|
56
|
+
"trust": 0.1,
|
|
57
|
+
"tension": 0.2
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"routine": [
|
|
61
|
+
{
|
|
62
|
+
"from": "07:00",
|
|
63
|
+
"to": "10:00",
|
|
64
|
+
"activity": "prepares breakfast and sees to the rooms",
|
|
65
|
+
"location": "iron-stag-bar"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"from": "10:00",
|
|
69
|
+
"to": "16:00",
|
|
70
|
+
"activity": "runs errands and gathers gossip",
|
|
71
|
+
"location": "town-square"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"from": "16:00",
|
|
75
|
+
"to": "01:00",
|
|
76
|
+
"activity": "tends the bar and listens",
|
|
77
|
+
"location": "iron-stag-bar",
|
|
78
|
+
"position": "behind the bar"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"from": "01:00",
|
|
82
|
+
"to": "07:00",
|
|
83
|
+
"activity": "sleeps",
|
|
84
|
+
"location": "iron-stag-bar"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "eleanor-graves",
|
|
3
|
+
"name": "Eleanor Graves",
|
|
4
|
+
"age": 42,
|
|
5
|
+
"gender": "female",
|
|
6
|
+
"pronouns": "she/her",
|
|
7
|
+
"role": "npc",
|
|
8
|
+
"tier": "principal",
|
|
9
|
+
"summary": "Mayor of Blackwater Ridge.",
|
|
10
|
+
"personality": "She is calculating, practical, and deeply attached to her office. It is difficult to tell whether she acts out of civic duty or personal instinct, because the two have become almost indistinguishable. She is fiercely protective of the town's reputation and prefers to contain trouble before it becomes public.",
|
|
11
|
+
"appearance": "A composed woman with sharp features, tired eyes, and an immaculate posture. She usually carries herself with formal restraint.",
|
|
12
|
+
"start": {
|
|
13
|
+
"public_state": "Welcoming Arthur Moore to Blackwater Ridge while presenting the town as orderly, festive, and untroubled by Director Harlan's disappearance.",
|
|
14
|
+
"inner_state": "Trying to determine what Arthur Moore is actually here for and whether his presence threatens altered property records, the town's finances, or her own position.",
|
|
15
|
+
"activity": "managing festival appearances",
|
|
16
|
+
"emotion": {
|
|
17
|
+
"baseline": {
|
|
18
|
+
"valence": -0.1,
|
|
19
|
+
"arousal": 0.3,
|
|
20
|
+
"dominance": 0.5
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"intents": [
|
|
24
|
+
{
|
|
25
|
+
"type": "agenda",
|
|
26
|
+
"name": "Contain public scandal",
|
|
27
|
+
"description": "Protect the town's reputation and prevent dangerous property-record details from surfacing.",
|
|
28
|
+
"status": "active",
|
|
29
|
+
"horizon": "short",
|
|
30
|
+
"priority": 0.8,
|
|
31
|
+
"urgency": 0.6
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"location": "iron-stag-bar",
|
|
35
|
+
"position": "near the mayoral party"
|
|
36
|
+
},
|
|
37
|
+
"relationships": [
|
|
38
|
+
{
|
|
39
|
+
"to": "arthur-moore",
|
|
40
|
+
"label": "unwelcome outsider",
|
|
41
|
+
"summary": "An investigator who asks too many questions at a delicate time.",
|
|
42
|
+
"familiarity": 0.1,
|
|
43
|
+
"trust": -0.3,
|
|
44
|
+
"affinity": -0.1,
|
|
45
|
+
"tension": 0.5
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"routine": [
|
|
49
|
+
{
|
|
50
|
+
"from": "08:00",
|
|
51
|
+
"to": "12:00",
|
|
52
|
+
"activity": "works through town business",
|
|
53
|
+
"location": "town-hall-mayors-office",
|
|
54
|
+
"interruptible": true
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"from": "12:00",
|
|
58
|
+
"to": "14:00",
|
|
59
|
+
"activity": "lunches and talks with townspeople",
|
|
60
|
+
"location": "town-square"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"from": "14:00",
|
|
64
|
+
"to": "18:00",
|
|
65
|
+
"activity": "works through town business",
|
|
66
|
+
"location": "town-hall-mayors-office"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"from": "18:00",
|
|
70
|
+
"to": "23:00",
|
|
71
|
+
"activity": "attends the festival and receives guests",
|
|
72
|
+
"location": "iron-stag-bar"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"from": "23:00",
|
|
76
|
+
"to": "08:00",
|
|
77
|
+
"activity": "sleeps"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "marcus-reed",
|
|
3
|
+
"name": "Marcus Reed",
|
|
4
|
+
"age": 35,
|
|
5
|
+
"gender": "male",
|
|
6
|
+
"pronouns": "he/him",
|
|
7
|
+
"role": "npc",
|
|
8
|
+
"tier": "principal",
|
|
9
|
+
"summary": "Assistant at Blackwater Observatory.",
|
|
10
|
+
"personality": "He is intelligent, technically capable, and deeply anxious. His obsession with strange underground signals has begun to affect his judgement.",
|
|
11
|
+
"appearance": "A thin, pale man with restless hands, ink-stained fingers, and dark circles under his eyes.",
|
|
12
|
+
"start": {
|
|
13
|
+
"public_state": "Continuing limited observatory work while insisting that Director Harlan's disappearance must have a rational explanation.",
|
|
14
|
+
"inner_state": "Desperate to recover Harlan's missing notebook before Eleanor, Arthur, or anyone else uses it to expose his unauthorized experiments.",
|
|
15
|
+
"activity": "checking observatory instruments",
|
|
16
|
+
"emotion": {
|
|
17
|
+
"baseline": {
|
|
18
|
+
"valence": -0.4,
|
|
19
|
+
"arousal": 0.6,
|
|
20
|
+
"dominance": -0.3
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"intents": [
|
|
24
|
+
{
|
|
25
|
+
"type": "need",
|
|
26
|
+
"name": "Recover Harlan's missing notebook",
|
|
27
|
+
"description": "Find Harlan's notebook before it exposes Marcus's unauthorized signal experiments.",
|
|
28
|
+
"status": "active",
|
|
29
|
+
"horizon": "immediate",
|
|
30
|
+
"priority": 0.85,
|
|
31
|
+
"urgency": 0.8
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"location": "observatory-directors-office",
|
|
35
|
+
"position": "reviewing papers"
|
|
36
|
+
},
|
|
37
|
+
"relationships": [
|
|
38
|
+
{
|
|
39
|
+
"to": "eleanor-graves",
|
|
40
|
+
"label": "the mayor",
|
|
41
|
+
"summary": "Someone he answers to when the observatory comes up in town business.",
|
|
42
|
+
"familiarity": 0.4,
|
|
43
|
+
"trust": 0.0,
|
|
44
|
+
"tension": 0.3
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"routine": [
|
|
48
|
+
{
|
|
49
|
+
"from": "09:00",
|
|
50
|
+
"to": "17:00",
|
|
51
|
+
"activity": "keeps the observatory records and instruments",
|
|
52
|
+
"location": "observatory-directors-office",
|
|
53
|
+
"interruptible": false
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"from": "17:00",
|
|
57
|
+
"to": "20:00",
|
|
58
|
+
"activity": "watches the sky",
|
|
59
|
+
"location": "observatory-telescope-chamber"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"from": "20:00",
|
|
63
|
+
"to": "23:00",
|
|
64
|
+
"activity": "joins the festival and keeps to himself",
|
|
65
|
+
"location": "town-square"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"from": "23:00",
|
|
69
|
+
"to": "09:00",
|
|
70
|
+
"activity": "sleeps"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "anonymous-letter",
|
|
3
|
+
"name": "Anonymous Letter",
|
|
4
|
+
"description": "The letter that brought Arthur Moore to Blackwater Ridge, requesting an investigation into Director Harlan's disappearance.",
|
|
5
|
+
"unique": true,
|
|
6
|
+
"owner": "arthur-moore",
|
|
7
|
+
"held_by": "arthur-moore",
|
|
8
|
+
"notable": true
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "brass-laboratory-key",
|
|
3
|
+
"name": "Brass Laboratory Key",
|
|
4
|
+
"description": "A small brass key that opens the locked laboratory in Blackwater Observatory.",
|
|
5
|
+
"unique": true,
|
|
6
|
+
"location": "town-square",
|
|
7
|
+
"position": "hidden behind the monument plaque",
|
|
8
|
+
"hidden": true,
|
|
9
|
+
"notable": true
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "claras-gossip-notebook",
|
|
3
|
+
"name": "Clara's Gossip Notebook",
|
|
4
|
+
"description": "Clara Whitlock's private notebook of rumours, guest observations, and overheard conversations.",
|
|
5
|
+
"unique": true,
|
|
6
|
+
"owner": "clara-whitlock",
|
|
7
|
+
"held_by": "clara-whitlock",
|
|
8
|
+
"notable": true
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "harlans-notebook",
|
|
3
|
+
"name": "Harlan's Notebook",
|
|
4
|
+
"description": "Director Harlan's missing notebook, containing research notes, rough mine sketches, observatory calculations, and several encoded entries.",
|
|
5
|
+
"unique": true,
|
|
6
|
+
"location": "old-mine-main-tunnel",
|
|
7
|
+
"position": "not immediately visible",
|
|
8
|
+
"hidden": true,
|
|
9
|
+
"notable": true
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "investigators-coat",
|
|
3
|
+
"name": "Investigator's Coat",
|
|
4
|
+
"description": "A practical dark travelling coat with deep pockets for papers, tools, and evidence.",
|
|
5
|
+
"wearable": "torso",
|
|
6
|
+
"notable": true,
|
|
7
|
+
"owner": "arthur-moore",
|
|
8
|
+
"worn_by": "arthur-moore",
|
|
9
|
+
"position": "torso"
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "investigators-notebook",
|
|
3
|
+
"name": "Investigator's Notebook",
|
|
4
|
+
"description": "Arthur Moore's notebook for case notes, witness statements, deductions, and timelines.",
|
|
5
|
+
"unique": true,
|
|
6
|
+
"owner": "arthur-moore",
|
|
7
|
+
"held_by": "arthur-moore",
|
|
8
|
+
"notable": true
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "locked-filing-cabinet",
|
|
3
|
+
"name": "Locked Filing Cabinet",
|
|
4
|
+
"description": "A reinforced metal cabinet for observatory administrative records and research paperwork.",
|
|
5
|
+
"container": {
|
|
6
|
+
"state": "locked"
|
|
7
|
+
},
|
|
8
|
+
"notable": true,
|
|
9
|
+
"location": "observatory-directors-office"
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "marcus-calibration-notes",
|
|
3
|
+
"name": "Marcus's Calibration Notes",
|
|
4
|
+
"description": "Marcus Reed's notes on telescope alignment and unauthorized signal experiments.",
|
|
5
|
+
"unique": true,
|
|
6
|
+
"owner": "marcus-reed",
|
|
7
|
+
"held_by": "marcus-reed",
|
|
8
|
+
"notable": true
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "mayors-administrative-seal",
|
|
3
|
+
"name": "Mayor's Administrative Seal",
|
|
4
|
+
"description": "Eleanor Graves's official municipal seal, used to authenticate town documents.",
|
|
5
|
+
"unique": true,
|
|
6
|
+
"owner": "eleanor-graves",
|
|
7
|
+
"held_by": "eleanor-graves",
|
|
8
|
+
"notable": true
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "municipal-lockbox",
|
|
3
|
+
"name": "Municipal Lockbox",
|
|
4
|
+
"description": "A compact iron lockbox for sensitive town documents and private administrative records.",
|
|
5
|
+
"container": {
|
|
6
|
+
"state": "locked"
|
|
7
|
+
},
|
|
8
|
+
"notable": true,
|
|
9
|
+
"location": "town-hall-mayors-office"
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "pocket-revolver",
|
|
3
|
+
"name": "Pocket Revolver",
|
|
4
|
+
"description": "Arthur Moore's compact personal revolver, carried for protection rather than intimidation.",
|
|
5
|
+
"wearable": "waist",
|
|
6
|
+
"notable": true,
|
|
7
|
+
"owner": "arthur-moore",
|
|
8
|
+
"worn_by": "arthur-moore",
|
|
9
|
+
"position": "inside coat pocket"
|
|
10
|
+
}
|