Update README.md

This commit is contained in:
Nick Walton 2020-06-01 20:41:24 -06:00 committed by GitHub
parent 4ddda08159
commit 76a0ac600e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,9 @@
Custom scripts on AI Dungeon scenarios allow you to modify the memory, input, and output as well as keep track of custom state objects that might be relevant for your adventure. You can write custom scripts in Javascript by going to the "Scripts" section while on web on the edit scenario page. For security reasons some Javascript functionality is locked down however. Submit a request if there is functionality you would like opened up and we can look into it. Custom scripts on AI Dungeon scenarios allow you to modify the memory, input, and output as well as keep track of custom state objects that might be relevant for your adventure. You can write custom scripts in Javascript by going to the "Scripts" section while on web on the edit scenario page. For security reasons some Javascript functionality is locked down however. Submit a request if there is functionality you would like opened up and we can look into it.
## Examples
You can check out some examples for how to use scripting [here](examples)
### History ### History
You have access to (but can't modify) the `history` object which is a list of the previous actions of the player and of the AI. You have access to (but can't modify) the `history` object which is a list of the previous actions of the player and of the AI.