I will inspect the existing files in the project to understand the layout and structure before building our Character Flavor Text & Skill Builder Tool.
I will read package.json to check what icons and UI libraries are installed.
I will install lucide-react so we have icons for special effects (Evasion, Damage Reduction, Multi-Hit, Critical Hit, Poison), status attributes, order rearrangement, and UI controls.
I will read src/index.css and index.html to see the base styling and fonts.
I will check index.html to see the current page title and head tags.
I will update the title in index.html to reflect our Character Flavor & Skill Text Crafting Studio.
I will update src/index.css with styling for RPG cards, rarity glow effects, custom scrollbars, and animated card transitions.
I will create src/types/character.ts containing the TypeScript types for characters, skill steps, special effects (Evasion, Damage Reduction, Multi-Hit, Critical, Poison), skill types (Passive + 3 varied-cost active skills), and calculated maximum stats.
I will create src/utils/skillTextGenerator.ts which automatically generates dynamic, grammatically coherent skill and flavor text based on the internal step calculation order. Reordering steps changes sentence layout, connecting clauses, and strategic flavor descriptions.
I will fix the unused import in src/utils/skillTextGenerator.ts.
I will create src/utils/statsCalculator.ts to compute Maximum HP/ATK/DEF, Effective Max HP (incorporating damage reduction and evasion from effects), Max Damage Output per skill (incorporating computation order synergies, critical hits, multi-hits, and poison ticks), and a Combat Power Score.
I will remove the unused import CharacterStatsInput in src/utils/statsCalculator.ts.
I will create src/data/presets.ts with 4 richly crafted preset characters:
- 暗殺刃の死神 サイラス (Silas, Shadow Poison Reaper) - Showcases poison-first execution synergy and evasion.
- 蒼嵐の剣聖 ヴァルツ (Valtz, Gale Sword Saint) - Showcases critical-first multi-hit rush synergy.
- 鉄壁の聖女 アウローラ (Aurora, Aegis Paladin) - Showcases damage reduction vanguard synergy and HP/DEF scaling.
- 深淵の大賢者 モルガナ (Morgana, Abyssal Mage) - Showcases heavy SP magic combos and passive bonuses.
Each preset contains an origin story (flavor text), stats, passive skill, and 3 active skills with varied SP costs.
I will create src/components/Header.tsx with a title bar, Preset Selector dropdown, New Character reset button, JSON Export/Import functionality, and a Quick Guide modal button.
I will remove the unused Users import in src/components/Header.tsx.
I will create src/components/CharacterBasicEditor.tsx allowing users to edit character lore, title, elemental affinity, rarity, and flavor text, complete with a Flavor Text Generator assistant button.
I will create src/components/StatsPanel.tsx to let users input HP/ATK/DEF base values, level, limit break, and bonus percentages, and see real-time calculation of Maximum HP, Effective Maximum HP (with Evasion & Reduction), Maximum Damage Output, and Combat Power Score.
I will create src/components/SkillPipelineEditor.tsx where users manage the 4 skill slots (Passive + 3 active skills with varying SP costs). Users can add and rearrange the internal calculation order of steps, which automatically reshuffles sentence placement, generates Japanese grammar clauses, and updates special effects (Evasion, Damage Reduction, Multi-Hit, Critical Hit, Poison).
I will create src/components/BattleTurnSimulator.tsx where users can test their character in the specified game rules: "SP recovers by +3 at the start of each turn, there are 3 active skills with varying SP costs, plus a passive skill." Users can progress turns, activate skills based on SP, and see real-time battle log text and damage calculations.
I will create src/components/CharacterCardPreview.tsx which renders a visual RPG character card (with avatar styles, element badges, rarity glow, lore text, and scaled max stats) along with a Wiki-style Markdown / Text copy button.
I will create src/components/HelpModal.tsx which provides a guide to the tool's core mechanics: step computation reordering, HP/ATK/DEF stat calculators, special effect parameters, and the SP+3 turn start game system.
I will replace src/App.tsx with our completed application featuring:
- Live preset switching & custom JSON import/export
- Responsive tabs for:
- Character Lore & Flavor Text Editor + Stat/HP/ATK/DEF Calculator
- Calculation Order Pipeline Editor (Rearrange steps to mutate text placement & synergies)
- Turn-Start SP+3 Combat Simulator (Test varied-cost active skills & passive)
- RPG Character Card Studio Preview & Markdown Exporter
- A persistent responsive mini-preview sidebar on desktop screens so users can see the flavor text and stats change in real time as they rearrange calculation steps.
I will read src/main.tsx to check how App is imported.
I will update src/App.tsx to remove the unused Sliders import and export App as default as well as named export.
I will add export default App; to the end of src/App.tsx.
I will now run build_project to confirm that the application compiles and builds cleanly without any errors.
キャラクターのフレーバーテキスト&スキル設計・ステータス計算ツール 「キャラクターフレーバーテキスト&スキル設計工房 | Character & Skill Text Studio」 を作成しました。
主な実装機能・特徴
-
内部計算順序の入れ替えによる「自動テキスト配置変更」&「シナジー効果変化」
- 「スキル計算順 & 特殊効果設計」タブにて、スキルの各ステップ(ダメージ、特殊効果、回復、自己バフなど)の順番を**↑ ↓ ボタンで移動**させることができます。
- 順序を移動させた瞬間、自動で接続詞や構文が切り替わり、テキストの並びや文末表現が動的に更新されます。
- 例(会心ステップを前に配置):「まず自身の会心率を増加させ、攻撃力の〇〇%の物理ダメージを叩き込み(会心判定ブースト適用)〜〜」
- 例(会心ステップを後ろに配置):「攻撃力の〇〇%の物理ダメージを与え、その後、自身の会心を高め〜〜」
- テキストだけでなく、順序によって「会心先制コンボ(全ヒット会心ブースト)」「毒蝕特攻コンボ(毒状態への必殺ダメージ追加)」といった最大ダメージ計算・実質最大耐久のシナジーも連動変化します。
-
5種類の特殊効果のフルサポート(回避・軽減・連撃・会心・毒)
- それぞれ効果パラメータや継続ターン数を設定可能:
- 回避 (Evasion): 回避率%(実質最大耐久/回避期待値の増幅)
- 軽減 (Damage Reduction): 被ダメージ軽減率%(DEFとの相乗効果による実効耐久UP)
- 連撃 (Multi-Hit): 攻撃ヒット回数 & 各攻撃の倍率%
- 会心 (Critical Hit): 会心上昇率% & 会心ダメージ倍率
- 毒 (Poison): 毎ターンスリップダメージ% & 継続ターン数(先手付与による毒特攻ボーナス)
-
HP / ATK / DEF 入力と最大値の自動シミュレーション
- 基礎 HP/ATK/DEF + レベル(1〜100) + 限界突破(★0〜5) + 補正% を調整すると、以下をリアルタイム算出します:
- 最大HP (Max HP)
- 実質最大耐久 (Effective Max HP)(DEF装甲、軽減効果、回避期待値を考慮した耐久力)
- 最大火力理論値 (Max Damage Output)(スキルの会心・連撃・毒や順序シナジーを含む単発最大期待値)
- 総合戦闘闘級スコア (Combat Power Score)
-
ターン開始時 SP+3 & コスト違い 3 種スキル+パッシブ検証システム
- 「ターン開始SP+3 バトル検証」タブにて、ターン進行(SPが自動で3回復)とSP消費の動きをシミュレートできます。
- 軽コストスキル(Skill 1)・中堅スキル(Skill 2)・奥義(Skill 3)・パッシブスキルを実際に発動し、実況バトルログでテキストと効果を確認できます。
-
4体の専用プリセット & カード出力・Markdown コピー
- 最初から設定済みの4キャラクター(『暗殺刃の死神 サイラス』『蒼嵐の剣聖 ヴァルツ』『鉄壁の聖女 アウローラ』『深淵の大賢者 モルガナ』)を読み込んで計算順の入れ替え効果を体験できます。
- 「カードスタジオプレビュー & 出力」タブにて、カードビジュアルの閲覧やゲームWiki風Markdownテキストをワンクリックでコピー・JSON保存可能です。
Files built: index.html, src/index.css, src/types/character.ts, src/utils/skillTextGenerator.ts, src/utils/statsCalculator.ts, src/data/presets.ts, src/components/Header.tsx, src/components/CharacterBasicEditor.tsx, src/components/StatsPanel.tsx, src/components/SkillPipelineEditor.tsx, src/components/BattleTurnSimulator.tsx, src/components/CharacterCardPreview.tsx, src/components/HelpModal.tsx, src/App.tsx