# 会話の台本 / the dialogue script (format: games/rpg/src/dialogue.hh)
# 人や看板は、マップの物の say=<label> でここの @label を指す / people and signs point to an @label here with say=<label>
# 筋書き（クエスト）の印 / the quest's flags:
#   quest_started  村長の頼みを引き受けた / accepted the elder's request
#   quest_done     薬草を渡して鍵をもらった / gave the herb, got the key
#   gate_open      庭の門を開けた（野原のマップで門が消える） / opened the garden gate (the gate disappears from the field)

# ---------------------------------------------------------------- 村長 / the elder (village square)
@elder
if flag quest_done elder_after
if item herb elder_thanks
if flag quest_started elder_waiting
name 村長 | Elder
ja おお、よく来たのう。わしはこの村の村長じゃ。
en Ah, welcome, welcome. I am the elder of this village.
ja 実は腰を痛めてしまってな。東の野原に生える薬草があれば、よく効く薬が作れるんじゃが……。
en You see, I have hurt my back. With a healing herb from the field to the east, I could make a good medicine...
ja 薬草をとってきてくれんかのう？
en Would you fetch me a healing herb?
choice はい | Yes -> elder_yes
choice いいえ | No -> elder_no

@elder_yes
set quest_started
name 村長 | Elder
ja ありがたい！ 薬草は野原の池のそばに生えておる。村の東の出口から行けるぞ。
en Thank you! The herb grows beside the pond in the field. Take the east exit of the village.

@elder_no
name 村長 | Elder
ja そうか……。気が変わったら、また声をかけておくれ。
en I see... If you change your mind, come and talk to me again.

@elder_waiting
name 村長 | Elder
ja 薬草は野原の池のそばじゃ。東の出口から行けるぞ。
en The herb grows beside the pond in the field. The east exit leads there.

@elder_thanks
take herb
give key
set quest_done
name 村長 | Elder
ja おお、これじゃこれじゃ！ ありがとう、助かったわい。
en Oh, that is the one! Thank you, you have saved me.
ja お礼にこの古い鍵をやろう。野原の庭の門の鍵じゃよ。
en Take this old key as thanks. It opens the garden gate in the field.
name -
ja 古い鍵を手に入れた！
en You found: Old key!

@elder_after
name 村長 | Elder
ja 薬のおかげで、腰がずいぶん楽になったわい。
en Thanks to the medicine, my back feels much better.
if flag gate_open elder_end
ja 庭の門は、もう開けてみたかの？
en Have you tried the garden gate yet?

@elder_end
name 村長 | Elder
ja その剣は昔の村長のものじゃ。大事に使うのじゃぞ。
en That sword belonged to the old elder. Use it well.

# ---------------------------------------------------------------- ミナ / Mina (village, east of the bridge)
@girl
if flag quest_done girl_after
name ミナ | Mina
ja ねえねえ、野原には大きな池があるんだよ。
en Hey, hey! There is a big pond in the field.
ja 池のまわりには、いろんな草が生えてるの。
en All kinds of plants grow around it.

@girl_after
name ミナ | Mina
ja 村長さん、元気になったんだって！ よかったね！
en I heard the elder feels better! Hooray!

# ---------------------------------------------------------------- お母さん / Mom (home)
@mother
if flag quest_done mother_after
if flag quest_started mother_started
name お母さん | Mom
ja おはよう。今日もいい天気ね。
en Good morning. Another lovely day.
ja 村長さんが何か困っているみたいよ。広場の井戸のそばにいるわ。
en The elder seems to be in some trouble. He is by the well in the square.

@mother_started
name お母さん | Mom
ja 薬草を探しに行くの？ 気をつけてね。
en Off to find a herb? Be careful.
ja 宝箱のパンを持っていきなさい。
en Take the bread from the chest with you.

@mother_after
name お母さん | Mom
ja えらいわね！ 村長さんもとても喜んでいたわ。
en Well done! The elder was so happy.

# ---------------------------------------------------------------- 農夫 / the farmer (field)
@farmer
if flag gate_open farmer_after
name 農夫 | Farmer
ja あの柵の庭は、昔の村長さんの庭でね。門には鍵がかかってるんだ。
en That fenced garden belonged to the old elder. The gate is locked.
ja 鍵は今の村長さんが持ってるはずだよ。
en The elder should have the key.

@farmer_after
name 農夫 | Farmer
ja おや、門を開けたのかい。中の宝箱には何が入ってた？
en Oh, you opened the gate? What was in the chest?

# ---------------------------------------------------------------- 門・看板・扉 / the gate, signs, doors
@gate
if item key gate_unlock
ja 門には鍵がかかっている。
en The gate is locked.

@gate_unlock
take key
set gate_open
ja 古い鍵で門を開けた！
en You unlocked the gate with the old key!

@sign_elder
ja 「村長の家」
en "The Elder's House"

@sign_pond
ja 「池で泳がないこと」
en "No swimming in the pond."

@sign_field
ja 「この先、昔の村長の庭」
en "Ahead: the old elder's garden"

@locked_door
ja 鍵がかかっている。
en It is locked.
