Monster Scripts

Monster scripts, or as they shall be called to make things easier to understand in this page, enemy scripts, are the one of the types of files that contain the code needed for a Unitale battle to work. There can be multiple different enemy scripts, each of which is a seperate enemy with different HP values, different Act commands, etc.

Required variables:
 * comments: A list of text that usually displays in the Fight/Act/Item/Mercy menu. One is chosen randomly out of all of the active enemy scripts using the RandomEncounterText function.
 * commands: A list of Act commands for the enemy script. Shown in the Act menu and used in the HandleCustomCommand function.

Optional variables: Functions:
 * randomdialogue: A list of dialogue to be randomly chosen if currentdialogue is empty.
 * sprite: Name of the enemy's sprite, without the .png extension. Can only use .png files.
 * dialogbubble: Changes what dialog bubble the enemy uses. List of dialog bubbles.
 * name: Obviously, the enemy's name. Changeable at any time.
 * hp: The enemy's maximum HP. After the start of the battle, the enemy's current HP.
 * def: Obviously, the enemy's defence/defense. Also shows when the enemy is checked.
 * check: Shows when checking the enemy via the Act menu.
 * currentdialogue: Dialogue to be shown during the enemy dialogue phase. Emptied when used.
 * cancheck: True by default. Toggles if the enemy can be checked in the Act menu.
 * canspare: False by default. Same as cancheck, but toggles if the enemy is can be spared.
 * xp: and gold: The enemy's XP when killed and G when killed or spared.
 * atk: The enemy's ATK. Only used when shown when the enemy is checked.
 * HandleAttack(damage): Happens when damage is applied to the enemy. The damage variable is -1 if the player chose to attack but let the slider reach the end of the attack thing.
 * OnDeath: Happens when the enemy's HP reaches or is below 0. Enemy will be immortal if this happens, and can only be killed with Kill.
 * HandleCustomCommand(actcommand): Happens when an act command is selected (not Check). The actcommand variable is the act command selected, but in all caps.