0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Skyrimの恋愛サブクエストをPythonで書いてみた

Posted at

〜エンジニア、Riverwoodで心を失う〜

Skyrimには、カミラ・ヴァレリウスをめぐる 三角関係サブクエスト が存在します。

登場人物:

  • Faendal(弓の達人。真面目)
  • Sven(吟遊詩人。イケボだけど嘘つき)
  • Camilla(Riverwood Trader の看板娘)

この微妙な恋模様を、Pythonで try / except / else / finally 構文に落とし込んでみました。

💻 実装コード

import riverwoodTrader

try:
    write_a_Letter(camilla)
except dragonborn_comming:
    deceived(sven)
else:
    found(faendal)
finally:
    thuum(f"Fus Ro Dah! {sven}")

🧠 各構文のSkyrim的解釈

Python構文 Skyrimでの意味
import riverwoodTrader カミラの店に通い始める(物語の始まり)
try: 手紙を書いて想いを伝えようとする
write_a_Letter(camilla) 告白タイム
except dragonborn_comming: 突如現れる主人公(ドヴァーキン)がイベントをかき乱す
deceived(sven) スヴェンがファエンダルを陥れるための嘘をつく
else: 嘘が通らず、真実が伝わる場合
found(faendal) ファエンダルルートで平和な恋模様が成立
finally: 最終的に吹っ飛ばされるのは…
thuum(f"Fus Ro Dah! {sven}") スヴェン、退場。感情的にも物理的にも。

なお、実行してもSkyrimは起動しません。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?