Unity-hasznossági döntések
Érvényes lehetőségekből és összehasonlítható pontszámokból teszi érthetővé a Unity-szereplő döntését. Kitartási és vészmegszakítási szabályokkal előzi meg az apró különbségek miatti állandó váltást.
unity-utility-ai-decisions
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha sok művelet verseng és kis pontváltozás kapkodó váltást vagy lehetetlen döntést okoz.
Miben segít neked?
- Pontnormalizálás előtt kizárja a lehetetlen műveletet.
- Meghatározza a kombinálást, holtversenyt és reprodukálható választást.
- Elköteleződéssel csökkenti az ingadozást, mellékhatásmentesen pontoz.
Például ezt kérheted
Készíts támadás, fedezék és visszavonulás között választó Unity-ellenfelet. Pontozás előtt zárd ki az elérhetetlen fedezéket és nem használható támadást. Rögzítsd a döntés okát, próbálj közel azonos és csupa nulla pontszámot; legyen stabil választás, de közvetlen veszélyben megszakítható akció.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
Utility AI Decisions
Identify the current decision model and the player-facing choice: target, attack, need, cover or tactical role. Utility scoring is useful for graded trade-offs; preserve a simpler existing rule when it already expresses the task.
- Filter impossible actions before scoring. Represent missing/stale facts explicitly; zero distance, missing target and an unavailable weapon must not accidentally produce an excellent score.
- Map raw measurements through documented response curves with declared units/ranges. Normalize considerations consistently and clamp/validate invalid values before combining them.
- Choose a combination rule deliberately. A weighted sum allows compensation; a product can veto an action with one zero and penalizes actions with more factors. Document any compensation formula and compare actions with different consideration counts.
- Select max, weighted random or softmax according to the intended behavior. Define zero-total-score and tie handling; use a controlled random source for reproducible scenarios and stable ordering when required.
- Add commitment/hysteresis where near-equal scores would cause action thrashing. Specify emergency interrupts separately so commitment does not block an essential reaction.
- Keep scoring free of action side effects. Starting/cancelling actions, spending resources and reserving positions belong to an explicit execution boundary and must occur once per accepted transition.
- Expose raw facts, normalized considerations, combined score and selection reason. Sample decisions on a measured cadence and avoid per-candidate allocation in the hot path.
Verify boundary values, unavailable actions, all-zero scores, unequal factor counts, near-ties, interrupts and repeatability with a recorded seed. Tune against a scenario and trace; do not present example curve constants as universal balance values.
The adapted source documents both BT and Utility patterns; this skill is self-contained and does not require that source's helper files.
Csomagban lévő fájlok 2
LICENSE.txtSKILL.md
