Jump to content

Scripts

From ROIdle Wiki

One of the staple mechanics of Ragnarok Oblivion is how each character is controlled. The algorithm that dictates what they do is called Battle Scripts, more commonly referred only as Scripts.
They are a step by step Condition-Action-Target system, where each step has a set of filters and rules that choose those 3 things, and if the Condition is true, that step executes that Action against the chosen Target.
If left untouched, the game has default Scripts for every class in the game. But by building the Runic Battle Codex in the Estate, the player then can (and has to) create and choose which script each of their characters is going to be using at the moment.

Default Scripts

Warrior Classline Scout Classline Apprentice Classline
Tier 1: Warrior#Default Tier 1: Scout#Default Tier 1: Apprentice#Default
Tier 2: Knight#Default Tier 2: Archer#Default Tier 2: Mage#Default
Tier 2: Mercenary#Default Tier 2: Rogue#Default Tier 2: Sorcerer#Default
Tier 3: Sentinel#Default Tier 3: Sniper#Default Tier 3: Wizard#Default
Tier 3: Paladin#Default Tier 3: Arrowslinger#Default Tier 3: Shaman#Default
Tier 3: Berserker#Default Tier 3: Scourge#Default Tier 3: Alchemist#Default
Tier 3: Ravager#Default Tier 3: Assassin#Default Tier 3: Sage#Default
Tier 3: Priest#Default
Tier 3: Druid#Default

The Very Basics

In the Character AI menu, you can configure the "Battle Behavior" for various characters. You can use the default scripts provided by the game, or you can create new scripts from scratch or by modifying the default ones. Additionally, you can import and export scripts to share with other players—if you need help, feel free to ask in Discord!

Here’s a breakdown of the functions available:

Character Selector

At the top, there is a selection menu that allows you to choose a specific character in your party. When you click on a character, it automatically highlights and selects the script currently assigned to that character. To assign a different script to the selected character, click on the desired script on the left, then click the Select script for character button.

Add Script

The Add Script button lets you create a new script with a custom name. This new script will be mostly empty. It will not be automatically equipped to the selected character.

Copy Default Class Script

The Copy Default Class Script button creates a new script by copying the default script for the selected character's class. Like the "Add Script" button, it will not be automatically equipped to the selected character.

Rename

The Rename button allows you to change the name of the selected script.

View/Edit

The View/Edit button opens a detailed editor where you can modify and customize the script’s content.

Copy

The Copy button creates a duplicate of the selected script with a new name. This is useful if you want to create variations of a script without altering the original.

Export/Import

The Export button generates a copiable JSON of the selected script in text format, which you can export. To import a script, simply paste the script’s JSON into the import box, and it will overwrite the current selected script.

Delete

The Delete button removes the selected script from the list.

Select Script for Character

The Select script for character button allows you to assign a different script to the selected character. First, select the character at the top, then select the desired script from the list on the left. Finally, click the Select script for character button to equip the new script.

Scripting tips

Lorem ipsum