Improve AiScript

This commit is contained in:
syuilo 2019-05-01 15:17:24 +09:00
parent b6c50d63a0
commit 4747ae8b61
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
8 changed files with 32 additions and 18 deletions

View file

@ -20,13 +20,13 @@ export default Vue.extend({
methods: {
click() {
if (this.value.action === 'dialog') {
this.script.reEval();
this.script.eval();
this.$root.dialog({
text: this.script.interpolate(this.value.content)
});
} else if (this.value.action === 'resetRandom') {
this.script.aiScript.updateRandomSeed(Math.random());
this.script.reEval();
this.script.eval();
}
}
}