> For the complete documentation index, see [llms.txt](https://docs.shrinefox.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shrinefox.com/flowscript.md).

# Scripting

- [Intro to Scripting](https://docs.shrinefox.com/flowscript/intro-to-scripting.md): What the hey is all this?
- [Resources](https://docs.shrinefox.com/flowscript/intro-to-scripting/resources.md): Links for helpful tools while you're learning
- [AtlusScriptCompiler](https://docs.shrinefox.com/flowscript/atlusscriptcompiler.md): About TGE's script (de)compiler program
- [Run via Commandline](https://docs.shrinefox.com/flowscript/atlusscriptcompiler/run-via-commandline.md): Using the Compiler with Windows Command Prompt
- [Decompile](https://docs.shrinefox.com/flowscript/atlusscriptcompiler/run-via-commandline/decompile.md): Convert BF and BMD into flowscripts and messagescripts
- [Compile](https://docs.shrinefox.com/flowscript/atlusscriptcompiler/run-via-commandline/compile.md): Convert BF and BMD into flowscripts and messagescripts
- [Batch Dump .FLOW/.MSG](https://docs.shrinefox.com/flowscript/atlusscriptcompiler/run-via-commandline/batch-dump-.flow-.msg.md): Locally searchable decompiled script dumps
- [Run via GUI](https://docs.shrinefox.com/flowscript/atlusscriptcompiler/run-via-gui.md): Using the Compiler with AtlusScriptCompilerGUI
- [Flowscript](https://docs.shrinefox.com/flowscript/flowscript.md): About TGE's human-readable .BF approximation
- [Procedures](https://docs.shrinefox.com/flowscript/flowscript/procedures.md): void Main();
- [Variables](https://docs.shrinefox.com/flowscript/flowscript/variables-and-procedures.md): int number = 1;
- [Scope](https://docs.shrinefox.com/flowscript/flowscript/scope.md): global var number = 24;
- [Arrays](https://docs.shrinefox.com/flowscript/flowscript/arrays.md): int array2\[] = { 1, 2, 3, 4, 5 };
- [Enums](https://docs.shrinefox.com/flowscript/flowscript/enums.md): Enumerables
- [Loops](https://docs.shrinefox.com/flowscript/flowscript/loops-and-conditionals.md): for ( int i = 0; i < 22; i = i + 1 ) { ... };
- [Conditionals](https://docs.shrinefox.com/flowscript/flowscript/conditionals.md): if ( 1 != value ) { ... };
- [Functions](https://docs.shrinefox.com/flowscript/flowscript/functions.md)
- [Importing Files](https://docs.shrinefox.com/flowscript/flowscript/importing.md): How to include other scripts in your script
- [Menus](https://docs.shrinefox.com/flowscript/flowscript/menus.md): Working with menus in flowscript
- [Messagescript](https://docs.shrinefox.com/flowscript/messagescript.md): About TGE's human-readable .BMD approximation
- [Markup](https://docs.shrinefox.com/flowscript/messagescript/markup.md): How to style the text in messages.
- [Message Variables](https://docs.shrinefox.com/flowscript/messagescript/message-variables.md): How to display certain data within a message.
- [Library Functions](https://docs.shrinefox.com/flowscript/library-functions.md)
- [Persona 5](https://docs.shrinefox.com/flowscript/library-functions/persona-5.md): Functions found in all versions of Persona 5.
- [Persona 5 EX](https://docs.shrinefox.com/flowscript/library-functions/persona-5-ex.md): Functions exclusive to DeathChaos's P5EX mod.
- [Persona 5 Royal](https://docs.shrinefox.com/flowscript/library-functions/persona-5-royal.md)
- [Persona 4](https://docs.shrinefox.com/flowscript/library-functions/persona-4.md)
- [Persona 4 Golden](https://docs.shrinefox.com/flowscript/library-functions/persona-4-golden.md)
- [Persona 3](https://docs.shrinefox.com/flowscript/library-functions/persona-3.md)
- [Persona 3 FES](https://docs.shrinefox.com/flowscript/library-functions/persona-3-fes.md)
- [Persona 3 Portable](https://docs.shrinefox.com/flowscript/library-functions/persona-3-portable.md)
- [SMT III: Nocturne](https://docs.shrinefox.com/flowscript/library-functions/smt-iii-nocturne.md)
- [Digital Devil Saga](https://docs.shrinefox.com/flowscript/library-functions/digital-devil-saga.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.shrinefox.com/flowscript.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
