1
0
Fork 0
taleweave-ai/taleweave/systems/sim/mood/logic.yaml

136 lines
2.1 KiB
YAML
Raw Normal View History

2024-05-05 22:45:18 +00:00
rules:
# mood logic
2024-06-22 22:54:54 +00:00
- group: sim.mood
2024-05-05 22:45:18 +00:00
match:
type: character
2024-05-05 22:45:18 +00:00
mood: happy
chance: 0.1
2024-05-05 22:45:18 +00:00
set:
mood: sad
2024-06-22 22:54:54 +00:00
- group: sim.mood
2024-05-05 22:45:18 +00:00
match:
type: character
2024-05-05 22:45:18 +00:00
mood: happy
chance: 0.1
2024-05-05 22:45:18 +00:00
set:
mood: neutral
2024-06-22 22:54:54 +00:00
- group: sim.mood
2024-05-05 22:45:18 +00:00
match:
type: character
2024-05-05 22:45:18 +00:00
mood: angry
chance: 0.1
2024-05-05 22:45:18 +00:00
set:
mood: neutral
2024-06-22 22:54:54 +00:00
- group: sim.mood
2024-05-05 22:45:18 +00:00
match:
type: character
2024-05-05 22:45:18 +00:00
mood: neutral
chance: 0.1
2024-05-05 22:45:18 +00:00
set:
mood: happy
2024-06-22 22:54:54 +00:00
- group: sim.mood
2024-05-05 22:45:18 +00:00
match:
type: character
2024-05-05 22:45:18 +00:00
mood: neutral
chance: 0.1
2024-05-05 22:45:18 +00:00
set:
mood: sad
2024-06-22 22:54:54 +00:00
- group: sim.mood
2024-05-05 22:45:18 +00:00
match:
type: character
2024-05-05 22:45:18 +00:00
mood: sad
chance: 0.1
2024-05-05 22:45:18 +00:00
set:
mood: angry
2024-06-22 22:54:54 +00:00
- group: sim.mood
2024-05-05 22:45:18 +00:00
match:
type: character
2024-05-05 22:45:18 +00:00
mood: sad
chance: 0.1
2024-05-05 22:45:18 +00:00
set:
mood: neutral
# mood interactions with other systems
2024-06-22 22:54:54 +00:00
- group: sim.mood
2024-05-05 22:45:18 +00:00
match:
type: character
2024-05-05 22:45:18 +00:00
mood: sad
sleep: rested
chance: 0.2
2024-05-05 22:45:18 +00:00
set:
sleep: tired
2024-06-22 22:54:54 +00:00
- group: sim.mood
2024-05-05 22:45:18 +00:00
match:
type: character
2024-05-05 22:45:18 +00:00
hunger: hungry
chance: 0.2
2024-05-05 22:45:18 +00:00
set:
mood: angry
2024-06-22 22:54:54 +00:00
- group: sim.mood
2024-05-05 22:45:18 +00:00
match:
type: character
2024-05-05 22:45:18 +00:00
mood: angry
hunger: full
chance: 0.2
2024-05-05 22:45:18 +00:00
set:
mood: neutral
2024-06-22 22:54:54 +00:00
- group: sim.mood
2024-05-05 22:45:18 +00:00
match:
type: character
2024-05-05 22:45:18 +00:00
mood: neutral
hunger: full
chance: 0.2
2024-05-05 22:45:18 +00:00
set:
mood: happy
2024-06-22 22:54:54 +00:00
- group: sim.mood
2024-05-05 22:45:18 +00:00
match:
type: character
2024-05-05 22:45:18 +00:00
mood: happy
hunger: hungry
chance: 0.2
2024-05-05 22:45:18 +00:00
set:
mood: neutral
2024-06-22 22:54:54 +00:00
- group: sim.mood
2024-05-05 22:45:18 +00:00
match:
type: character
2024-05-05 22:45:18 +00:00
mood: neutral
sleep: tired
chance: 0.2
2024-05-05 22:45:18 +00:00
set:
mood: sad
# mood initialization
2024-06-22 22:54:54 +00:00
- group: sim.mood
2024-05-05 22:45:18 +00:00
rule: |
"mood" not in attributes
set:
mood: happy
labels:
2024-05-19 21:49:02 +00:00
- match:
type: character
2024-05-19 21:49:02 +00:00
mood: happy
backstory: You are feeling happy.
description: They look happy.
- match:
type: character
2024-05-19 21:49:02 +00:00
mood: sad
backstory: You are feeling sad.
description: They look sad.
- match:
type: character
2024-05-19 21:49:02 +00:00
mood: angry
backstory: You are feeling angry.
description: They look angry.
# neutral intentionally omitted