From 36035b749d4d4661dd5a32c204cd09c9e4913402 Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Wed, 8 May 2024 04:23:56 +0200 Subject: [PATCH] set name globally --- layout.sty | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layout.sty b/layout.sty index 940f95dc..e45082a3 100644 --- a/layout.sty +++ b/layout.sty @@ -828,9 +828,13 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west) \newcommand{\mannerism}{} \newcommand{\npcGoal}{} \newcommand{\npcsymbol}{\adfast{\value{r4}}} -\newcommand{\npc}[2]{\settoggle{personality}{false}\renewcommand{\name}{#2}\renewcommand{\npcsymbol}{#1}} +\newcommand{\npc}[2]{% + \global\def\name{#2}% + \renewcommand{\npcsymbol}{#1}% +} + \newcommand{\NPC}[5]{% - \renewcommand{\name}{#2}% + \global\def\name{#2}% \renewcommand{\npcsymbol}{#1}% \settoggle{personality}{true}% \renewcommand{\NPCdescription}{#3}% -- GitLab