This commit is contained in:
parent
c38dcc556c
commit
1052eeb047
@ -21,6 +21,8 @@ export class CharacterSerializer {
|
|||||||
} else {
|
} else {
|
||||||
if(key === 'referenceGamesystem' || key === 'scriptAccount') {
|
if(key === 'referenceGamesystem' || key === 'scriptAccount') {
|
||||||
return value.componentName
|
return value.componentName
|
||||||
|
} else if(key === 'startingState' || key === 'endingState') {
|
||||||
|
return value.stateLabel
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -6,24 +6,33 @@
|
|||||||
"templateStates": [
|
"templateStates": [
|
||||||
{
|
{
|
||||||
"initial": false,
|
"initial": false,
|
||||||
"conditions": [],
|
"conditions": [
|
||||||
|
{
|
||||||
|
"scriptAccount": "Luftfeuchtigkeit",
|
||||||
|
"minValue": 0,
|
||||||
|
"maxValue": "10"
|
||||||
|
}
|
||||||
|
],
|
||||||
"stateLabel": "Wütend"
|
"stateLabel": "Wütend"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"templateTransitions": [
|
"templateTransitions": [
|
||||||
{
|
{
|
||||||
"scriptAccountActions": [],
|
"scriptAccountActions": [
|
||||||
"scriptAccountConditions": [],
|
{
|
||||||
"startingState": {
|
"changingValue": 10,
|
||||||
"initial": true,
|
"scriptAccount": "Luftfeuchtigkeit"
|
||||||
"conditions": [],
|
}
|
||||||
"stateLabel": "Glücklich"
|
],
|
||||||
},
|
"scriptAccountConditions": [
|
||||||
"endingState": {
|
{
|
||||||
"initial": false,
|
"scriptAccount": "New ScriptAccount",
|
||||||
"conditions": [],
|
"minValue": 0,
|
||||||
"stateLabel": "Wütend"
|
"maxValue": "10"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"startingState": "Glücklich",
|
||||||
|
"endingState": "Traurig"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"referenceGamesystem": "Characterstimmung"
|
"referenceGamesystem": "Characterstimmung"
|
||||||
|
Loading…
Reference in New Issue
Block a user