eventmacro-syntax README


A lightweight VSCode extension that provides syntax highlighting for OpenKore's eventMacro scripting language.
Features
- 🎨 Syntax highlighting and code completion for eventMacros files
- ⚙️ Supports macro and automacro definitions
- 🔍 Highlights commands, conditions, variables, and special functions
- 💬 Comment, string, and number detection
- 📂 Automatic code block folding
Release Notes
1.0.0
Initial release of extension
📦 Installation
- Open Visual Studio Code
- Go to the Extensions View (
Ctrl+Shift+X
)
- Search for
eventMacro Syntax Highlighter
- Click Install
Or install via CLI:
code --install-extension yourpublisher.eventmacro-highlighter
🚀 Usage
This extension automatically highlights files with the eventMacros.txt
name or .event
extension.
To manually apply it to other files:
- Open the file in VSCode
- Click on the language mode selector (bottom-right corner)
- Choose
eventMacro
from the list
Example
# This is a comment
automacro BuyLemon {
CharCurrentWeight < 89%
InMap ayothaya
Zeny >= 10000
macro_delay 0.1
exclusive 1
call {
do move ayothaya 119 237
pause 2
do talknpc 121 240 r2 r0
pause 2
do cart add &inventory(Lemon)
}
}
Known Issues
If you find a bug or unexpected behavior, please report it here:
👉 Issue Tracker
Contributing
Contributions are welcome!
Feel free to fork the repo, open issues, or submit pull requests.
License
This project is licensed under the GNU Affero General Public License v3.0.