This repository has been archived on 2025-02-27. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
AIDScripting/contributed/AIDECLib/input-modifier.js
2021-02-01 16:38:45 -06:00

20 lines
417 B
JavaScript

const modifier = (text) => {
// Define the persisting stop attribute of state upon starting the adventure
if (state.stopped == undefined) {
state.stopped = false;
}
// Define the command array
state.commands = [];
// Add addCommand calls here
// Parse any commands present in text
modifiedText = parseCommand(text);
return { text: modifiedText }
}
// Don't modify this part
modifier(text)