diff --git a/core/src/main/java/com/loremind/application/campaigncontext/GuidedSkeleton.java b/core/src/main/java/com/loremind/application/campaigncontext/GuidedSkeleton.java index b256439..a2c308a 100644 --- a/core/src/main/java/com/loremind/application/campaigncontext/GuidedSkeleton.java +++ b/core/src/main/java/com/loremind/application/campaigncontext/GuidedSkeleton.java @@ -1,5 +1,6 @@ package com.loremind.application.campaigncontext; +import com.loremind.domain.campaigncontext.structure.LinkType; import com.loremind.domain.campaigncontext.structure.SceneType; import java.util.List; @@ -20,6 +21,9 @@ import java.util.List; * @param scenes les scènes, dans l'ordre (au moins une avec un nom) * @param linkSequentially relier chaque scène à la suivante par une sortie * @param linkLabel libellé de ces sorties (rédigé dans la langue du MJ par le front) + * @param links liens explicites entre scènes (indices dans {@code scenes}), ou {@code null} : + * une enquête en nœuds relie ses pistes en réseau, pas en chaîne + * @param clock horloge à créer dans chaque partie de la campagne (plan du méchant), ou {@code null} */ public record GuidedSkeleton( String arcId, @@ -27,10 +31,44 @@ public record GuidedSkeleton( ChapterSpec chapter, List scenes, boolean linkSequentially, - String linkLabel + String linkLabel, + List links, + ClockSpec clock ) { - public record ChapterSpec(String name, String description, String playerObjectives, String narrativeStakes) { + /** Squelette sans liens explicites ni horloge (Donjon en 5 salles). */ + public GuidedSkeleton(String arcId, String newArcName, ChapterSpec chapter, List scenes, + boolean linkSequentially, String linkLabel) { + this(arcId, newArcName, chapter, scenes, linkSequentially, linkLabel, null, null); + } + + /** @param gmNotes notes réservées au MJ (vérité cachée d'une enquête, plan complet du méchant) */ + public record ChapterSpec(String name, String description, String playerObjectives, String narrativeStakes, + String gmNotes) { + public ChapterSpec(String name, String description, String playerObjectives, String narrativeStakes) { + this(name, description, playerObjectives, narrativeStakes, null); + } + } + + /** + * Lien d'une scène vers une autre, par position dans {@code scenes}. + * + * @param from index de la scène de départ + * @param to index de la scène d'arrivée + * @param label libellé du lien (langue du MJ) + * @param kind nature du lien (sortie, piste, indice) ; {@code null} = sortie + */ + public record LinkSpec(int from, int to, String label, LinkType kind) { + } + + /** + * Horloge de progression à créer dans chaque partie (Playthrough) de la campagne. + * + * @param name nom de l'horloge + * @param description ce qui arrive quand elle est pleine + * @param segments nombre de segments (une étape du plan = un segment) + */ + public record ClockSpec(String name, String description, int segments) { } public record SceneSpec( @@ -38,7 +76,14 @@ public record GuidedSkeleton( String choicesConsequences, String gmSecretNotes, String enemies) { } - /** Ce qui a été créé, pour que le front ouvre directement le chapitre. */ - public record Result(String arcId, String chapterId, List sceneIds) { + /** + * Ce qui a été créé, pour que le front ouvre directement le chapitre. + * + * @param clocks nombre d'horloges créées (une par partie de la campagne) + */ + public record Result(String arcId, String chapterId, List sceneIds, int clocks) { + public Result(String arcId, String chapterId, List sceneIds) { + this(arcId, chapterId, sceneIds, 0); + } } } diff --git a/core/src/main/java/com/loremind/application/campaigncontext/GuidedSkeletonService.java b/core/src/main/java/com/loremind/application/campaigncontext/GuidedSkeletonService.java index 6f310b3..62c4935 100644 --- a/core/src/main/java/com/loremind/application/campaigncontext/GuidedSkeletonService.java +++ b/core/src/main/java/com/loremind/application/campaigncontext/GuidedSkeletonService.java @@ -10,6 +10,10 @@ import com.loremind.domain.campaigncontext.structure.LinkType; import com.loremind.domain.campaigncontext.structure.Scene; import com.loremind.domain.campaigncontext.structure.SceneBranch; import com.loremind.domain.campaigncontext.structure.SceneType; +import com.loremind.application.playcontext.ClockService; +import com.loremind.domain.playcontext.ClockTrigger; +import com.loremind.domain.playcontext.Playthrough; +import com.loremind.domain.playcontext.ports.PlaythroughRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -33,19 +37,25 @@ public class GuidedSkeletonService { private final ArcService arcService; private final ChapterService chapterService; private final SceneService sceneService; + private final PlaythroughRepository playthroughRepository; + private final ClockService clockService; public GuidedSkeletonService(ArcRepository arcRepository, ChapterRepository chapterRepository, SceneRepository sceneRepository, ArcService arcService, ChapterService chapterService, - SceneService sceneService) { + SceneService sceneService, + PlaythroughRepository playthroughRepository, + ClockService clockService) { this.arcRepository = arcRepository; this.chapterRepository = chapterRepository; this.sceneRepository = sceneRepository; this.arcService = arcService; this.chapterService = chapterService; this.sceneService = sceneService; + this.playthroughRepository = playthroughRepository; + this.clockService = clockService; } /** @@ -55,17 +65,19 @@ public class GuidedSkeletonService { @Transactional public GuidedSkeleton.Result create(String campaignId, GuidedSkeleton skeleton) { validate(skeleton); - List specs = skeleton.scenes().stream() - .filter(s -> s != null && !isBlank(s.name())) - .toList(); - String arcId = resolveArc(campaignId, skeleton); Chapter chapter = createChapter(arcId, skeleton.chapter()); + // Une scène sans nom est ignorée ; byIndex garde la position d'origine pour les liens. List scenes = new ArrayList<>(); + List byIndex = new ArrayList<>(); int order = 0; - for (GuidedSkeleton.SceneSpec spec : specs) { - scenes.add(sceneService.createScene(Scene.builder() + for (GuidedSkeleton.SceneSpec spec : skeleton.scenes()) { + if (spec == null || isBlank(spec.name())) { + byIndex.add(null); + continue; + } + Scene created = sceneService.createScene(Scene.builder() .name(spec.name().trim()) .description(blankToNull(spec.description())) .type(Objects.requireNonNullElse(spec.type(), SceneType.GENERIC)) @@ -75,14 +87,61 @@ public class GuidedSkeletonService { .enemies(blankToNull(spec.enemies())) .chapterId(chapter.getId()) .order(order++) - .build())); + .build()); + scenes.add(created); + byIndex.add(created); } if (skeleton.linkSequentially()) { linkInChain(scenes, isBlank(skeleton.linkLabel()) ? "→" : skeleton.linkLabel().trim()); } + if (skeleton.links() != null && !skeleton.links().isEmpty()) { + linkExplicitly(byIndex, skeleton.links()); + } + int clocks = createClocks(campaignId, skeleton.clock()); - return new GuidedSkeleton.Result(arcId, chapter.getId(), scenes.stream().map(Scene::getId).toList()); + return new GuidedSkeleton.Result(arcId, chapter.getId(), scenes.stream().map(Scene::getId).toList(), clocks); + } + + /** + * Liens explicites (réseau d'une enquête) : ajoutés aux sorties existantes. Un lien vers + * ou depuis une scène ignorée (sans nom), hors limites ou en boucle sur soi est écarté. + */ + private void linkExplicitly(List byIndex, List links) { + java.util.Map touched = new java.util.LinkedHashMap<>(); + for (GuidedSkeleton.LinkSpec link : links) { + if (link == null || link.from() == link.to()) continue; + Scene from = at(byIndex, link.from()); + Scene to = at(byIndex, link.to()); + if (from == null || to == null) continue; + List branches = from.getBranches() == null ? new ArrayList<>() : new ArrayList<>(from.getBranches()); + String label = isBlank(link.label()) ? to.getName() : link.label().trim(); + branches.add(new SceneBranch(label, to.getId(), null, + Objects.requireNonNullElse(link.kind(), LinkType.EXIT))); + from.setBranches(branches); + touched.put(from.getId(), from); + } + touched.values().forEach(sceneRepository::save); + } + + private static Scene at(List byIndex, int index) { + return index >= 0 && index < byIndex.size() ? byIndex.get(index) : null; + } + + /** + * Horloge du plan (méthode « Plan du méchant ») : créée dans chaque partie de la campagne, + * car une horloge est de l'état de partie. Aucune partie : rien n'est créé (le MJ la + * créera quand il lancera une partie). + */ + private int createClocks(String campaignId, GuidedSkeleton.ClockSpec clock) { + if (clock == null || isBlank(clock.name())) return 0; + int count = 0; + for (Playthrough p : playthroughRepository.findByCampaignId(campaignId)) { + clockService.create(p.getId(), clock.name().trim(), blankToNull(clock.description()), + clock.segments(), ClockTrigger.NONE, null, null); + count++; + } + return count; } private static void validate(GuidedSkeleton skeleton) { @@ -132,6 +191,7 @@ public class GuidedSkeletonService { .description(blankToNull(spec.description())) .playerObjectives(blankToNull(spec.playerObjectives())) .narrativeStakes(blankToNull(spec.narrativeStakes())) + .gmNotes(blankToNull(spec.gmNotes())) .arcId(arcId) .order(nextOrder) .build()); diff --git a/core/src/test/java/com/loremind/application/campaigncontext/GuidedSkeletonServiceTest.java b/core/src/test/java/com/loremind/application/campaigncontext/GuidedSkeletonServiceTest.java index dca31cf..9c087e5 100644 --- a/core/src/test/java/com/loremind/application/campaigncontext/GuidedSkeletonServiceTest.java +++ b/core/src/test/java/com/loremind/application/campaigncontext/GuidedSkeletonServiceTest.java @@ -1,13 +1,18 @@ package com.loremind.application.campaigncontext; +import com.loremind.application.playcontext.ClockService; import com.loremind.domain.campaigncontext.ports.ArcRepository; import com.loremind.domain.campaigncontext.ports.ChapterRepository; import com.loremind.domain.campaigncontext.ports.SceneRepository; import com.loremind.domain.campaigncontext.structure.Arc; import com.loremind.domain.campaigncontext.structure.ArcType; import com.loremind.domain.campaigncontext.structure.Chapter; +import com.loremind.domain.campaigncontext.structure.LinkType; import com.loremind.domain.campaigncontext.structure.Scene; import com.loremind.domain.campaigncontext.structure.SceneType; +import com.loremind.domain.playcontext.ClockTrigger; +import com.loremind.domain.playcontext.Playthrough; +import com.loremind.domain.playcontext.ports.PlaythroughRepository; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @@ -45,6 +50,8 @@ class GuidedSkeletonServiceTest { @Mock private ArcService arcService; @Mock private ChapterService chapterService; @Mock private SceneService sceneService; + @Mock private PlaythroughRepository playthroughRepository; + @Mock private ClockService clockService; @InjectMocks private GuidedSkeletonService service; @@ -196,4 +203,73 @@ class GuidedSkeletonServiceTest { assertThrows(IllegalArgumentException.class, () -> service.create(CAMP, noChapterName)); assertThrows(IllegalArgumentException.class, () -> service.create(CAMP, noScene)); } + + // --- Liens explicites (Enquête en nœuds) et horloge (Plan du méchant) --- + + private static GuidedSkeleton withLinks(List scenes, List links, + GuidedSkeleton.ClockSpec clock) { + return new GuidedSkeleton(null, "Arc", + new GuidedSkeleton.ChapterSpec("Enquête", "Accroche", null, null, "Le notaire est coupable"), + scenes, false, null, links, clock); + } + + @Test + void explicitLinks_areAddedWithTheirKind_andIndexesSurviveSkippedScenes() { + when(arcRepository.findByCampaignId(CAMP)).thenReturn(List.of()); + // La scène d'index 1 n'a pas de nom : ignorée, mais les index des liens restent ceux d'origine. + List scenes = List.of( + room("Accroche", SceneType.EVENT), room(" ", SceneType.LOCATION), + room("Piste", SceneType.NPC), room("Conclusion", SceneType.REVELATION)); + + service.create(CAMP, withLinks(scenes, List.of( + new GuidedSkeleton.LinkSpec(0, 2, "Piste", LinkType.LEAD), + new GuidedSkeleton.LinkSpec(2, 3, "Indice", LinkType.CLUE), + new GuidedSkeleton.LinkSpec(0, 1, "Vers la scène ignorée", LinkType.LEAD), + new GuidedSkeleton.LinkSpec(3, 3, "Boucle sur soi", LinkType.EXIT), + new GuidedSkeleton.LinkSpec(0, 9, "Hors limites", LinkType.EXIT)), null)); + + Scene hook = createdScenes.get(0); + Scene lead = createdScenes.get(1); + Scene end = createdScenes.get(2); + assertEquals(1, hook.getBranches().size(), "seul le lien valide de l'accroche est gardé"); + assertEquals(lead.getId(), hook.getBranches().get(0).targetSceneId()); + assertEquals(LinkType.LEAD, hook.getBranches().get(0).kind()); + assertEquals(end.getId(), lead.getBranches().get(0).targetSceneId()); + assertEquals(LinkType.CLUE, lead.getBranches().get(0).kind()); + assertTrue(end.getBranches() == null || end.getBranches().isEmpty()); + verify(sceneRepository, times(2)).save(any(Scene.class)); + } + + @Test + void chapterGmNotes_arePersisted() { + when(arcRepository.findByCampaignId(CAMP)).thenReturn(List.of()); + service.create(CAMP, withLinks(List.of(room("S", SceneType.EVENT)), null, null)); + + ArgumentCaptor chapter = ArgumentCaptor.forClass(Chapter.class); + verify(chapterService).createChapter(chapter.capture()); + assertEquals("Le notaire est coupable", chapter.getValue().getGmNotes()); + } + + @Test + void clock_isCreatedInEveryPlaythroughOfTheCampaign() { + when(arcRepository.findByCampaignId(CAMP)).thenReturn(List.of()); + when(playthroughRepository.findByCampaignId(CAMP)).thenReturn(List.of( + Playthrough.builder().id("p1").campaignId(CAMP).build(), + Playthrough.builder().id("p2").campaignId(CAMP).build())); + + GuidedSkeleton.Result result = service.create(CAMP, withLinks(List.of(room("Étape 1", SceneType.EVENT)), null, + new GuidedSkeleton.ClockSpec(" La régence ", "La loi martiale", 6))); + + assertEquals(2, result.clocks()); + verify(clockService).create("p1", "La régence", "La loi martiale", 6, ClockTrigger.NONE, null, null); + verify(clockService).create("p2", "La régence", "La loi martiale", 6, ClockTrigger.NONE, null, null); + } + + @Test + void noClock_whenNotRequested() { + when(arcRepository.findByCampaignId(CAMP)).thenReturn(List.of()); + GuidedSkeleton.Result result = service.create(CAMP, skeleton(null, "Arc", false)); + assertEquals(0, result.clocks()); + verify(clockService, never()).create(any(), any(), any(), org.mockito.ArgumentMatchers.anyInt(), any(), any(), any()); + } } diff --git a/web/src/app/app.routes.ts b/web/src/app/app.routes.ts index bd3dd37..0f71625 100644 --- a/web/src/app/app.routes.ts +++ b/web/src/app/app.routes.ts @@ -46,6 +46,7 @@ export const routes: Routes = [ { path: 'campaigns/:campaignId/random-tables/:tableId/edit', loadComponent: () => import('./campaigns/random-table/random-table-edit/random-table-edit.component').then(m => m.RandomTableEditComponent) }, { path: 'campaigns/:campaignId/random-tables/:tableId', loadComponent: () => import('./campaigns/random-table/random-table-view/random-table-view.component').then(m => m.RandomTableViewComponent) }, { path: 'campaigns/:campaignId/arcs/create', loadComponent: () => import('./campaigns/arc/arc-create/arc-create.component').then(m => m.ArcCreateComponent) }, + { path: 'campaigns/:campaignId/guided', loadComponent: () => import('./campaigns/guided/guided-chooser/guided-chooser.component').then(m => m.GuidedChooserComponent) }, { path: 'campaigns/:campaignId/guided/:method', loadComponent: () => import('./campaigns/guided/guided-wizard/guided-wizard.component').then(m => m.GuidedWizardComponent) }, { path: 'campaigns/:campaignId/arcs/:arcId', loadComponent: () => import('./campaigns/arc/arc-view/arc-view.component').then(m => m.ArcViewComponent) }, { path: 'campaigns/:campaignId/arcs/:arcId/edit', loadComponent: () => import('./campaigns/arc/arc-edit/arc-edit.component').then(m => m.ArcEditComponent) }, diff --git a/web/src/app/campaigns/campaign/campaign-detail/campaign-detail.component.html b/web/src/app/campaigns/campaign/campaign-detail/campaign-detail.component.html index 1b1ce63..7997ef9 100644 --- a/web/src/app/campaigns/campaign/campaign-detail/campaign-detail.component.html +++ b/web/src/app/campaigns/campaign/campaign-detail/campaign-detail.component.html @@ -217,7 +217,7 @@ {{ 'campaignDetail.newArc' | translate }} - + {{ 'guided.entry' | translate }} @@ -250,7 +250,7 @@ {{ 'campaignDetail.quickSceneFirst' | translate }} - + {{ 'guided.entryFirst' | translate }} diff --git a/web/src/app/campaigns/guided/guided-chooser/guided-chooser.component.html b/web/src/app/campaigns/guided/guided-chooser/guided-chooser.component.html new file mode 100644 index 0000000..fd4be25 --- /dev/null +++ b/web/src/app/campaigns/guided/guided-chooser/guided-chooser.component.html @@ -0,0 +1,28 @@ +
+ + + {{ 'guided.backToCampaign' | translate }} + + +

+ + {{ 'guided.chooserTitle' | translate }} +

+

{{ 'guided.chooserIntro' | translate }}

+ +
    + @for (method of methods; track method.id) { +
  • +
    +

    {{ ('guided.' + method.i18nKey + '.name') | translate }}

    +

    {{ ('guided.' + method.i18nKey + '.tagline') | translate }}

    + {{ 'guided.chooserScenes' | translate:{ count: sceneCount(method) } }} +
    + + {{ 'guided.chooserStart' | translate }} + + +
  • + } +
+
diff --git a/web/src/app/campaigns/guided/guided-chooser/guided-chooser.component.scss b/web/src/app/campaigns/guided/guided-chooser/guided-chooser.component.scss new file mode 100644 index 0000000..6a4be47 --- /dev/null +++ b/web/src/app/campaigns/guided/guided-chooser/guided-chooser.component.scss @@ -0,0 +1,85 @@ +.chooser { + max-width: 760px; + padding: 2rem; + margin: 0 auto; + + h1 { + display: flex; + align-items: center; + gap: 0.5rem; + font-size: 1.5rem; + color: white; + margin: 1rem 0 0.5rem; + + lucide-icon { color: #fbbf24; } + } +} + +.chooser-back { + display: inline-flex; + align-items: center; + gap: 0.35rem; + color: #9ca3af; + font-size: 0.85rem; + text-decoration: none; + + &:hover { color: white; } +} + +.chooser-intro { + color: #9ca3af; + line-height: 1.55; + margin: 0 0 1.5rem; +} + +.method-list { + list-style: none; + padding: 0; + margin: 0; + display: flex; + flex-direction: column; + gap: 0.85rem; +} + +.method-card { + display: flex; + align-items: center; + gap: 1.25rem; + padding: 1rem 1.15rem; + background: #111827; + border: 1px solid #1f2937; + border-radius: 12px; + + @media (max-width: 600px) { + flex-direction: column; + align-items: stretch; + } +} + +.method-text { + flex: 1; + min-width: 0; + + h2 { font-size: 1.05rem; color: white; margin: 0 0 0.3rem; } + p { color: #d1d5db; font-size: 0.88rem; line-height: 1.5; margin: 0 0 0.4rem; } +} + +.method-meta { + font-size: 0.75rem; + color: #9ca3af; + text-transform: uppercase; + letter-spacing: 0.05em; +} + +.method-start { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 0.4rem; + text-decoration: none; + white-space: nowrap; +} + +@media (max-width: 768px) { + .chooser { padding: 1rem; } +} diff --git a/web/src/app/campaigns/guided/guided-chooser/guided-chooser.component.ts b/web/src/app/campaigns/guided/guided-chooser/guided-chooser.component.ts new file mode 100644 index 0000000..0f3c16a --- /dev/null +++ b/web/src/app/campaigns/guided/guided-chooser/guided-chooser.component.ts @@ -0,0 +1,29 @@ +import { Component, inject } from '@angular/core'; +import { ActivatedRoute, RouterLink } from '@angular/router'; +import { LucideAngularModule, ArrowLeft, ArrowRight, Sparkles } from 'lucide-angular'; +import { TranslatePipe } from '@ngx-translate/core'; +import { GUIDED_METHODS } from '../guided-methods'; +import { GuidedMethod } from '../guided-method.model'; + +/** + * Choix d'une méthode guidée (Mentor d'écriture) : une carte par méthode, avec son + * accroche et le nombre de scènes qu'elle crée. Route : /campaigns/:campaignId/guided + */ +@Component({ + selector: 'app-guided-chooser', + imports: [RouterLink, TranslatePipe, LucideAngularModule], + templateUrl: './guided-chooser.component.html', + styleUrls: ['./guided-chooser.component.scss'] +}) +export class GuidedChooserComponent { + readonly ArrowLeft = ArrowLeft; + readonly ArrowRight = ArrowRight; + readonly Sparkles = Sparkles; + readonly methods = GUIDED_METHODS; + readonly campaignId = inject(ActivatedRoute).snapshot.paramMap.get('campaignId') ?? ''; + + /** Nombre de scènes produites (brouillon vide : la structure ne dépend pas des réponses). */ + sceneCount(method: GuidedMethod): number { + return method.toDraft({}).scenes.length; + } +} diff --git a/web/src/app/campaigns/guided/guided-method.model.ts b/web/src/app/campaigns/guided/guided-method.model.ts index 7f6eddb..3219bc6 100644 --- a/web/src/app/campaigns/guided/guided-method.model.ts +++ b/web/src/app/campaigns/guided/guided-method.model.ts @@ -1,4 +1,5 @@ -import { GuidedChapterSpec, GuidedSceneSpec } from '../../services/guided-skeleton.model'; +import { GuidedChapterSpec, GuidedClockSpec, GuidedSceneSpec } from '../../services/guided-skeleton.model'; +import { LinkType } from '../../services/campaign.model'; /** * Définition d'une méthode guidée (Mentor d'écriture, phases M3/M5). L'assistant @@ -40,6 +41,23 @@ export interface GuidedStep { export interface GuidedDraft { chapter: GuidedChapterSpec; scenes: GuidedSceneSpec[]; + /** + * Liens propres à la méthode (réseau d'enquête). Absent : l'assistant propose de relier + * les scènes en chaîne. Le libellé est une clé i18n relative à la méthode (`links.`). + */ + links?: GuidedDraftLink[]; + /** Pas de chaînage proposé (les scènes sont des événements que le MJ déclenche). */ + noChain?: boolean; + /** Horloge à créer dans chaque partie. */ + clock?: GuidedClockSpec; +} + +export interface GuidedDraftLink { + from: number; + to: number; + kind: LinkType; + /** Clé sous `guided..links.` */ + labelKey: string; } export interface GuidedMethod { diff --git a/web/src/app/campaigns/guided/guided-methods.spec.ts b/web/src/app/campaigns/guided/guided-methods.spec.ts index c7230d8..1921917 100644 --- a/web/src/app/campaigns/guided/guided-methods.spec.ts +++ b/web/src/app/campaigns/guided/guided-methods.spec.ts @@ -4,6 +4,8 @@ import { join } from 'node:path'; import { GuidedField, GuidedStep } from './guided-method.model'; import { GUIDED_METHODS } from './guided-methods'; import { FIVE_ROOM_METHOD } from './methods/five-room.method'; +import { INVESTIGATION_METHOD } from './methods/investigation.method'; +import { VILLAIN_PLAN_METHOD } from './methods/villain-plan.method'; /** * Garde-fous des méthodes guidées : chaque étape / champ / option / valeur par défaut @@ -40,7 +42,15 @@ function stepKeys(p: string, step: GuidedStep): string[] { } function requiredKeys(): string[] { - return GUIDED_METHODS.flatMap(m => [`${m.i18nKey}.name`, ...m.steps.flatMap(s => stepKeys(m.i18nKey, s))]); + return GUIDED_METHODS.flatMap(m => { + const draft = m.toDraft({}); + return [ + `${m.i18nKey}.name`, `${m.i18nKey}.tagline`, + ...m.steps.flatMap(s => stepKeys(m.i18nKey, s)), + ...(draft.links?.length ? [`${m.i18nKey}.reviewLinks`] : []), + ...[...new Set((draft.links ?? []).map(l => l.labelKey))].map(k => `${m.i18nKey}.links.${k}`) + ]; + }); } describe('guided methods content', () => { @@ -102,3 +112,67 @@ describe('five-room method', () => { expect(FIVE_ROOM_METHOD.toDraft({}).scenes[0].type).toBe('ENCOUNTER'); }); }); + +describe('investigation method', () => { + const draft = INVESTIGATION_METHOD.toDraft({ + title: "L'héritage empoisonné", truth: 'Le notaire est coupable', stakes: 'Le palefrenier sera pendu', + 'hook.name': "L'arrestation", 'hook.description': 'Le palefrenier est arrêté', + 'node1.name': 'Le bureau', 'node1.nature': 'location', + 'node2.name': 'La servante', 'node2.nature': 'npc', + 'node3.name': "L'enterrement", 'node3.nature': 'event', + 'conclusion.name': 'La fuite', 'proactive.name': "L'incendie" + }); + + it('keeps the hidden truth in the GM notes, the hook as the chapter description', () => { + expect(draft.chapter.gmNotes).toBe('Le notaire est coupable'); + expect(draft.chapter.description).toBe('Le palefrenier est arrêté'); + }); + + it('builds six typed scenes: hook, three varied leads, conclusion, fallback event', () => { + expect(draft.scenes.map(s => s.type)).toEqual(['EVENT', 'LOCATION', 'NPC', 'EVENT', 'REVELATION', 'EVENT']); + }); + + it('links the conclusion from three leads, with no single point of failure', () => { + const into = (i: number) => draft.links!.filter(l => l.to === i); + expect(into(4).map(l => l.from).sort()).toEqual([1, 2, 3]); + expect(into(4).every(l => l.kind === 'CLUE')).toBe(true); + // Chaque piste est atteinte depuis l'accroche, une autre piste et la relance. + for (const lead of [1, 2, 3]) expect(new Set(into(lead).map(l => l.from)).size).toBe(3); + expect(draft.links!.some(l => l.from === l.to)).toBe(false); + expect(draft.noChain).toBeFalsy(); + }); + + it('offers varied lead natures by default', () => { + const empty = INVESTIGATION_METHOD.steps.filter(s => s.id.startsWith('node')) + .map(s => s.fields!.find(f => f.kind === 'choice')!.options![0]); + expect(new Set(empty).size).toBe(3); + }); +}); + +describe('villain plan method', () => { + const answers = { + title: "La régence d'Ysolde", villain: 'Dame Ysolde', goal: 'Le trône du prince', + stakes: 'La loi martiale', clockName: 'La régence', + 'step1.name': 'Le capitaine remplacé', 'step1.action': 'Elle place un homme à elle', + 'step6.name': 'Le couronnement' + }; + + it('writes the whole plan in the GM notes and the villain in the description', () => { + const draft = VILLAIN_PLAN_METHOD.toDraft(answers); + expect(draft.chapter.description).toBe('Dame Ysolde\n\nLe trône du prince'); + expect(draft.chapter.gmNotes).toBe('1. Le capitaine remplacé — Elle place un homme à elle\n2. Le couronnement'); + }); + + it('creates six unchained scenes with a varied rhythm by default', () => { + const draft = VILLAIN_PLAN_METHOD.toDraft(answers); + expect(draft.scenes).toHaveLength(6); + expect(draft.noChain).toBe(true); + expect(draft.links).toBeUndefined(); + expect(draft.scenes.map(s => s.type)).toEqual(['EVENT', 'NPC', 'LOCATION', 'EVENT', 'NPC', 'ENCOUNTER']); + }); + + it('adds a six-segment clock unless the GM declines it', () => { + expect(VILLAIN_PLAN_METHOD.toDraft(answers).clock).toEqual({ name: 'La régence', description: 'La loi martiale', segments: 6 }); + expect(VILLAIN_PLAN_METHOD.toDraft({ ...answers, clockWanted: 'no' }).clock).toBeUndefined(); + }); +}); diff --git a/web/src/app/campaigns/guided/guided-methods.ts b/web/src/app/campaigns/guided/guided-methods.ts index 3a3cc9d..e8ad017 100644 --- a/web/src/app/campaigns/guided/guided-methods.ts +++ b/web/src/app/campaigns/guided/guided-methods.ts @@ -1,8 +1,10 @@ import { GuidedMethod } from './guided-method.model'; import { FIVE_ROOM_METHOD } from './methods/five-room.method'; +import { INVESTIGATION_METHOD } from './methods/investigation.method'; +import { VILLAIN_PLAN_METHOD } from './methods/villain-plan.method'; -/** Méthodes guidées disponibles (M5 : préparation minimale, enquête, casse, bac à sable…). */ -export const GUIDED_METHODS: GuidedMethod[] = [FIVE_ROOM_METHOD]; +/** Méthodes guidées disponibles (à venir : préparation minimale, casse, bac à sable…). */ +export const GUIDED_METHODS: GuidedMethod[] = [FIVE_ROOM_METHOD, INVESTIGATION_METHOD, VILLAIN_PLAN_METHOD]; export function findGuidedMethod(id: string | null): GuidedMethod | undefined { return GUIDED_METHODS.find(m => m.id === id); diff --git a/web/src/app/campaigns/guided/guided-wizard/guided-wizard.component.html b/web/src/app/campaigns/guided/guided-wizard/guided-wizard.component.html index 9d05d4e..72190f1 100644 --- a/web/src/app/campaigns/guided/guided-wizard/guided-wizard.component.html +++ b/web/src/app/campaigns/guided/guided-wizard/guided-wizard.component.html @@ -128,10 +128,18 @@ } - + @if (offersChain(d)) { + + } + @if (d.links?.length) { +

{{ k('reviewLinks') | translate:{ count: d.links!.length } }}

+ } + @if (d.clock) { +

{{ 'guided.reviewClock' | translate:{ name: d.clock.name, segments: d.clock.segments } }}

+ }

{{ 'guided.reviewAfter' | translate }}

} diff --git a/web/src/app/campaigns/guided/guided-wizard/guided-wizard.component.scss b/web/src/app/campaigns/guided/guided-wizard/guided-wizard.component.scss index 1278b47..163837e 100644 --- a/web/src/app/campaigns/guided/guided-wizard/guided-wizard.component.scss +++ b/web/src/app/campaigns/guided/guided-wizard/guided-wizard.component.scss @@ -272,6 +272,17 @@ input { accent-color: #6c63ff; width: 18px; height: 18px; margin: 0; } } +.review-note { + margin: 0.75rem 0 0; + padding: 0.55rem 0.75rem; + border-left: 3px solid #6c63ff; + background: rgba(108, 99, 255, 0.08); + border-radius: 0 6px 6px 0; + color: #c7d2fe; + font-size: 0.85rem; + line-height: 1.45; +} + .review-after { margin: 0; color: #9ca3af; diff --git a/web/src/app/campaigns/guided/guided-wizard/guided-wizard.component.ts b/web/src/app/campaigns/guided/guided-wizard/guided-wizard.component.ts index 053ebb0..ae34560 100644 --- a/web/src/app/campaigns/guided/guided-wizard/guided-wizard.component.ts +++ b/web/src/app/campaigns/guided/guided-wizard/guided-wizard.component.ts @@ -186,6 +186,11 @@ export class GuidedWizardComponent implements OnInit { this.setAnswer(LINK_SCENES, String(value)); } + /** Chaînage proposé seulement quand la méthode ne relie pas elle-même ses scènes. */ + offersChain(draft: GuidedDraft): boolean { + return !draft.links?.length && !draft.noChain; + } + create(): void { const draft = this.draft; if (!draft || this.submitting) return; @@ -197,8 +202,12 @@ export class GuidedWizardComponent implements OnInit { newArcName: existing ? null : answer(this.answers, PLACEMENT_NEW_ARC), chapter: draft.chapter, scenes: draft.scenes, - linkSequentially: this.linkScenes, - linkLabel: this.translate.instant('guided.linkLabel') + linkSequentially: this.offersChain(draft) && this.linkScenes, + linkLabel: this.translate.instant('guided.linkLabel'), + links: (draft.links ?? []).map(l => ({ + from: l.from, to: l.to, kind: l.kind, label: this.translate.instant(this.k(`links.${l.labelKey}`)) + })), + clock: draft.clock ?? null }).subscribe({ next: result => { this.clearDraft(); diff --git a/web/src/app/campaigns/guided/methods/investigation.method.ts b/web/src/app/campaigns/guided/methods/investigation.method.ts new file mode 100644 index 0000000..6022ded --- /dev/null +++ b/web/src/app/campaigns/guided/methods/investigation.method.ts @@ -0,0 +1,126 @@ +import { SceneType } from '../../../services/campaign.model'; +import { GuidedSceneSpec } from '../../../services/guided-skeleton.model'; +import { GuidedAnswers, GuidedDraftLink, GuidedField, GuidedMethod, answer } from '../guided-method.model'; + +/** + * « Enquête en nœuds » (principe des scénarios d'enquête non linéaires ; textes écrits + * pour LoreMind). Au lieu d'une chaîne d'indices où un seul raté bloque tout, l'enquête + * est un réseau : une accroche ouvre trois pistes qui se renvoient les unes aux autres et + * mènent toutes à la conclusion, plus une scène que le MJ déclenche si la table piétine. + * + * Produit 1 chapitre (vérité cachée en notes MJ) + 6 scènes typées et reliées : + * accroche → pistes 1, 2, 3 (pistes) ; 1 → 2 → 3 → 1 (pistes) ; + * pistes 1, 2, 3 → conclusion (indices) ; relance → pistes 1, 2, 3. + * La conclusion est donc atteinte par trois chemins (règle des 3 indices) et aucune + * scène n'est un passage obligé. + */ + +const HOOK = 0; +const NODES = [1, 2, 3]; +const CONCLUSION = 4; +const PROACTIVE = 5; + +const NATURE_TO_TYPE: Record = { + location: 'LOCATION', + npc: 'NPC', + event: 'EVENT', + encounter: 'ENCOUNTER', + revelation: 'REVELATION' +}; + +/** Natures proposées pour chaque piste, dans un ordre différent : des sources variées par défaut. */ +const NODE_NATURES: Record = { + 1: ['location', 'npc', 'event'], + 2: ['npc', 'location', 'event'], + 3: ['event', 'location', 'npc'] +}; + +function nodeFields(n: number): GuidedField[] { + return [ + { key: `node${n}.name`, kind: 'text', required: true, prefilled: true }, + { key: `node${n}.nature`, kind: 'choice', options: NODE_NATURES[n] }, + { key: `node${n}.description`, kind: 'textarea', coachTopic: 'scene.description' }, + { key: `node${n}.clues`, kind: 'textarea', coachTopic: 'scene.branches' }, + { key: `node${n}.secret`, kind: 'textarea', coachTopic: 'scene.gmNotes' } + ]; +} + +/** Réseau de liens entre les six scènes (indices dans l'ordre de `scenes`). */ +function investigationLinks(): GuidedDraftLink[] { + const links: GuidedDraftLink[] = []; + for (const n of NODES) links.push({ from: HOOK, to: n, kind: 'LEAD', labelKey: 'lead' }); + links.push({ from: 1, to: 2, kind: 'LEAD', labelKey: 'lead' }); + links.push({ from: 2, to: 3, kind: 'LEAD', labelKey: 'lead' }); + links.push({ from: 3, to: 1, kind: 'LEAD', labelKey: 'lead' }); + for (const n of NODES) links.push({ from: n, to: CONCLUSION, kind: 'CLUE', labelKey: 'clue' }); + for (const n of NODES) links.push({ from: PROACTIVE, to: n, kind: 'LEAD', labelKey: 'proactive' }); + return links; +} + +export const INVESTIGATION_METHOD: GuidedMethod = { + id: 'investigation', + i18nKey: 'investigation', + steps: [ + { id: 'placement', kind: 'placement' }, + { + id: 'mystery', kind: 'form', fields: [ + { key: 'title', kind: 'text', required: true }, + { key: 'truth', kind: 'textarea', coachTopic: 'publication.gmBackground' }, + { key: 'stakes', kind: 'textarea', coachTopic: 'chapter.stakes' } + ] + }, + { + id: 'hook', kind: 'form', fields: [ + { key: 'hook.name', kind: 'text', required: true, prefilled: true }, + { key: 'hook.nature', kind: 'choice', options: ['event', 'npc'] }, + { key: 'hook.description', kind: 'textarea', coachTopic: 'chapter.synopsis' }, + { key: 'hook.clues', kind: 'textarea', coachTopic: 'scene.branches' } + ] + }, + { id: 'node1', kind: 'form', fields: nodeFields(1) }, + { id: 'node2', kind: 'form', fields: nodeFields(2) }, + { id: 'node3', kind: 'form', fields: nodeFields(3) }, + { + id: 'conclusion', kind: 'form', fields: [ + { key: 'conclusion.name', kind: 'text', required: true, prefilled: true }, + { key: 'conclusion.nature', kind: 'choice', options: ['revelation', 'encounter'] }, + { key: 'conclusion.description', kind: 'textarea', coachTopic: 'scene.description' }, + { key: 'conclusion.choices', kind: 'textarea', coachTopic: 'scene.choices' } + ] + }, + { + id: 'proactive', kind: 'form', fields: [ + { key: 'proactive.name', kind: 'text', required: true, prefilled: true }, + { key: 'proactive.description', kind: 'textarea', coachTopic: 'scene.description' }, + { key: 'proactive.clues', kind: 'textarea', coachTopic: 'scene.branches' } + ] + }, + { id: 'review', kind: 'review' } + ], + + toDraft(answers: GuidedAnswers) { + const scene = (prefix: string, type: SceneType, choicesKey = 'clues', secretKey?: string): GuidedSceneSpec => ({ + name: answer(answers, `${prefix}.name`) ?? '', + description: answer(answers, `${prefix}.description`), + type, + choicesConsequences: answer(answers, `${prefix}.${choicesKey}`), + gmSecretNotes: secretKey ? answer(answers, `${prefix}.${secretKey}`) : null + }); + const nature = (key: string, fallback: SceneType): SceneType => NATURE_TO_TYPE[answers[key]] ?? fallback; + return { + chapter: { + name: answer(answers, 'title') ?? '', + description: answer(answers, 'hook.description'), + narrativeStakes: answer(answers, 'stakes'), + gmNotes: answer(answers, 'truth') + }, + scenes: [ + scene('hook', nature('hook.nature', 'EVENT')), + ...NODES.map(n => scene(`node${n}`, nature(`node${n}.nature`, 'LOCATION'), 'clues', 'secret')), + scene('conclusion', nature('conclusion.nature', 'REVELATION'), 'choices'), + scene('proactive', 'EVENT') + ], + links: investigationLinks() + }; + } +}; diff --git a/web/src/app/campaigns/guided/methods/villain-plan.method.ts b/web/src/app/campaigns/guided/methods/villain-plan.method.ts new file mode 100644 index 0000000..a9f5ebb --- /dev/null +++ b/web/src/app/campaigns/guided/methods/villain-plan.method.ts @@ -0,0 +1,96 @@ +import { SceneType } from '../../../services/campaign.model'; +import { GuidedAnswers, GuidedField, GuidedMethod, GuidedStep, answer } from '../guided-method.model'; + +/** + * « Plan du méchant » (textes écrits pour LoreMind). L'adversaire ne reste pas assis à + * attendre les héros : il poursuit un plan en six étapes, trois discrètes pour se préparer + * puis trois visibles pour agir. Chaque étape le rapproche de son but, frappe plus fort que + * la précédente et laisse aux joueurs une occasion de réagir. + * + * Produit 1 chapitre (le plan complet en notes MJ) + 6 scènes d'événement que le MJ + * déclenche au fil des séances (non chaînées : c'est l'adversaire qui avance, pas les + * joueurs), et, au choix, une horloge de 6 segments dans chaque partie de la campagne. + */ + +const STEPS = [1, 2, 3, 4, 5, 6]; + +const NATURE_TO_TYPE: Record = { + event: 'EVENT', + npc: 'NPC', + location: 'LOCATION', + encounter: 'ENCOUNTER' +}; + +/** Nature proposée en premier pour chaque étape : un rythme varié par défaut. */ +const FIRST_NATURE: Record = { 1: 'event', 2: 'npc', 3: 'location', 4: 'event', 5: 'npc', 6: 'encounter' }; + +function natures(step: number): string[] { + const first = FIRST_NATURE[step]; + return [first, ...Object.keys(NATURE_TO_TYPE).filter(n => n !== first)]; +} + +function planStep(n: number): GuidedStep { + const fields: GuidedField[] = [ + { key: `step${n}.name`, kind: 'text', required: true, prefilled: true }, + { key: `step${n}.nature`, kind: 'choice', options: natures(n) }, + { key: `step${n}.action`, kind: 'textarea', coachTopic: 'scene.description' }, + { key: `step${n}.sign`, kind: 'textarea', coachTopic: 'scene.choices' } + ]; + return { id: `step${n}`, kind: 'form', fields }; +} + +export const VILLAIN_PLAN_METHOD: GuidedMethod = { + id: 'villain-plan', + i18nKey: 'villainPlan', + steps: [ + { id: 'placement', kind: 'placement' }, + { + id: 'villain', kind: 'form', fields: [ + { key: 'title', kind: 'text', required: true }, + { key: 'villain', kind: 'text', required: true }, + { key: 'goal', kind: 'textarea', coachTopic: 'arc.synopsis' }, + { key: 'stakes', kind: 'textarea', coachTopic: 'arc.stakes' }, + { key: 'objectives', kind: 'textarea', coachTopic: 'chapter.objectives' } + ] + }, + ...STEPS.map(planStep), + { + id: 'clock', kind: 'form', fields: [ + { key: 'clockWanted', kind: 'choice', options: ['yes', 'no'] }, + { key: 'clockName', kind: 'text', prefilled: true } + ] + }, + { id: 'review', kind: 'review' } + ], + + toDraft(answers: GuidedAnswers) { + const villain = answer(answers, 'villain'); + const goal = answer(answers, 'goal'); + const stakes = answer(answers, 'stakes'); + const plan = STEPS + .map(n => [answer(answers, `step${n}.name`), answer(answers, `step${n}.action`)]) + .filter(([name]) => !!name) + .map(([name, action], i) => `${i + 1}. ${name}${action ? ' — ' + action : ''}`); + const description = [villain, goal].filter(Boolean).join('\n\n') || null; + const wantsClock = answers['clockWanted'] !== 'no'; + return { + chapter: { + name: answer(answers, 'title') ?? '', + description, + playerObjectives: answer(answers, 'objectives'), + narrativeStakes: stakes, + gmNotes: plan.length ? plan.join('\n') : null + }, + scenes: STEPS.map(n => ({ + name: answer(answers, `step${n}.name`) ?? '', + description: answer(answers, `step${n}.action`), + type: NATURE_TO_TYPE[answers[`step${n}.nature`]] ?? NATURE_TO_TYPE[FIRST_NATURE[n]], + choicesConsequences: answer(answers, `step${n}.sign`) + })), + noChain: true, + clock: wantsClock + ? { name: answer(answers, 'clockName') ?? answer(answers, 'title') ?? '', description: stakes, segments: STEPS.length } + : undefined + }; + } +}; diff --git a/web/src/app/services/guided-skeleton.model.ts b/web/src/app/services/guided-skeleton.model.ts index f7b0084..550241d 100644 --- a/web/src/app/services/guided-skeleton.model.ts +++ b/web/src/app/services/guided-skeleton.model.ts @@ -1,4 +1,4 @@ -import { SceneType } from './campaign.model'; +import { LinkType, SceneType } from './campaign.model'; /** * Squelette d'aventure produit par une méthode guidée (Mentor d'écriture, phase M3), @@ -9,6 +9,8 @@ export interface GuidedChapterSpec { description?: string | null; playerObjectives?: string | null; narrativeStakes?: string | null; + /** Notes réservées au MJ (vérité cachée, plan complet du méchant). */ + gmNotes?: string | null; } export interface GuidedSceneSpec { @@ -30,10 +32,29 @@ export interface GuidedSkeleton { scenes: GuidedSceneSpec[]; linkSequentially: boolean; linkLabel?: string | null; + /** Liens explicites entre scènes (indices dans `scenes`) : réseau d'une enquête. */ + links?: GuidedLinkSpec[] | null; + /** Horloge créée dans chaque partie de la campagne (plan du méchant). */ + clock?: GuidedClockSpec | null; +} + +export interface GuidedLinkSpec { + from: number; + to: number; + label?: string | null; + kind: LinkType; +} + +export interface GuidedClockSpec { + name: string; + description?: string | null; + segments: number; } export interface GuidedSkeletonResult { arcId: string; chapterId: string; sceneIds: string[]; + /** Horloges créées (une par partie de la campagne). */ + clocks?: number; } diff --git a/web/src/assets/i18n/en.json b/web/src/assets/i18n/en.json index 4b1288d..c9a1fb3 100644 --- a/web/src/assets/i18n/en.json +++ b/web/src/assets/i18n/en.json @@ -2467,6 +2467,509 @@ "room5": { "name": "The reward" } + }, + "tagline": "A short adventure in five beats in a single place: a guardian, a challenge, a setback, the climax, the reward." + }, + "chooserTitle": "Write with a guided method", + "chooserIntro": "Pick a structure: the wizard asks you the right questions, step by step, then creates the chapter and its scenes. You write everything; nothing is generated.", + "chooserStart": "Start", + "chooserScenes": "{{count}} scenes", + "reviewClock": "A \"{{name}}\" clock with {{segments}} segments will be created in each playthrough of the campaign.", + "investigation": { + "name": "Node-based investigation", + "tagline": "An investigation that never gets stuck: three leads that cross-reference each other, a conclusion reached by three paths, and a fallback scene if the table stalls.", + "reviewLinks": "The scenes will be linked by {{count}} leads and clues: each lead points to the others and to the conclusion.", + "links": { + "lead": "Lead", + "clue": "Clue", + "proactive": "Fallback" + }, + "steps": { + "placement": { + "title": "Where to put the investigation?", + "why": "The investigation becomes a chapter. Put it in an existing arc or create a new one.", + "example": "An arc \"The season of ashes\" grouping several cases." + }, + "mystery": { + "title": "The mystery", + "why": "Start with the truth: what really happened, who is responsible and why. The players will only learn it at the end, but everything else follows from it: each clue is a trace left by that truth.", + "example": "The notary poisoned his partner to hide a debt and framed the stable boy. If no one stops him, he'll leave town with the inheritance in three days." + }, + "hook": { + "title": "The hook", + "why": "The opening scene starts the case and gives the players several leads to follow, not just one. The more it concerns them directly, the more involved they'll be.", + "example": "The stable boy, a friend of one character, is arrested in front of them. He shouts his innocence and mentions the notary, a burnt letter and a maid who saw everything." + }, + "node1": { + "title": "First lead", + "why": "A lead is a place, a person or an event where the players learn something. Note what they find there: the wizard will link each lead to the two others and to the conclusion.", + "example": "The notary's office: a forged ledger, ashes of a letter in the hearth, and a scribbled address." + }, + "node2": { + "title": "Second lead", + "why": "Vary the sources: if every lead is an interrogation, a table that doesn't like talking will miss everything. A place, a person, an event: each has its own style.", + "example": "The terrified maid who saw the notary leave the room that night. She'll only talk in exchange for protection." + }, + "node3": { + "title": "Third lead", + "why": "This lead points back to the two others: players can start with any of them and still find their way. Think about what could go wrong here.", + "example": "The partner's funeral: the notary gives a speech that's too perfect, and the doctor whispers that the body smelled of almonds." + }, + "conclusion": { + "title": "The conclusion", + "why": "All three leads lead here: if the players miss one, they still arrive. Plan how the truth comes out and what the players can do with it.", + "example": "Faced with the evidence, the notary tries to flee by the docks. The players can arrest him, hand him to the crowd or bargain for the stable boy's release." + }, + "proactive": { + "title": "The fallback", + "why": "If the investigation stalls, this scene comes to the players: the enemy strikes back, a witness comes forward, things get worse. It brings new leads to the three others.", + "example": "One night, someone tries to set fire to the stable where the stable boy sleeps. The arsonist drops a button from the notary's coat." + }, + "review": { + "title": "Summary", + "why": "Check the scenes before creating the chapter. Everything can be edited afterwards, and the editor review will point out what's missing." + } + }, + "fields": { + "title": { + "label": "Name of the investigation", + "placeholder": "E.g. The poisoned inheritance" + }, + "truth": { + "label": "What really happened (GM only)", + "placeholder": "Who, what, why, and what will happen if nobody steps in" + }, + "stakes": { + "label": "What happens if the investigation fails", + "placeholder": "For the world, and for the characters" + }, + "hook": { + "name": { + "label": "Name of the opening scene", + "placeholder": "E.g. The arrest" + }, + "nature": { + "label": "How does the case begin?" + }, + "description": { + "label": "What happens", + "placeholder": "The starting situation, in a few lines" + }, + "clues": { + "label": "The leads it opens", + "placeholder": "What points to each of the three leads" + } + }, + "node1": { + "name": { + "label": "Name of the lead", + "placeholder": "E.g. The notary's office" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "description": { + "label": "What the players find there", + "placeholder": "What there is to see, search, learn" + }, + "clues": { + "label": "Clues and where they lead", + "placeholder": "At least one clue to the conclusion, one to another lead" + }, + "secret": { + "label": "What the GM knows (trap, lie, complication)", + "placeholder": "What can go wrong here" + } + }, + "node2": { + "name": { + "label": "Name of the lead", + "placeholder": "E.g. The maid" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "description": { + "label": "What the players find there", + "placeholder": "What there is to see, search, learn" + }, + "clues": { + "label": "Clues and where they lead", + "placeholder": "At least one clue to the conclusion, one to another lead" + }, + "secret": { + "label": "What the GM knows (trap, lie, complication)", + "placeholder": "What can go wrong here" + } + }, + "node3": { + "name": { + "label": "Name of the lead", + "placeholder": "E.g. The funeral" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "description": { + "label": "What the players find there", + "placeholder": "What there is to see, search, learn" + }, + "clues": { + "label": "Clues and where they lead", + "placeholder": "At least one clue to the conclusion, one to another lead" + }, + "secret": { + "label": "What the GM knows (trap, lie, complication)", + "placeholder": "What can go wrong here" + } + }, + "conclusion": { + "name": { + "label": "Name of the conclusion", + "placeholder": "E.g. Escape by the docks" + }, + "nature": { + "label": "How does the investigation end?" + }, + "description": { + "label": "What happens", + "placeholder": "How the truth comes out" + }, + "choices": { + "label": "What the players can do with it", + "placeholder": "Several outcomes, and their consequences" + } + }, + "proactive": { + "name": { + "label": "Name of the fallback scene", + "placeholder": "E.g. The stable fire" + }, + "description": { + "label": "What the enemy does if the players stall", + "placeholder": "A counter-attack, a witness coming forward, a threat moving on" + }, + "clues": { + "label": "The new leads it brings", + "placeholder": "What points back to the three leads" + } + } + }, + "options": { + "hook": { + "nature": { + "event": "Through an event", + "npc": "Through an encounter" + } + }, + "node1": { + "nature": { + "location": "A place to search", + "npc": "A person to question", + "event": "An event to live through" + } + }, + "node2": { + "nature": { + "location": "A place to search", + "npc": "A person to question", + "event": "An event to live through" + } + }, + "node3": { + "nature": { + "location": "A place to search", + "npc": "A person to question", + "event": "An event to live through" + } + }, + "conclusion": { + "nature": { + "revelation": "A revelation", + "encounter": "A confrontation" + } + } + }, + "defaults": { + "hook": { + "name": "The case begins" + }, + "node1": { + "name": "First lead" + }, + "node2": { + "name": "Second lead" + }, + "node3": { + "name": "Third lead" + }, + "conclusion": { + "name": "The truth comes out" + }, + "proactive": { + "name": "The enemy strikes back" + } + } + }, + "villainPlan": { + "name": "The villain's plan", + "tagline": "An enemy who acts even when the players do nothing: six steps, three hidden then three visible, and a clock to track their progress.", + "steps": { + "placement": { + "title": "Where to put the plan?", + "why": "The plan becomes a chapter whose scenes are events to trigger across sessions. Put it in an existing arc or create a new one.", + "example": "The campaign's main arc, so the threat weighs on everything else." + }, + "villain": { + "title": "The enemy", + "why": "A good enemy wants something the characters own, protect or love: that's what makes the conflict unavoidable. Also say what happens if they succeed.", + "example": "Lady Ysolde, the regent, wants the throne of the young prince the characters swore to protect. If she succeeds, the prince vanishes and the city falls under martial law." + }, + "step1": { + "title": "Step 1 — Prepare in secret", + "why": "The first three steps are hidden: the enemy moves their pieces without showing themselves. Each still leaves a trace that attentive players can notice.", + "example": "Ysolde replaces the guard captain with one of her men. A guard friendly to the characters is transferred without explanation." + }, + "step2": { + "title": "Step 2 — Gain allies", + "why": "Each step brings the enemy closer to their goal and hits a little harder than the last. Think about what directly affects a character.", + "example": "She buys the chamberlain's silence. A character's mentor, who refuses, is accused of theft." + }, + "step3": { + "title": "Step 3 — Set the trap", + "why": "Last hidden step: everything is in place. If the players followed the traces, this is when they can still stop it all.", + "example": "She brings in mercenaries disguised as merchants. An inn the characters frequent fills with armed strangers." + }, + "step4": { + "title": "Step 4 — Strike", + "why": "From here on, the plan becomes visible: the enemy acts openly. Always leave the players a chance to react, even late.", + "example": "The prince falls ill at the banquet. Ysolde announces she will rule alone \"for the good of the realm\"." + }, + "step5": { + "title": "Step 5 — Crush the resistance", + "why": "The enemy goes after those who could stop them, often the characters themselves or their loved ones.", + "example": "The guard raids the characters' allies. A wanted poster bears one of their faces." + }, + "step6": { + "title": "Step 6 — Reach the goal", + "why": "If nothing stopped them, the enemy gets what they wanted. The final confrontation often happens here, but it may also come too late.", + "example": "Ysolde's coronation at the temple. The characters have until the end of the ceremony to save the prince." + }, + "clock": { + "title": "The plan's clock", + "why": "A six-segment clock, one per step, fills across sessions when the players don't intervene. It's created in each playthrough of the campaign, so you can see how far the enemy has got.", + "example": "Between two sessions, if nobody hindered them, the enemy moves one step forward: fill one segment." + }, + "review": { + "title": "Summary", + "why": "Check the steps before creating the chapter. The scenes aren't linked to each other: it's the enemy who moves forward, and you trigger each step at the right time." + } + }, + "fields": { + "title": { + "label": "Name of the plan", + "placeholder": "E.g. Ysolde's regency" + }, + "villain": { + "label": "Who is the enemy?", + "placeholder": "Their name and what they are" + }, + "goal": { + "label": "What do they want that affects the characters?", + "placeholder": "Something they own, protect or love" + }, + "stakes": { + "label": "What happens if they succeed", + "placeholder": "For the world, and for the characters" + }, + "objectives": { + "label": "What the players can aim for", + "placeholder": "Expose, thwart, protect…" + }, + "step1": { + "name": { + "label": "Name of the step", + "placeholder": "E.g. The replaced captain" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "action": { + "label": "What the enemy does", + "placeholder": "Concretely, and who it affects" + }, + "sign": { + "label": "What the players can notice and do", + "placeholder": "The trace left behind, and how to react" + } + }, + "step2": { + "name": { + "label": "Name of the step", + "placeholder": "E.g. The bought chamberlain" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "action": { + "label": "What the enemy does", + "placeholder": "Concretely, and who it affects" + }, + "sign": { + "label": "What the players can notice and do", + "placeholder": "The trace left behind, and how to react" + } + }, + "step3": { + "name": { + "label": "Name of the step", + "placeholder": "E.g. The fake merchants" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "action": { + "label": "What the enemy does", + "placeholder": "Concretely, and who it affects" + }, + "sign": { + "label": "What the players can notice and do", + "placeholder": "The trace left behind, and how to react" + } + }, + "step4": { + "name": { + "label": "Name of the step", + "placeholder": "E.g. The banquet" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "action": { + "label": "What the enemy does", + "placeholder": "Concretely, and who it affects" + }, + "sign": { + "label": "What the players can notice and do", + "placeholder": "The trace left behind, and how to react" + } + }, + "step5": { + "name": { + "label": "Name of the step", + "placeholder": "E.g. The raids" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "action": { + "label": "What the enemy does", + "placeholder": "Concretely, and who it affects" + }, + "sign": { + "label": "What the players can notice and do", + "placeholder": "The trace left behind, and how to react" + } + }, + "step6": { + "name": { + "label": "Name of the step", + "placeholder": "E.g. The coronation" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "action": { + "label": "What the enemy does", + "placeholder": "Concretely, and who it affects" + }, + "sign": { + "label": "What the players can notice and do", + "placeholder": "The trace left behind, and how to react" + } + }, + "clockWanted": { + "label": "Create the clock in the playthroughs?" + }, + "clockName": { + "label": "Name of the clock", + "placeholder": "E.g. Ysolde's regency" + } + }, + "options": { + "clockWanted": { + "yes": "Yes, a 6-segment clock", + "no": "No, I'll track the plan myself" + }, + "step1": { + "nature": { + "event": "An event", + "npc": "An NPC encounter", + "location": "A place", + "encounter": "A fight" + } + }, + "step2": { + "nature": { + "event": "An event", + "npc": "An NPC encounter", + "location": "A place", + "encounter": "A fight" + } + }, + "step3": { + "nature": { + "event": "An event", + "npc": "An NPC encounter", + "location": "A place", + "encounter": "A fight" + } + }, + "step4": { + "nature": { + "event": "An event", + "npc": "An NPC encounter", + "location": "A place", + "encounter": "A fight" + } + }, + "step5": { + "nature": { + "event": "An event", + "npc": "An NPC encounter", + "location": "A place", + "encounter": "A fight" + } + }, + "step6": { + "nature": { + "event": "An event", + "npc": "An NPC encounter", + "location": "A place", + "encounter": "A fight" + } + } + }, + "defaults": { + "step1": { + "name": "Secret preparations" + }, + "step2": { + "name": "Bought allies" + }, + "step3": { + "name": "Everything in place" + }, + "step4": { + "name": "The strike" + }, + "step5": { + "name": "Resistance crushed" + }, + "step6": { + "name": "Goal reached" + }, + "clockName": "The enemy's plan" } } }, diff --git a/web/src/assets/i18n/fr.json b/web/src/assets/i18n/fr.json index 853ac3c..e3f0379 100644 --- a/web/src/assets/i18n/fr.json +++ b/web/src/assets/i18n/fr.json @@ -2467,6 +2467,509 @@ "room5": { "name": "La récompense" } + }, + "tagline": "Une aventure courte en cinq temps dans un même lieu : un gardien, une épreuve, un revers, le climax, la récompense." + }, + "chooserTitle": "Écrire avec une méthode guidée", + "chooserIntro": "Choisissez une structure : l'assistant vous pose les bonnes questions, étape par étape, puis crée le chapitre et ses scènes. Vous écrivez tout ; rien n'est généré.", + "chooserStart": "Commencer", + "chooserScenes": "{{count}} scènes", + "reviewClock": "Une horloge « {{name}} » de {{segments}} segments sera créée dans chaque partie de la campagne.", + "investigation": { + "name": "Enquête en nœuds", + "tagline": "Une enquête qui ne se bloque jamais : trois pistes qui se recoupent, une conclusion atteinte par trois chemins, et une scène de relance si la table piétine.", + "reviewLinks": "Les scènes seront reliées entre elles par {{count}} pistes et indices : chaque piste mène aux autres et à la conclusion.", + "links": { + "lead": "Piste", + "clue": "Indice", + "proactive": "Relance" + }, + "steps": { + "placement": { + "title": "Où ranger l'enquête ?", + "why": "L'enquête devient un chapitre. Rangez-la dans un arc existant ou créez-en un nouveau.", + "example": "Un arc « La saison des cendres » qui regroupe plusieurs affaires." + }, + "mystery": { + "title": "Le mystère", + "why": "Commencez par la vérité : ce qui s'est réellement passé, qui en est responsable et pourquoi. Les joueurs ne la connaîtront qu'à la fin, mais tout le reste en découle : chaque indice est une trace laissée par cette vérité.", + "example": "Le notaire a empoisonné son associé pour cacher une dette ; il a fait accuser le palefrenier. Si personne ne l'arrête, il quittera la ville avec l'héritage dans trois jours." + }, + "hook": { + "title": "L'accroche", + "why": "La scène d'ouverture lance l'affaire et donne aux joueurs plusieurs pistes à suivre, pas une seule. Plus elle les concerne directement, plus ils s'investiront.", + "example": "Le palefrenier, ami d'un des personnages, est arrêté sous leurs yeux. Il crie son innocence et parle du notaire, d'une lettre brûlée et d'une servante qui a tout vu." + }, + "node1": { + "title": "Première piste", + "why": "Une piste est un lieu, une personne ou un événement où les joueurs apprennent quelque chose. Notez ce qu'ils y trouvent : l'assistant reliera chaque piste aux deux autres et à la conclusion.", + "example": "Le bureau du notaire : un registre falsifié, des cendres de lettre dans l'âtre, et une adresse griffonnée." + }, + "node2": { + "title": "Deuxième piste", + "why": "Variez les sources : si toutes les pistes sont des interrogatoires, une table qui n'aime pas parler passera à côté de tout. Un lieu, une personne, un événement : chacun son style.", + "example": "La servante, terrifiée, qui a vu le notaire sortir de la chambre ce soir-là. Elle ne parlera qu'en échange d'une protection." + }, + "node3": { + "title": "Troisième piste", + "why": "Cette piste ramène aux deux autres : les joueurs peuvent commencer par n'importe laquelle et retrouver leur chemin. Pensez à ce qui pourrait mal tourner ici.", + "example": "L'enterrement de l'associé : le notaire y fait un discours trop parfait, et le médecin murmure que le corps sentait l'amande." + }, + "conclusion": { + "title": "La conclusion", + "why": "Chacune des trois pistes y mène : si les joueurs en ratent une, ils arrivent quand même ici. Prévoyez comment la vérité éclate et ce que les joueurs peuvent en faire.", + "example": "Confronté aux preuves, le notaire tente de fuir par les quais. Les joueurs peuvent l'arrêter, le livrer à la foule ou négocier la libération du palefrenier." + }, + "proactive": { + "title": "La relance", + "why": "Si l'enquête piétine, cette scène vient aux joueurs : l'adversaire riposte, un témoin se manifeste, la situation empire. Elle apporte de nouvelles pistes vers les trois autres.", + "example": "Une nuit, on tente d'incendier l'écurie où dort le palefrenier libéré sous caution. L'incendiaire laisse tomber un bouton de manteau du notaire." + }, + "review": { + "title": "Récapitulatif", + "why": "Vérifiez les scènes avant de créer le chapitre. Tout reste modifiable ensuite, et la relecture vous signalera ce qui manque." + } + }, + "fields": { + "title": { + "label": "Nom de l'enquête", + "placeholder": "Ex. : L'héritage empoisonné" + }, + "truth": { + "label": "Ce qui s'est vraiment passé (réservé au MJ)", + "placeholder": "Qui, quoi, pourquoi, et ce qui arrivera si personne n'intervient" + }, + "stakes": { + "label": "Ce qui se passe si l'enquête échoue", + "placeholder": "Pour le monde, et pour les personnages" + }, + "hook": { + "name": { + "label": "Nom de la scène d'ouverture", + "placeholder": "Ex. : L'arrestation" + }, + "nature": { + "label": "Comment l'affaire commence-t-elle ?" + }, + "description": { + "label": "Ce qui se passe", + "placeholder": "La situation de départ, en quelques lignes" + }, + "clues": { + "label": "Les pistes qu'elle ouvre", + "placeholder": "Ce qui pousse vers chacune des trois pistes" + } + }, + "node1": { + "name": { + "label": "Nom de la piste", + "placeholder": "Ex. : Le bureau du notaire" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "description": { + "label": "Ce que les joueurs y trouvent", + "placeholder": "Ce qu'il y a à voir, à fouiller, à apprendre" + }, + "clues": { + "label": "Indices et où ils mènent", + "placeholder": "Au moins un indice vers la conclusion, un vers une autre piste" + }, + "secret": { + "label": "Ce que le MJ sait (piège, mensonge, complication)", + "placeholder": "Ce qui peut mal tourner ici" + } + }, + "node2": { + "name": { + "label": "Nom de la piste", + "placeholder": "Ex. : La servante" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "description": { + "label": "Ce que les joueurs y trouvent", + "placeholder": "Ce qu'il y a à voir, à fouiller, à apprendre" + }, + "clues": { + "label": "Indices et où ils mènent", + "placeholder": "Au moins un indice vers la conclusion, un vers une autre piste" + }, + "secret": { + "label": "Ce que le MJ sait (piège, mensonge, complication)", + "placeholder": "Ce qui peut mal tourner ici" + } + }, + "node3": { + "name": { + "label": "Nom de la piste", + "placeholder": "Ex. : L'enterrement" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "description": { + "label": "Ce que les joueurs y trouvent", + "placeholder": "Ce qu'il y a à voir, à fouiller, à apprendre" + }, + "clues": { + "label": "Indices et où ils mènent", + "placeholder": "Au moins un indice vers la conclusion, un vers une autre piste" + }, + "secret": { + "label": "Ce que le MJ sait (piège, mensonge, complication)", + "placeholder": "Ce qui peut mal tourner ici" + } + }, + "conclusion": { + "name": { + "label": "Nom de la conclusion", + "placeholder": "Ex. : La fuite par les quais" + }, + "nature": { + "label": "Comment l'enquête se conclut-elle ?" + }, + "description": { + "label": "Ce qui se passe", + "placeholder": "Comment la vérité éclate" + }, + "choices": { + "label": "Ce que les joueurs peuvent en faire", + "placeholder": "Plusieurs issues, et leurs conséquences" + } + }, + "proactive": { + "name": { + "label": "Nom de la scène de relance", + "placeholder": "Ex. : L'incendie de l'écurie" + }, + "description": { + "label": "Ce que fait l'adversaire si les joueurs piétinent", + "placeholder": "Une riposte, un témoin qui se manifeste, une menace qui avance" + }, + "clues": { + "label": "Les nouvelles pistes qu'elle apporte", + "placeholder": "Ce qui renvoie vers les trois pistes" + } + } + }, + "options": { + "hook": { + "nature": { + "event": "Par un événement", + "npc": "Par une rencontre" + } + }, + "node1": { + "nature": { + "location": "Un lieu à fouiller", + "npc": "Une personne à interroger", + "event": "Un événement à vivre" + } + }, + "node2": { + "nature": { + "location": "Un lieu à fouiller", + "npc": "Une personne à interroger", + "event": "Un événement à vivre" + } + }, + "node3": { + "nature": { + "location": "Un lieu à fouiller", + "npc": "Une personne à interroger", + "event": "Un événement à vivre" + } + }, + "conclusion": { + "nature": { + "revelation": "Une révélation", + "encounter": "Une confrontation" + } + } + }, + "defaults": { + "hook": { + "name": "L'affaire commence" + }, + "node1": { + "name": "Première piste" + }, + "node2": { + "name": "Deuxième piste" + }, + "node3": { + "name": "Troisième piste" + }, + "conclusion": { + "name": "La vérité éclate" + }, + "proactive": { + "name": "L'adversaire riposte" + } + } + }, + "villainPlan": { + "name": "Plan du méchant", + "tagline": "Un adversaire qui agit même quand les joueurs ne font rien : six étapes, trois discrètes puis trois visibles, et une horloge pour suivre sa progression.", + "steps": { + "placement": { + "title": "Où ranger le plan ?", + "why": "Le plan devient un chapitre dont les scènes sont des événements à déclencher au fil des séances. Rangez-le dans un arc existant ou créez-en un nouveau.", + "example": "L'arc principal de la campagne, pour que la menace pèse sur tout le reste." + }, + "villain": { + "title": "L'adversaire", + "why": "Un bon adversaire veut quelque chose que les personnages possèdent, protègent ou aiment : c'est ce qui rend l'affrontement inévitable. Dites aussi ce qui arrive s'il réussit.", + "example": "Dame Ysolde, régente, veut le trône du jeune prince que les personnages ont juré de protéger. Si elle réussit, le prince disparaît et la ville tombe sous la loi martiale." + }, + "step1": { + "title": "Étape 1 — Se préparer en secret", + "why": "Les trois premières étapes sont discrètes : l'adversaire avance ses pions sans se montrer. Chacune laisse pourtant une trace que des joueurs attentifs peuvent remarquer.", + "example": "Ysolde fait remplacer le capitaine de la garde par un homme à elle. Un garde ami des personnages est muté sans explication." + }, + "step2": { + "title": "Étape 2 — Gagner des alliés", + "why": "Chaque étape le rapproche de son but et frappe un peu plus fort que la précédente. Pensez à ce qui touche directement un personnage.", + "example": "Elle achète le silence du chambellan. Le mentor d'un personnage, qui refuse, est accusé de vol." + }, + "step3": { + "title": "Étape 3 — Préparer le coup", + "why": "Dernière étape discrète : tout est en place. Si les joueurs ont suivi les traces, c'est le moment où ils peuvent encore tout empêcher.", + "example": "Elle fait venir des mercenaires déguisés en marchands. Une auberge que fréquentent les personnages se remplit d'étrangers armés." + }, + "step4": { + "title": "Étape 4 — Frapper", + "why": "À partir d'ici, le plan devient visible : l'adversaire agit au grand jour. Laissez toujours aux joueurs une occasion de réagir, même tard.", + "example": "Le prince tombe malade au banquet. Ysolde annonce qu'elle gouvernera seule « pour le bien du royaume »." + }, + "step5": { + "title": "Étape 5 — Écraser la résistance", + "why": "L'adversaire s'en prend à ceux qui pourraient l'arrêter, souvent les personnages eux-mêmes ou leurs proches.", + "example": "La garde perquisitionne chez les alliés des personnages. Un avis de recherche porte le visage de l'un d'eux." + }, + "step6": { + "title": "Étape 6 — Atteindre son but", + "why": "Si rien ne l'a arrêté, l'adversaire obtient ce qu'il voulait. C'est souvent ici que se joue l'affrontement final, mais il peut aussi arriver trop tard.", + "example": "Le couronnement d'Ysolde au temple. Les personnages ont jusqu'à la fin de la cérémonie pour sauver le prince." + }, + "clock": { + "title": "L'horloge du plan", + "why": "Une horloge de six segments, un par étape, se remplit au fil des séances quand les joueurs n'interviennent pas. Elle est créée dans chaque partie de la campagne, pour que vous voyiez où en est l'adversaire.", + "example": "Entre deux séances, si personne ne l'a gêné, l'adversaire avance d'une étape : on remplit un segment." + }, + "review": { + "title": "Récapitulatif", + "why": "Vérifiez les étapes avant de créer le chapitre. Les scènes ne sont pas reliées entre elles : c'est l'adversaire qui avance, à vous de déclencher chaque étape au bon moment." + } + }, + "fields": { + "title": { + "label": "Nom du plan", + "placeholder": "Ex. : La régence d'Ysolde" + }, + "villain": { + "label": "Qui est l'adversaire ?", + "placeholder": "Son nom et ce qu'il est" + }, + "goal": { + "label": "Que veut-il, qui touche les personnages ?", + "placeholder": "Ce qu'ils possèdent, protègent ou aiment" + }, + "stakes": { + "label": "Ce qui arrive s'il réussit", + "placeholder": "Pour le monde, et pour les personnages" + }, + "objectives": { + "label": "Ce que les joueurs peuvent viser", + "placeholder": "Démasquer, contrecarrer, protéger…" + }, + "step1": { + "name": { + "label": "Nom de l'étape", + "placeholder": "Ex. : Le capitaine remplacé" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "action": { + "label": "Ce que fait l'adversaire", + "placeholder": "Concrètement, et qui cela touche" + }, + "sign": { + "label": "Ce que les joueurs peuvent remarquer et faire", + "placeholder": "La trace laissée, et comment réagir" + } + }, + "step2": { + "name": { + "label": "Nom de l'étape", + "placeholder": "Ex. : Le chambellan acheté" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "action": { + "label": "Ce que fait l'adversaire", + "placeholder": "Concrètement, et qui cela touche" + }, + "sign": { + "label": "Ce que les joueurs peuvent remarquer et faire", + "placeholder": "La trace laissée, et comment réagir" + } + }, + "step3": { + "name": { + "label": "Nom de l'étape", + "placeholder": "Ex. : Les faux marchands" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "action": { + "label": "Ce que fait l'adversaire", + "placeholder": "Concrètement, et qui cela touche" + }, + "sign": { + "label": "Ce que les joueurs peuvent remarquer et faire", + "placeholder": "La trace laissée, et comment réagir" + } + }, + "step4": { + "name": { + "label": "Nom de l'étape", + "placeholder": "Ex. : Le banquet" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "action": { + "label": "Ce que fait l'adversaire", + "placeholder": "Concrètement, et qui cela touche" + }, + "sign": { + "label": "Ce que les joueurs peuvent remarquer et faire", + "placeholder": "La trace laissée, et comment réagir" + } + }, + "step5": { + "name": { + "label": "Nom de l'étape", + "placeholder": "Ex. : Les perquisitions" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "action": { + "label": "Ce que fait l'adversaire", + "placeholder": "Concrètement, et qui cela touche" + }, + "sign": { + "label": "Ce que les joueurs peuvent remarquer et faire", + "placeholder": "La trace laissée, et comment réagir" + } + }, + "step6": { + "name": { + "label": "Nom de l'étape", + "placeholder": "Ex. : Le couronnement" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "action": { + "label": "Ce que fait l'adversaire", + "placeholder": "Concrètement, et qui cela touche" + }, + "sign": { + "label": "Ce que les joueurs peuvent remarquer et faire", + "placeholder": "La trace laissée, et comment réagir" + } + }, + "clockWanted": { + "label": "Créer l'horloge dans les parties ?" + }, + "clockName": { + "label": "Nom de l'horloge", + "placeholder": "Ex. : La régence d'Ysolde" + } + }, + "options": { + "clockWanted": { + "yes": "Oui, une horloge de 6 segments", + "no": "Non, je suivrai le plan moi-même" + }, + "step1": { + "nature": { + "event": "Un événement", + "npc": "Une rencontre avec un PNJ", + "location": "Un lieu", + "encounter": "Un affrontement" + } + }, + "step2": { + "nature": { + "event": "Un événement", + "npc": "Une rencontre avec un PNJ", + "location": "Un lieu", + "encounter": "Un affrontement" + } + }, + "step3": { + "nature": { + "event": "Un événement", + "npc": "Une rencontre avec un PNJ", + "location": "Un lieu", + "encounter": "Un affrontement" + } + }, + "step4": { + "nature": { + "event": "Un événement", + "npc": "Une rencontre avec un PNJ", + "location": "Un lieu", + "encounter": "Un affrontement" + } + }, + "step5": { + "nature": { + "event": "Un événement", + "npc": "Une rencontre avec un PNJ", + "location": "Un lieu", + "encounter": "Un affrontement" + } + }, + "step6": { + "nature": { + "event": "Un événement", + "npc": "Une rencontre avec un PNJ", + "location": "Un lieu", + "encounter": "Un affrontement" + } + } + }, + "defaults": { + "step1": { + "name": "Préparatifs secrets" + }, + "step2": { + "name": "Des alliés achetés" + }, + "step3": { + "name": "Tout est en place" + }, + "step4": { + "name": "Le coup d'éclat" + }, + "step5": { + "name": "La résistance écrasée" + }, + "step6": { + "name": "Le but atteint" + }, + "clockName": "Le plan de l'adversaire" } } }, diff --git a/web/src/assets/i18n/fragments/guided.en.json b/web/src/assets/i18n/fragments/guided.en.json index 5138524..dfec596 100644 --- a/web/src/assets/i18n/fragments/guided.en.json +++ b/web/src/assets/i18n/fragments/guided.en.json @@ -230,6 +230,509 @@ "room5": { "name": "The reward" } + }, + "tagline": "A short adventure in five beats in a single place: a guardian, a challenge, a setback, the climax, the reward." + }, + "chooserTitle": "Write with a guided method", + "chooserIntro": "Pick a structure: the wizard asks you the right questions, step by step, then creates the chapter and its scenes. You write everything; nothing is generated.", + "chooserStart": "Start", + "chooserScenes": "{{count}} scenes", + "reviewClock": "A \"{{name}}\" clock with {{segments}} segments will be created in each playthrough of the campaign.", + "investigation": { + "name": "Node-based investigation", + "tagline": "An investigation that never gets stuck: three leads that cross-reference each other, a conclusion reached by three paths, and a fallback scene if the table stalls.", + "reviewLinks": "The scenes will be linked by {{count}} leads and clues: each lead points to the others and to the conclusion.", + "links": { + "lead": "Lead", + "clue": "Clue", + "proactive": "Fallback" + }, + "steps": { + "placement": { + "title": "Where to put the investigation?", + "why": "The investigation becomes a chapter. Put it in an existing arc or create a new one.", + "example": "An arc \"The season of ashes\" grouping several cases." + }, + "mystery": { + "title": "The mystery", + "why": "Start with the truth: what really happened, who is responsible and why. The players will only learn it at the end, but everything else follows from it: each clue is a trace left by that truth.", + "example": "The notary poisoned his partner to hide a debt and framed the stable boy. If no one stops him, he'll leave town with the inheritance in three days." + }, + "hook": { + "title": "The hook", + "why": "The opening scene starts the case and gives the players several leads to follow, not just one. The more it concerns them directly, the more involved they'll be.", + "example": "The stable boy, a friend of one character, is arrested in front of them. He shouts his innocence and mentions the notary, a burnt letter and a maid who saw everything." + }, + "node1": { + "title": "First lead", + "why": "A lead is a place, a person or an event where the players learn something. Note what they find there: the wizard will link each lead to the two others and to the conclusion.", + "example": "The notary's office: a forged ledger, ashes of a letter in the hearth, and a scribbled address." + }, + "node2": { + "title": "Second lead", + "why": "Vary the sources: if every lead is an interrogation, a table that doesn't like talking will miss everything. A place, a person, an event: each has its own style.", + "example": "The terrified maid who saw the notary leave the room that night. She'll only talk in exchange for protection." + }, + "node3": { + "title": "Third lead", + "why": "This lead points back to the two others: players can start with any of them and still find their way. Think about what could go wrong here.", + "example": "The partner's funeral: the notary gives a speech that's too perfect, and the doctor whispers that the body smelled of almonds." + }, + "conclusion": { + "title": "The conclusion", + "why": "All three leads lead here: if the players miss one, they still arrive. Plan how the truth comes out and what the players can do with it.", + "example": "Faced with the evidence, the notary tries to flee by the docks. The players can arrest him, hand him to the crowd or bargain for the stable boy's release." + }, + "proactive": { + "title": "The fallback", + "why": "If the investigation stalls, this scene comes to the players: the enemy strikes back, a witness comes forward, things get worse. It brings new leads to the three others.", + "example": "One night, someone tries to set fire to the stable where the stable boy sleeps. The arsonist drops a button from the notary's coat." + }, + "review": { + "title": "Summary", + "why": "Check the scenes before creating the chapter. Everything can be edited afterwards, and the editor review will point out what's missing." + } + }, + "fields": { + "title": { + "label": "Name of the investigation", + "placeholder": "E.g. The poisoned inheritance" + }, + "truth": { + "label": "What really happened (GM only)", + "placeholder": "Who, what, why, and what will happen if nobody steps in" + }, + "stakes": { + "label": "What happens if the investigation fails", + "placeholder": "For the world, and for the characters" + }, + "hook": { + "name": { + "label": "Name of the opening scene", + "placeholder": "E.g. The arrest" + }, + "nature": { + "label": "How does the case begin?" + }, + "description": { + "label": "What happens", + "placeholder": "The starting situation, in a few lines" + }, + "clues": { + "label": "The leads it opens", + "placeholder": "What points to each of the three leads" + } + }, + "node1": { + "name": { + "label": "Name of the lead", + "placeholder": "E.g. The notary's office" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "description": { + "label": "What the players find there", + "placeholder": "What there is to see, search, learn" + }, + "clues": { + "label": "Clues and where they lead", + "placeholder": "At least one clue to the conclusion, one to another lead" + }, + "secret": { + "label": "What the GM knows (trap, lie, complication)", + "placeholder": "What can go wrong here" + } + }, + "node2": { + "name": { + "label": "Name of the lead", + "placeholder": "E.g. The maid" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "description": { + "label": "What the players find there", + "placeholder": "What there is to see, search, learn" + }, + "clues": { + "label": "Clues and where they lead", + "placeholder": "At least one clue to the conclusion, one to another lead" + }, + "secret": { + "label": "What the GM knows (trap, lie, complication)", + "placeholder": "What can go wrong here" + } + }, + "node3": { + "name": { + "label": "Name of the lead", + "placeholder": "E.g. The funeral" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "description": { + "label": "What the players find there", + "placeholder": "What there is to see, search, learn" + }, + "clues": { + "label": "Clues and where they lead", + "placeholder": "At least one clue to the conclusion, one to another lead" + }, + "secret": { + "label": "What the GM knows (trap, lie, complication)", + "placeholder": "What can go wrong here" + } + }, + "conclusion": { + "name": { + "label": "Name of the conclusion", + "placeholder": "E.g. Escape by the docks" + }, + "nature": { + "label": "How does the investigation end?" + }, + "description": { + "label": "What happens", + "placeholder": "How the truth comes out" + }, + "choices": { + "label": "What the players can do with it", + "placeholder": "Several outcomes, and their consequences" + } + }, + "proactive": { + "name": { + "label": "Name of the fallback scene", + "placeholder": "E.g. The stable fire" + }, + "description": { + "label": "What the enemy does if the players stall", + "placeholder": "A counter-attack, a witness coming forward, a threat moving on" + }, + "clues": { + "label": "The new leads it brings", + "placeholder": "What points back to the three leads" + } + } + }, + "options": { + "hook": { + "nature": { + "event": "Through an event", + "npc": "Through an encounter" + } + }, + "node1": { + "nature": { + "location": "A place to search", + "npc": "A person to question", + "event": "An event to live through" + } + }, + "node2": { + "nature": { + "location": "A place to search", + "npc": "A person to question", + "event": "An event to live through" + } + }, + "node3": { + "nature": { + "location": "A place to search", + "npc": "A person to question", + "event": "An event to live through" + } + }, + "conclusion": { + "nature": { + "revelation": "A revelation", + "encounter": "A confrontation" + } + } + }, + "defaults": { + "hook": { + "name": "The case begins" + }, + "node1": { + "name": "First lead" + }, + "node2": { + "name": "Second lead" + }, + "node3": { + "name": "Third lead" + }, + "conclusion": { + "name": "The truth comes out" + }, + "proactive": { + "name": "The enemy strikes back" + } + } + }, + "villainPlan": { + "name": "The villain's plan", + "tagline": "An enemy who acts even when the players do nothing: six steps, three hidden then three visible, and a clock to track their progress.", + "steps": { + "placement": { + "title": "Where to put the plan?", + "why": "The plan becomes a chapter whose scenes are events to trigger across sessions. Put it in an existing arc or create a new one.", + "example": "The campaign's main arc, so the threat weighs on everything else." + }, + "villain": { + "title": "The enemy", + "why": "A good enemy wants something the characters own, protect or love: that's what makes the conflict unavoidable. Also say what happens if they succeed.", + "example": "Lady Ysolde, the regent, wants the throne of the young prince the characters swore to protect. If she succeeds, the prince vanishes and the city falls under martial law." + }, + "step1": { + "title": "Step 1 — Prepare in secret", + "why": "The first three steps are hidden: the enemy moves their pieces without showing themselves. Each still leaves a trace that attentive players can notice.", + "example": "Ysolde replaces the guard captain with one of her men. A guard friendly to the characters is transferred without explanation." + }, + "step2": { + "title": "Step 2 — Gain allies", + "why": "Each step brings the enemy closer to their goal and hits a little harder than the last. Think about what directly affects a character.", + "example": "She buys the chamberlain's silence. A character's mentor, who refuses, is accused of theft." + }, + "step3": { + "title": "Step 3 — Set the trap", + "why": "Last hidden step: everything is in place. If the players followed the traces, this is when they can still stop it all.", + "example": "She brings in mercenaries disguised as merchants. An inn the characters frequent fills with armed strangers." + }, + "step4": { + "title": "Step 4 — Strike", + "why": "From here on, the plan becomes visible: the enemy acts openly. Always leave the players a chance to react, even late.", + "example": "The prince falls ill at the banquet. Ysolde announces she will rule alone \"for the good of the realm\"." + }, + "step5": { + "title": "Step 5 — Crush the resistance", + "why": "The enemy goes after those who could stop them, often the characters themselves or their loved ones.", + "example": "The guard raids the characters' allies. A wanted poster bears one of their faces." + }, + "step6": { + "title": "Step 6 — Reach the goal", + "why": "If nothing stopped them, the enemy gets what they wanted. The final confrontation often happens here, but it may also come too late.", + "example": "Ysolde's coronation at the temple. The characters have until the end of the ceremony to save the prince." + }, + "clock": { + "title": "The plan's clock", + "why": "A six-segment clock, one per step, fills across sessions when the players don't intervene. It's created in each playthrough of the campaign, so you can see how far the enemy has got.", + "example": "Between two sessions, if nobody hindered them, the enemy moves one step forward: fill one segment." + }, + "review": { + "title": "Summary", + "why": "Check the steps before creating the chapter. The scenes aren't linked to each other: it's the enemy who moves forward, and you trigger each step at the right time." + } + }, + "fields": { + "title": { + "label": "Name of the plan", + "placeholder": "E.g. Ysolde's regency" + }, + "villain": { + "label": "Who is the enemy?", + "placeholder": "Their name and what they are" + }, + "goal": { + "label": "What do they want that affects the characters?", + "placeholder": "Something they own, protect or love" + }, + "stakes": { + "label": "What happens if they succeed", + "placeholder": "For the world, and for the characters" + }, + "objectives": { + "label": "What the players can aim for", + "placeholder": "Expose, thwart, protect…" + }, + "step1": { + "name": { + "label": "Name of the step", + "placeholder": "E.g. The replaced captain" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "action": { + "label": "What the enemy does", + "placeholder": "Concretely, and who it affects" + }, + "sign": { + "label": "What the players can notice and do", + "placeholder": "The trace left behind, and how to react" + } + }, + "step2": { + "name": { + "label": "Name of the step", + "placeholder": "E.g. The bought chamberlain" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "action": { + "label": "What the enemy does", + "placeholder": "Concretely, and who it affects" + }, + "sign": { + "label": "What the players can notice and do", + "placeholder": "The trace left behind, and how to react" + } + }, + "step3": { + "name": { + "label": "Name of the step", + "placeholder": "E.g. The fake merchants" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "action": { + "label": "What the enemy does", + "placeholder": "Concretely, and who it affects" + }, + "sign": { + "label": "What the players can notice and do", + "placeholder": "The trace left behind, and how to react" + } + }, + "step4": { + "name": { + "label": "Name of the step", + "placeholder": "E.g. The banquet" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "action": { + "label": "What the enemy does", + "placeholder": "Concretely, and who it affects" + }, + "sign": { + "label": "What the players can notice and do", + "placeholder": "The trace left behind, and how to react" + } + }, + "step5": { + "name": { + "label": "Name of the step", + "placeholder": "E.g. The raids" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "action": { + "label": "What the enemy does", + "placeholder": "Concretely, and who it affects" + }, + "sign": { + "label": "What the players can notice and do", + "placeholder": "The trace left behind, and how to react" + } + }, + "step6": { + "name": { + "label": "Name of the step", + "placeholder": "E.g. The coronation" + }, + "nature": { + "label": "What kind of scene is it?" + }, + "action": { + "label": "What the enemy does", + "placeholder": "Concretely, and who it affects" + }, + "sign": { + "label": "What the players can notice and do", + "placeholder": "The trace left behind, and how to react" + } + }, + "clockWanted": { + "label": "Create the clock in the playthroughs?" + }, + "clockName": { + "label": "Name of the clock", + "placeholder": "E.g. Ysolde's regency" + } + }, + "options": { + "clockWanted": { + "yes": "Yes, a 6-segment clock", + "no": "No, I'll track the plan myself" + }, + "step1": { + "nature": { + "event": "An event", + "npc": "An NPC encounter", + "location": "A place", + "encounter": "A fight" + } + }, + "step2": { + "nature": { + "event": "An event", + "npc": "An NPC encounter", + "location": "A place", + "encounter": "A fight" + } + }, + "step3": { + "nature": { + "event": "An event", + "npc": "An NPC encounter", + "location": "A place", + "encounter": "A fight" + } + }, + "step4": { + "nature": { + "event": "An event", + "npc": "An NPC encounter", + "location": "A place", + "encounter": "A fight" + } + }, + "step5": { + "nature": { + "event": "An event", + "npc": "An NPC encounter", + "location": "A place", + "encounter": "A fight" + } + }, + "step6": { + "nature": { + "event": "An event", + "npc": "An NPC encounter", + "location": "A place", + "encounter": "A fight" + } + } + }, + "defaults": { + "step1": { + "name": "Secret preparations" + }, + "step2": { + "name": "Bought allies" + }, + "step3": { + "name": "Everything in place" + }, + "step4": { + "name": "The strike" + }, + "step5": { + "name": "Resistance crushed" + }, + "step6": { + "name": "Goal reached" + }, + "clockName": "The enemy's plan" } } } diff --git a/web/src/assets/i18n/fragments/guided.fr.json b/web/src/assets/i18n/fragments/guided.fr.json index f30033c..c2a951a 100644 --- a/web/src/assets/i18n/fragments/guided.fr.json +++ b/web/src/assets/i18n/fragments/guided.fr.json @@ -230,6 +230,509 @@ "room5": { "name": "La récompense" } + }, + "tagline": "Une aventure courte en cinq temps dans un même lieu : un gardien, une épreuve, un revers, le climax, la récompense." + }, + "chooserTitle": "Écrire avec une méthode guidée", + "chooserIntro": "Choisissez une structure : l'assistant vous pose les bonnes questions, étape par étape, puis crée le chapitre et ses scènes. Vous écrivez tout ; rien n'est généré.", + "chooserStart": "Commencer", + "chooserScenes": "{{count}} scènes", + "reviewClock": "Une horloge « {{name}} » de {{segments}} segments sera créée dans chaque partie de la campagne.", + "investigation": { + "name": "Enquête en nœuds", + "tagline": "Une enquête qui ne se bloque jamais : trois pistes qui se recoupent, une conclusion atteinte par trois chemins, et une scène de relance si la table piétine.", + "reviewLinks": "Les scènes seront reliées entre elles par {{count}} pistes et indices : chaque piste mène aux autres et à la conclusion.", + "links": { + "lead": "Piste", + "clue": "Indice", + "proactive": "Relance" + }, + "steps": { + "placement": { + "title": "Où ranger l'enquête ?", + "why": "L'enquête devient un chapitre. Rangez-la dans un arc existant ou créez-en un nouveau.", + "example": "Un arc « La saison des cendres » qui regroupe plusieurs affaires." + }, + "mystery": { + "title": "Le mystère", + "why": "Commencez par la vérité : ce qui s'est réellement passé, qui en est responsable et pourquoi. Les joueurs ne la connaîtront qu'à la fin, mais tout le reste en découle : chaque indice est une trace laissée par cette vérité.", + "example": "Le notaire a empoisonné son associé pour cacher une dette ; il a fait accuser le palefrenier. Si personne ne l'arrête, il quittera la ville avec l'héritage dans trois jours." + }, + "hook": { + "title": "L'accroche", + "why": "La scène d'ouverture lance l'affaire et donne aux joueurs plusieurs pistes à suivre, pas une seule. Plus elle les concerne directement, plus ils s'investiront.", + "example": "Le palefrenier, ami d'un des personnages, est arrêté sous leurs yeux. Il crie son innocence et parle du notaire, d'une lettre brûlée et d'une servante qui a tout vu." + }, + "node1": { + "title": "Première piste", + "why": "Une piste est un lieu, une personne ou un événement où les joueurs apprennent quelque chose. Notez ce qu'ils y trouvent : l'assistant reliera chaque piste aux deux autres et à la conclusion.", + "example": "Le bureau du notaire : un registre falsifié, des cendres de lettre dans l'âtre, et une adresse griffonnée." + }, + "node2": { + "title": "Deuxième piste", + "why": "Variez les sources : si toutes les pistes sont des interrogatoires, une table qui n'aime pas parler passera à côté de tout. Un lieu, une personne, un événement : chacun son style.", + "example": "La servante, terrifiée, qui a vu le notaire sortir de la chambre ce soir-là. Elle ne parlera qu'en échange d'une protection." + }, + "node3": { + "title": "Troisième piste", + "why": "Cette piste ramène aux deux autres : les joueurs peuvent commencer par n'importe laquelle et retrouver leur chemin. Pensez à ce qui pourrait mal tourner ici.", + "example": "L'enterrement de l'associé : le notaire y fait un discours trop parfait, et le médecin murmure que le corps sentait l'amande." + }, + "conclusion": { + "title": "La conclusion", + "why": "Chacune des trois pistes y mène : si les joueurs en ratent une, ils arrivent quand même ici. Prévoyez comment la vérité éclate et ce que les joueurs peuvent en faire.", + "example": "Confronté aux preuves, le notaire tente de fuir par les quais. Les joueurs peuvent l'arrêter, le livrer à la foule ou négocier la libération du palefrenier." + }, + "proactive": { + "title": "La relance", + "why": "Si l'enquête piétine, cette scène vient aux joueurs : l'adversaire riposte, un témoin se manifeste, la situation empire. Elle apporte de nouvelles pistes vers les trois autres.", + "example": "Une nuit, on tente d'incendier l'écurie où dort le palefrenier libéré sous caution. L'incendiaire laisse tomber un bouton de manteau du notaire." + }, + "review": { + "title": "Récapitulatif", + "why": "Vérifiez les scènes avant de créer le chapitre. Tout reste modifiable ensuite, et la relecture vous signalera ce qui manque." + } + }, + "fields": { + "title": { + "label": "Nom de l'enquête", + "placeholder": "Ex. : L'héritage empoisonné" + }, + "truth": { + "label": "Ce qui s'est vraiment passé (réservé au MJ)", + "placeholder": "Qui, quoi, pourquoi, et ce qui arrivera si personne n'intervient" + }, + "stakes": { + "label": "Ce qui se passe si l'enquête échoue", + "placeholder": "Pour le monde, et pour les personnages" + }, + "hook": { + "name": { + "label": "Nom de la scène d'ouverture", + "placeholder": "Ex. : L'arrestation" + }, + "nature": { + "label": "Comment l'affaire commence-t-elle ?" + }, + "description": { + "label": "Ce qui se passe", + "placeholder": "La situation de départ, en quelques lignes" + }, + "clues": { + "label": "Les pistes qu'elle ouvre", + "placeholder": "Ce qui pousse vers chacune des trois pistes" + } + }, + "node1": { + "name": { + "label": "Nom de la piste", + "placeholder": "Ex. : Le bureau du notaire" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "description": { + "label": "Ce que les joueurs y trouvent", + "placeholder": "Ce qu'il y a à voir, à fouiller, à apprendre" + }, + "clues": { + "label": "Indices et où ils mènent", + "placeholder": "Au moins un indice vers la conclusion, un vers une autre piste" + }, + "secret": { + "label": "Ce que le MJ sait (piège, mensonge, complication)", + "placeholder": "Ce qui peut mal tourner ici" + } + }, + "node2": { + "name": { + "label": "Nom de la piste", + "placeholder": "Ex. : La servante" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "description": { + "label": "Ce que les joueurs y trouvent", + "placeholder": "Ce qu'il y a à voir, à fouiller, à apprendre" + }, + "clues": { + "label": "Indices et où ils mènent", + "placeholder": "Au moins un indice vers la conclusion, un vers une autre piste" + }, + "secret": { + "label": "Ce que le MJ sait (piège, mensonge, complication)", + "placeholder": "Ce qui peut mal tourner ici" + } + }, + "node3": { + "name": { + "label": "Nom de la piste", + "placeholder": "Ex. : L'enterrement" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "description": { + "label": "Ce que les joueurs y trouvent", + "placeholder": "Ce qu'il y a à voir, à fouiller, à apprendre" + }, + "clues": { + "label": "Indices et où ils mènent", + "placeholder": "Au moins un indice vers la conclusion, un vers une autre piste" + }, + "secret": { + "label": "Ce que le MJ sait (piège, mensonge, complication)", + "placeholder": "Ce qui peut mal tourner ici" + } + }, + "conclusion": { + "name": { + "label": "Nom de la conclusion", + "placeholder": "Ex. : La fuite par les quais" + }, + "nature": { + "label": "Comment l'enquête se conclut-elle ?" + }, + "description": { + "label": "Ce qui se passe", + "placeholder": "Comment la vérité éclate" + }, + "choices": { + "label": "Ce que les joueurs peuvent en faire", + "placeholder": "Plusieurs issues, et leurs conséquences" + } + }, + "proactive": { + "name": { + "label": "Nom de la scène de relance", + "placeholder": "Ex. : L'incendie de l'écurie" + }, + "description": { + "label": "Ce que fait l'adversaire si les joueurs piétinent", + "placeholder": "Une riposte, un témoin qui se manifeste, une menace qui avance" + }, + "clues": { + "label": "Les nouvelles pistes qu'elle apporte", + "placeholder": "Ce qui renvoie vers les trois pistes" + } + } + }, + "options": { + "hook": { + "nature": { + "event": "Par un événement", + "npc": "Par une rencontre" + } + }, + "node1": { + "nature": { + "location": "Un lieu à fouiller", + "npc": "Une personne à interroger", + "event": "Un événement à vivre" + } + }, + "node2": { + "nature": { + "location": "Un lieu à fouiller", + "npc": "Une personne à interroger", + "event": "Un événement à vivre" + } + }, + "node3": { + "nature": { + "location": "Un lieu à fouiller", + "npc": "Une personne à interroger", + "event": "Un événement à vivre" + } + }, + "conclusion": { + "nature": { + "revelation": "Une révélation", + "encounter": "Une confrontation" + } + } + }, + "defaults": { + "hook": { + "name": "L'affaire commence" + }, + "node1": { + "name": "Première piste" + }, + "node2": { + "name": "Deuxième piste" + }, + "node3": { + "name": "Troisième piste" + }, + "conclusion": { + "name": "La vérité éclate" + }, + "proactive": { + "name": "L'adversaire riposte" + } + } + }, + "villainPlan": { + "name": "Plan du méchant", + "tagline": "Un adversaire qui agit même quand les joueurs ne font rien : six étapes, trois discrètes puis trois visibles, et une horloge pour suivre sa progression.", + "steps": { + "placement": { + "title": "Où ranger le plan ?", + "why": "Le plan devient un chapitre dont les scènes sont des événements à déclencher au fil des séances. Rangez-le dans un arc existant ou créez-en un nouveau.", + "example": "L'arc principal de la campagne, pour que la menace pèse sur tout le reste." + }, + "villain": { + "title": "L'adversaire", + "why": "Un bon adversaire veut quelque chose que les personnages possèdent, protègent ou aiment : c'est ce qui rend l'affrontement inévitable. Dites aussi ce qui arrive s'il réussit.", + "example": "Dame Ysolde, régente, veut le trône du jeune prince que les personnages ont juré de protéger. Si elle réussit, le prince disparaît et la ville tombe sous la loi martiale." + }, + "step1": { + "title": "Étape 1 — Se préparer en secret", + "why": "Les trois premières étapes sont discrètes : l'adversaire avance ses pions sans se montrer. Chacune laisse pourtant une trace que des joueurs attentifs peuvent remarquer.", + "example": "Ysolde fait remplacer le capitaine de la garde par un homme à elle. Un garde ami des personnages est muté sans explication." + }, + "step2": { + "title": "Étape 2 — Gagner des alliés", + "why": "Chaque étape le rapproche de son but et frappe un peu plus fort que la précédente. Pensez à ce qui touche directement un personnage.", + "example": "Elle achète le silence du chambellan. Le mentor d'un personnage, qui refuse, est accusé de vol." + }, + "step3": { + "title": "Étape 3 — Préparer le coup", + "why": "Dernière étape discrète : tout est en place. Si les joueurs ont suivi les traces, c'est le moment où ils peuvent encore tout empêcher.", + "example": "Elle fait venir des mercenaires déguisés en marchands. Une auberge que fréquentent les personnages se remplit d'étrangers armés." + }, + "step4": { + "title": "Étape 4 — Frapper", + "why": "À partir d'ici, le plan devient visible : l'adversaire agit au grand jour. Laissez toujours aux joueurs une occasion de réagir, même tard.", + "example": "Le prince tombe malade au banquet. Ysolde annonce qu'elle gouvernera seule « pour le bien du royaume »." + }, + "step5": { + "title": "Étape 5 — Écraser la résistance", + "why": "L'adversaire s'en prend à ceux qui pourraient l'arrêter, souvent les personnages eux-mêmes ou leurs proches.", + "example": "La garde perquisitionne chez les alliés des personnages. Un avis de recherche porte le visage de l'un d'eux." + }, + "step6": { + "title": "Étape 6 — Atteindre son but", + "why": "Si rien ne l'a arrêté, l'adversaire obtient ce qu'il voulait. C'est souvent ici que se joue l'affrontement final, mais il peut aussi arriver trop tard.", + "example": "Le couronnement d'Ysolde au temple. Les personnages ont jusqu'à la fin de la cérémonie pour sauver le prince." + }, + "clock": { + "title": "L'horloge du plan", + "why": "Une horloge de six segments, un par étape, se remplit au fil des séances quand les joueurs n'interviennent pas. Elle est créée dans chaque partie de la campagne, pour que vous voyiez où en est l'adversaire.", + "example": "Entre deux séances, si personne ne l'a gêné, l'adversaire avance d'une étape : on remplit un segment." + }, + "review": { + "title": "Récapitulatif", + "why": "Vérifiez les étapes avant de créer le chapitre. Les scènes ne sont pas reliées entre elles : c'est l'adversaire qui avance, à vous de déclencher chaque étape au bon moment." + } + }, + "fields": { + "title": { + "label": "Nom du plan", + "placeholder": "Ex. : La régence d'Ysolde" + }, + "villain": { + "label": "Qui est l'adversaire ?", + "placeholder": "Son nom et ce qu'il est" + }, + "goal": { + "label": "Que veut-il, qui touche les personnages ?", + "placeholder": "Ce qu'ils possèdent, protègent ou aiment" + }, + "stakes": { + "label": "Ce qui arrive s'il réussit", + "placeholder": "Pour le monde, et pour les personnages" + }, + "objectives": { + "label": "Ce que les joueurs peuvent viser", + "placeholder": "Démasquer, contrecarrer, protéger…" + }, + "step1": { + "name": { + "label": "Nom de l'étape", + "placeholder": "Ex. : Le capitaine remplacé" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "action": { + "label": "Ce que fait l'adversaire", + "placeholder": "Concrètement, et qui cela touche" + }, + "sign": { + "label": "Ce que les joueurs peuvent remarquer et faire", + "placeholder": "La trace laissée, et comment réagir" + } + }, + "step2": { + "name": { + "label": "Nom de l'étape", + "placeholder": "Ex. : Le chambellan acheté" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "action": { + "label": "Ce que fait l'adversaire", + "placeholder": "Concrètement, et qui cela touche" + }, + "sign": { + "label": "Ce que les joueurs peuvent remarquer et faire", + "placeholder": "La trace laissée, et comment réagir" + } + }, + "step3": { + "name": { + "label": "Nom de l'étape", + "placeholder": "Ex. : Les faux marchands" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "action": { + "label": "Ce que fait l'adversaire", + "placeholder": "Concrètement, et qui cela touche" + }, + "sign": { + "label": "Ce que les joueurs peuvent remarquer et faire", + "placeholder": "La trace laissée, et comment réagir" + } + }, + "step4": { + "name": { + "label": "Nom de l'étape", + "placeholder": "Ex. : Le banquet" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "action": { + "label": "Ce que fait l'adversaire", + "placeholder": "Concrètement, et qui cela touche" + }, + "sign": { + "label": "Ce que les joueurs peuvent remarquer et faire", + "placeholder": "La trace laissée, et comment réagir" + } + }, + "step5": { + "name": { + "label": "Nom de l'étape", + "placeholder": "Ex. : Les perquisitions" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "action": { + "label": "Ce que fait l'adversaire", + "placeholder": "Concrètement, et qui cela touche" + }, + "sign": { + "label": "Ce que les joueurs peuvent remarquer et faire", + "placeholder": "La trace laissée, et comment réagir" + } + }, + "step6": { + "name": { + "label": "Nom de l'étape", + "placeholder": "Ex. : Le couronnement" + }, + "nature": { + "label": "De quel genre de scène s'agit-il ?" + }, + "action": { + "label": "Ce que fait l'adversaire", + "placeholder": "Concrètement, et qui cela touche" + }, + "sign": { + "label": "Ce que les joueurs peuvent remarquer et faire", + "placeholder": "La trace laissée, et comment réagir" + } + }, + "clockWanted": { + "label": "Créer l'horloge dans les parties ?" + }, + "clockName": { + "label": "Nom de l'horloge", + "placeholder": "Ex. : La régence d'Ysolde" + } + }, + "options": { + "clockWanted": { + "yes": "Oui, une horloge de 6 segments", + "no": "Non, je suivrai le plan moi-même" + }, + "step1": { + "nature": { + "event": "Un événement", + "npc": "Une rencontre avec un PNJ", + "location": "Un lieu", + "encounter": "Un affrontement" + } + }, + "step2": { + "nature": { + "event": "Un événement", + "npc": "Une rencontre avec un PNJ", + "location": "Un lieu", + "encounter": "Un affrontement" + } + }, + "step3": { + "nature": { + "event": "Un événement", + "npc": "Une rencontre avec un PNJ", + "location": "Un lieu", + "encounter": "Un affrontement" + } + }, + "step4": { + "nature": { + "event": "Un événement", + "npc": "Une rencontre avec un PNJ", + "location": "Un lieu", + "encounter": "Un affrontement" + } + }, + "step5": { + "nature": { + "event": "Un événement", + "npc": "Une rencontre avec un PNJ", + "location": "Un lieu", + "encounter": "Un affrontement" + } + }, + "step6": { + "nature": { + "event": "Un événement", + "npc": "Une rencontre avec un PNJ", + "location": "Un lieu", + "encounter": "Un affrontement" + } + } + }, + "defaults": { + "step1": { + "name": "Préparatifs secrets" + }, + "step2": { + "name": "Des alliés achetés" + }, + "step3": { + "name": "Tout est en place" + }, + "step4": { + "name": "Le coup d'éclat" + }, + "step5": { + "name": "La résistance écrasée" + }, + "step6": { + "name": "Le but atteint" + }, + "clockName": "Le plan de l'adversaire" } } }