{"name":"🖼️ Inlay Additional Asset (V2)","description":"Inlay additional asset module for applying in characters. name additional assets `iaa.<appearance>.<emotion name>.<index>` like `iaa.normal.happy.1`.","id":"eec8de74-816d-40bd-af58-fa2f9f1109ba","lorebook":[{"key":"","comment":"Assets Command","content":"@@depth 0\n{{#if {{? {{array_length::{{filter::{{split::{{#each {{assetlist}} a}}\n  {{#if {{startswith::{{slot::a}}::iaa.}}}}\n    {{arrayelement::{{split::{{slot::a}}::.}}::1}}$$\n  {{/}}\n{{/}}::$$}}}}}} > 1}}}}\n<AppearanceCommand>\nYou must analyse your response that you just answered and return the following {{char}}'s appearance value. The appearance value must always be appended at the end of response. the appearance value can be a transformation if {{char}} can transform, or {{char}}'s clothes, or others. If there is no appropriate value, keep the value from your previous response.\nForm: [Appearance: <appearance value>]\nExample: [Appearance: {{arrayelement::{{filter::{{split::{{#each {{assetlist}} a}}\n  {{#if {{startswith::{{slot::a}}::iaa.}}}}\n    {{arrayelement::{{split::{{slot::a}}::.}}::1}}$$\n  {{/}}\n{{/}}::$$}}}}::0}}]\n\nList of values: {{join::{{filter::{{split::{{#each {{assetlist}} a}}\n  {{#if {{startswith::{{slot::a}}::iaa.}}}}\n    {{arrayelement::{{split::{{slot::a}}::.}}::1}}$$\n  {{/}}\n{{/}}::$$}}}}::, }}\n</AppearanceCommand>\n{{/if}}\n\n<ImageDisplay>{{// image display command}}\nYou can display the image between paragraphs using the format below, using values in the list below. If there is no appropriate value, the image display may be omitted. you must display one or two images in response.\n\nForm: {{img::<image command>}}\nExample: {{img::{{arrayelement::{{filter::{{split::{{#each {{assetlist}} a}}\n  {{#if {{startswith::{{slot::a}}::iaa.}}}}\n    {{arrayelement::{{split::{{slot::a}}::.}}::2}}$$\n  {{/}}\n{{/}}::$$}}}}::0}}}}\n\nList of values: {{join::{{filter::{{split::{{#each {{assetlist}} a}}\n  {{#if {{startswith::{{slot::a}}::iaa.}}}}\n    {{arrayelement::{{split::{{slot::a}}::.}}::2}}$$\n  {{/}}\n{{/}}::$$}}}}::, }}\n</ImageDisplay>\n","mode":"normal","insertorder":100,"alwaysActive":true,"secondkey":"","selective":false,"useRegex":false,"bookVersion":2},{"key":"","comment":"Assets-Memo","content":"{{// get emotions}}\n{{filter::{{split::{{#each {{assetlist}} a}}\n  {{#if {{startswith::{{slot::a}}::iaa.}}}}\n    {{arrayelement::{{split::{{slot::a}}::.}}::2}}$$\n  {{/}}\n{{/}}::$$}}}}\n\n{{// get forms}}\n{{filter::{{split::{{#each {{assetlist}} a}}\n  {{#if {{startswith::{{slot::a}}::iaa.}}}}\n    {{arrayelement::{{split::{{slot::a}}::.}}::1}}$$\n  {{/}}\n{{/}}::$$}}}}\n","mode":"normal","insertorder":100,"alwaysActive":false,"secondkey":"","selective":false,"useRegex":false,"bookVersion":2}],"regex":[{"comment":"Appearances","in":"\\[Appearances?\\s*:\\s*([a-zA-Z]+?)\\s*\\]","out":"{{#if {{contains::{{filter::{{split::{{#each {{assetlist}} a}}\n  {{#if {{startswith::{{slot::a}}::iaa.}}}}\n    {{arrayelement::{{split::{{slot::a}}::.}}::1}}$$$$\n  {{/}}\n{{/}}::$$$$}}}}::$1}} }}\n$&{{setvar::appe::$1}}\n{{/}}\n","type":"editoutput","ableFlag":true,"flag":"gi"},{"comment":"img syntax","in":"\\{\\{img::([a-zA-Z]+?)\\}\\}","out":"{{#if {{equal::{{getvar::appe}}::null}}}}\n{{img::{{random::{{spread::{{filter::{{split::{{#each {{assetlist}} a}}\n  {{#if {{startswith::{{slot::a}}::iaa.normal.$1}}}}\n    {{slot::a}}$$\n  {{/}}\n{{/}}::$$}}}}}}}}}}\n{{/}}\n{{#if {{not::{{equal::{{getvar::appe}}::null}}}}}}\n{{img::{{pick::{{spread::{{filter::{{split::{{#each {{assetlist}} a}}\n  {{#if {{startswith::{{slot::a}}::iaa.{{getvar::appe}}.$1}}}}\n    {{slot::a}}$$\n  {{/}}\n{{/}}::$$}}}}}}}}}}\n{{/}}\n","type":"editoutput","ableFlag":false},{"comment":"img postprocess","in":"\\{\\{img::\\}\\}","out":"","type":"editoutput","ableFlag":false},{"comment":"img preprocess","in":"\\{\\{img::([a-zA-Z\\.]+?)\\}\\}","out":"{{trim::\n{{#if {{startswith::$1::iaa.}}}}\n{{img::{{arrayelement::{{split::$1::.}}::2}}}}\n{{/if}}\n{{#if {{not::{{startswith::$1::iaa.}}}}}}\n$&\n{{/if}}\n}}","type":"editprocess","ableFlag":false}],"lowLevelAccess":false,"type":"risuModule","creator_notes":"Inlay additional asset module for applying in characters. name additional assets `iaa.<appearance>.<emotion name>.<index>` like `iaa.normal.happy.1`.","tags":[],"license":"","rtype":"module"}