-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_characters_stats.json
37 lines (37 loc) · 1.11 KB
/
update_characters_stats.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"name": "update_characters_stats",
"description": "Update one or more characters stats",
"parameters":
{
"type": "object",
"properties": {
"story_telling": {
"type": "string",
"description": "This parameter is used to describe what happens to the characters involved"
},
"changes" : {
"type": "array",
"items": {
"type": "object",
"properties": {
"character": {
"type": "string",
"description": "The name of the character, for example, Duncan"
},
"stat": {
"type": "string",
"description": "The name of the stat",
"enum": ["hp", "stamina"]
},
"delta": {
"type": "number",
"description": "The amount to be algebraically added to the stat (it can be also negative)"
}
},
"required": ["character", "stat", "delta"]
}
}
},
"required": ["story_telling","changes"]
}
}