例如,你的 status_current_variables 块是这样的:
<status_current_variables>
{}
</status_current_variables>
如果
'<UpdateVariable>\n' +
' <Analysis>\n' +
' - calculate time passed: a few minutes passed. no dramatic update.\n' +
' - 核心状态, 生理, 精神, 属性, 次生属性, 状态: no changes.\n' +
' - 技能: no changes.\n' +
' - 装备: no changes.\n' +
' - 携带物品: no changes.\n' +
' - 环境: no changes.\n' +
' - 系统.当前时间[0]: Y, from morning to breakfast time.\n' +
' - other system variables: no changes.\n' +
' - 营地: no changes.\n' +
' - 同伴: no changes.\n' +
' - 世界: no changes.\n' +
' </Analysis>\n' +
" _.set('系统.当前时间[0]', '清晨', '早餐时间');//The scene progresses from waking up to sitting down for breakfast.\n" +
'</UpdateVariable>\n'
那么,
<status_current_variables>
{
"系统" {
"当前时间": [ "早餐时间" ]
}
}
</status_current_variables>
这样才对,是吧?至于assign,那就是直接赋值,覆盖掉指定的JSON对象了。
例如,你的
status_current_variables块是这样的:如果
那么,
这样才对,是吧?至于assign,那就是直接赋值,覆盖掉指定的JSON对象了。