%Ver. 0.1 '01/3/8
%Ver. 1.0 '01/3/18  : 感想欄など追加
%Ver. 1.2 '01/3/19  : Goal欄追加

\typeout{`Session Management'}
\def\width{175}
\def\height{290}
\topmargin      = -50mm
\oddsidemargin  = 0mm
\evensidemargin = 0mm
\textwidth      = \width mm
\textheight     = \height mm
\unitlength     = 1mm
\pagestyle{empty}

\def\OuterFrameWidth{\width}
\def\OuterFrameHeight{\height}
\def\HeadWidth{\width}
\def\HeadHeight{14}
\def\HeadFrameTop{290}
\def\HeadFrameBottom{276}
\def\HeadFrameRight{\HeadWidth}
\def\ScenarioTitlePosX{0}
\def\ScenarioTitlePosY{284}
\def\ScenarioTitleBarY{283}
\def\SceneTitlePosX{0}
\def\SceneTitlePosY{277}
\def\SceneTitleBarY{276}

\def\GoalWidth{\width}
\def\GoalHeight{7}
\def\GoalFrameTop{275}
\def\GoalFrameBottom{268}
\def\GoalFrameRight{\GoalWidth}
\def\GoalPosX{0}
\def\GoalPosY{269}

\def\ContentWidth{\width}
\def\ContentHeight{72}
\def\ContentBoxWidth{163mm}
\def\ContentTitlePosX{0}
\def\ContentTitlePosY{261}
\def\ContentFrameTop{267}
\def\ContentFrameBottom{195}
\def\ContentFrameRight{\ContentWidth}
\def\ContentBoxJump{65mm}

\def\NPCWidth{\width}
\def\NPCHeight{60}
\def\NPCBoxWidth{163mm}
\def\NPCTitlePosX{0}
\def\NPCTitlePosY{188}
\def\NPCDescBoxWidth{115mm}
\def\NPCBoxJump{50mm}
\def\NPCFrameTop{194}
\def\NPCFrameBottom{134}
\def\NPCFrameRight{\NPCWidth}

\def\CheckListWidth{\width}
\def\CheckListHeight{60}
\def\CheckListBoxWidth{163mm}
\def\CheckListTitlePosX{0}
\def\CheckListTitlePosY{127}
\def\CheckListCheckBoxWidth{4}
\def\CheckListCheckBoxHeight{4}
\def\CheckListItemWidth{90mm}
\def\CheckListFrameTop{133}
\def\CheckListFrameBottom{73}
\def\CheckListFrameRight{\CheckListWidth}

\def\MemoWidth{\width}
\def\MemoHeight{72}
\def\MemoTitlePosX{0}
\def\MemoTitlePosY{66}
\def\MemoFrameTop{72}
\def\MemoFrameBottom{0}
\def\MemoFrameRight{\MemoWidth}

\def\ImpressionFrameTop{275}
\def\ImpressionFrameBottom{134}
\def\ImpressionFrameRight{\width}
\def\ImpressionTitlePosX{0}
\def\ImpressionTitlePosY{269}

\def\ImprovementFrameTop{133}
\def\ImprovementFrameRight{\width}
\def\ImprovementTitlePosX{0}
\def\ImprovementTitlePosY{127}

\def\@ScenarioName{}
\def\@SystemName{}
\def\@Date{}
\def\@Author{}
\def\scenario#1{\def\@ScenarioName{#1}}
\def\system#1{\def\@SystemName{#1}}
\def\date#1{\def\@Date{#1}}
\def\author#1{\def\@Author{#1}}


\def\maketitle{
  \vspace*{5cm}
  \begin{picture}(100,100)
    \put(0,90){\makebox(\width,10){\Huge\gt\bf \@ScenarioName}}
    \put(0,80){\makebox(\width,10){\Large\gt\bf Scenario for \@SystemName}}
    \put(0,70){\makebox(\width,10){\Large\gt\bf Author: \@Author}}
    \put(0,60){\makebox(\width,10){\Large\gt\bf Date: \@Date}}
  \end{picture}
  \setcounter{page}{0}
  \newpage
}


\def\scene#1{
  \def\@SceneName{#1}
  \begin{picture}(\OuterFrameWidth,\OuterFrameHeight)

    % mark
    \put(0,290){\makebox(\width,5)[cr]{Session Management Sheet V. 1.2, (C) KUZU Production, 2001}}

    % Header
    \put(0,\HeadFrameTop){\line(1,0){\HeadWidth}}
    \put(0,\HeadFrameBottom){\line(1,0){\HeadWidth}}
    \put(0,\HeadFrameBottom){\line(0,1){\HeadHeight}}
    \put(\HeadFrameRight,\HeadFrameBottom){\line(0,1){\HeadHeight}}
    \put(\ScenarioTitlePosX,\ScenarioTitlePosY){ \makebox(25,5)[cl]{\Large\bf\gt Scenario: \@ScenarioName}}
    \put(0,\ScenarioTitleBarY){\line(1,0){\HeadWidth}}
    \put(\SceneTitlePosX,\SceneTitlePosY){ \makebox(165,5)[cl]{\Large\bf\gt Scene: \@SceneName \hfill \mc\rm\thepage}}

    % Goal
    \put(0,\GoalFrameTop){\line(1,0){\GoalWidth}}
    \put(0,\GoalFrameBottom){\line(1,0){\GoalWidth}}
    \put(0,\GoalFrameBottom){\line(0,1){\GoalHeight}}
    \put(\GoalFrameRight,\GoalFrameBottom){\line(0,1){\GoalHeight}}
    \put(\GoalPosX,\GoalPosY){ \makebox(\GoalWidth,5)[cl]{\Large\bf\gt Goal: }}

    % Content
    \put(0,\ContentFrameTop){\line(1,0){\ContentWidth}}
    \put(0,\ContentFrameBottom){\line(1,0){\ContentWidth}}
    \put(0,\ContentFrameBottom){\line(0,1){\ContentHeight}}
    \put(\ContentFrameRight,\ContentFrameBottom){\line(0,1){\ContentHeight}}
    \put(\ContentTitlePosX,\ContentTitlePosY){\makebox(25,5)[cl]{ \Large\bf\gt 内容:}}

    % NPC List
    \put(0,\NPCFrameTop){\line(1,0){\NPCWidth}}
    \put(0,\NPCFrameBottom){\line(1,0){\NPCWidth}}
    \put(0,\NPCFrameBottom){\line(0,1){\NPCHeight}}
    \put(\NPCFrameRight,\NPCFrameBottom){\line(0,1){\NPCHeight}}
    \put(\NPCTitlePosX,\NPCTitlePosY){\hspace*{2em} \makebox(80,5)[cl]{\hspace*{-2em}\Large\bf\gt NPC:}}

    % Check List
    \put(0,\CheckListFrameTop){\line(1,0){\CheckListWidth}}
    \put(0,\CheckListFrameBottom){\line(1,0){\CheckListWidth}}
    \put(0,\CheckListFrameBottom){\line(0,1){\CheckListHeight}}
    \put(\CheckListFrameRight,\CheckListFrameBottom){\line(0,1){\CheckListHeight}}
    \put(\CheckListTitlePosX,\CheckListTitlePosY){\hspace*{2em} \makebox(80,5)[cl]{\hspace*{-2em}\Large\bf\gt チェック・リスト:}}

    % Memo
    \put(0,\MemoFrameTop){\line(1,0){\MemoWidth}}
    \put(0,\MemoFrameBottom){\line(1,0){\MemoWidth}}
    \put(0,\MemoFrameBottom){\line(0,1){\MemoHeight}}
    \put(\MemoFrameRight,\MemoFrameBottom){\line(0,1){\MemoHeight}}
    \put(\MemoTitlePosX,\MemoTitlePosY){\hspace*{2em} \makebox(80,5)[cl]{\hspace*{-2em}\Large\bf\gt メモ:}}
  \end{picture}\vspace{-290mm}

}
\def\endscene{
  \newpage
}

\def\goal#1{
  \vspace*{15mm}
  \hspace*{15mm}
  {\Large \gt \bf #1}

  \vspace*{-20mm}
}

\def\content{
  \vspace*{27mm}
  \hspace*{0.5cm}
  \begin{minipage}[t]{\ContentBoxWidth}
    \baselineskip=0.8\baselineskip
    \parindent=0.5cm
}

\def\endcontent{
  \end{minipage}
  \begin{minipage}[t]{6mm}
    \vspace*{\ContentBoxJump} 　
  \end{minipage}

\vspace*{-98mm}

}

\def\npc{
 \vspace*{100mm} 
  \hspace*{0.5cm}
  \begin{minipage}[t]{\NPCBoxWidth}

}

\def\endnpc{
  \end{minipage}
  \begin{minipage}[t]{6mm}
    \vspace*{\NPCBoxJump}
  \end{minipage}

\vspace*{-152mm}

}
\def\npcitem#1#2{
    #1 \hfill
    \begin{minipage}[t]{\NPCDescBoxWidth}
      \baselineskip=0.7\baselineskip
      #2
    \end{minipage}
}

\def\checklist{
  \vspace*{161mm}
  \hspace*{0.5cm}
  \begin{minipage}[t]{\CheckListBoxWidth}
}

\def\endchecklist{
  \end{minipage}\\
}
\def\clitem#1{
  \framebox(\CheckListCheckBoxWidth,\CheckListCheckBoxHeight){ } 
    \begin{minipage}[t]{\CheckListItemWidth}
      \baselineskip=0.7\baselineskip
      #1
    \end{minipage}
  \hfill
  \underline{\hspace{5cm}}\\
}

\let\enddocumentorg=\enddocument
\def\enddocument{
  \begin{picture}(\OuterFrameWidth,\OuterFrameHeight)

    % mark
    \put(0,290){\makebox(\width,5)[cr]{Session Management Sheet V. 1.2, (C) KUZU Production, 2001}}

    % Header
    \put(0,\HeadFrameTop){\line(1,0){\HeadWidth}}
    \put(0,\HeadFrameBottom){\line(1,0){\HeadWidth}}
    \put(0,\HeadFrameBottom){\line(0,1){\HeadHeight}}
    \put(\HeadFrameRight,\HeadFrameBottom){\line(0,1){\HeadHeight}}
    \put(\ScenarioTitlePosX,\ScenarioTitlePosY){ \makebox(25,5)[cl]{\Large\bf\gt Scenario: \@ScenarioName}}
    \put(0,\ScenarioTitleBarY){\line(1,0){\HeadWidth}}
    \put(\SceneTitlePosX,\SceneTitlePosY){ \makebox(165,5)[cl]{\Large\bf\gt Scene: 感想など \hfill \mc\rm\thepage}}

    % 感想
    \put(0,\ImpressionFrameTop){\line(1,0){\ContentWidth}}
    \put(0,\ImpressionFrameBottom){\line(1,0){\ContentWidth}}
    \put(0,\ImpressionFrameBottom){\line(0,1){141}}
    \put(\ImpressionFrameRight,\ImpressionFrameBottom){\line(0,1){141}}
    \put(\ImpressionTitlePosX,\ImpressionTitlePosY){\makebox(25,5)[cl]{ \Large\bf\gt 感想:}}


    % 改善点
    \put(0,\ImprovementFrameTop){\line(1,0){\CheckListWidth}}
    \put(0,0){\line(1,0){\CheckListWidth}}
    \put(0,0){\line(0,1){133}}
    \put(\ImprovementFrameRight,0){\line(0,1){133}}
    \put(\ImprovementTitlePosX,\ImprovementTitlePosY){\hspace*{2em} \makebox(80,5)[cl]{\hspace*{-2em}\Large\bf\gt 改善点:}}

  \end{picture}

\enddocumentorg
}

\endinput