Z-Puyu / Road-of-Heroes

0 stars 0 forks source link

Design AI Systems #7

Open Z-Puyu opened 2 weeks ago

Z-Puyu commented 2 weeks ago
  1. Explore GOAP AI mechanics.

  2. Build a GOAP system and integrate with the current state machine.

  3. Test the system using the current combat logic.

Z-Puyu commented 2 weeks ago

AI Decision Making Workflow?

The "Observing" Stage

Framework: Utility AI YouTube lecture.

Process

Relevant classes

The "Planning" Stage

Framework: Goal-Oriented Action Planning YouTube tutorial.

Process

Relevant classes

The "Decision-Making" Stage

Process

Relevant classes

Z-Puyu commented 1 week ago

Implemented the "observing" stage.

Z-Puyu commented 1 week ago

Implemented the "planning" and "decision-making" stages.

Z-Puyu commented 1 week ago

We might need someone with more experience in this to optimise the AI... :( For now, this simple framework without opponent predication should be good enough.

YFshadaow commented 1 week ago
  1. Hostile Action
    • Expected return
      • Damage: $\mathbb{E}[D]$
      • DoT: $di = kd{i - 1}$
      • Debuff: difficult
    • Target threat level
    • If can kill, add the above 2
    • If magic: consider self remaining magicka
  2. Friendly Action
    • Expected return
      • Buff: difficult
      • Cure DoT: expected healing amount
      • Ward / stealth: expected damage loss. Decay for every extra turn
    • Target utility (consider utility on non-reflexive targets only)
    • If magic: consider self remaining magicka
YFshadaow commented 1 week ago

Context is NOT a string-object pair collection now