Commit 6201d4a8 by Jonathan Thomas

Small refactor to entity character sheet context, and prompt - insert each line…

Small refactor to entity character sheet context, and prompt - insert each line separately, instead of the entire character sheet. Added entity_health as well.
parent 81fc6c74
Pipeline #12013 passed with stage
in 20 seconds
......@@ -191,8 +191,13 @@ public class ChatDataManager {
}
contextData.put("entity_type", entity.getType().getName().getString());
contextData.put("entity_health", entity.getHealth() + "/" + entity.getMaxHealth());
contextData.put("entity_personality", getCharacterProp("Personality"));
contextData.put("entity_speaking_style", getCharacterProp("Speaking Style / Tone"));
contextData.put("entity_likes", getCharacterProp("Likes"));
contextData.put("entity_dislikes", getCharacterProp("Dislikes"));
contextData.put("entity_age", getCharacterProp("Age"));
contextData.put("entity_alignment", getCharacterProp("Alignment"));
contextData.put("entity_friendship", String.valueOf(friendship));
contextData.put("entity_character_sheet", characterSheet);
return contextData;
}
......
......@@ -4,8 +4,16 @@ possible. Try and keep response to 1 to 2 sentences (very brief). Include behavi
when relevant.
Entity Character Sheet:
{{entity_character_sheet}}
- Friendship to Player: {{entity_friendship}} (-3 to 3, 0 is Neutral)
- Name: {{entity_name}}
- Type: {{entity_type}}
- Health: {{entity_health}}
- Personality: {{entity_personality}}
- Speaking Style / Tone: {{entity_speaking_style}}
- Likes: {{entity_likes}}
- Dislikes: {{entity_dislikes}}
- Age: {{entity_age}}
- Alignment: {{entity_alignment}}
- Friendship to Player: {{entity_friendship}}
Player Character Sheet:
- Name: {{player_name}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment