Skip to content

RPG and Action Boss Battles

egyptron edited this page Sep 24, 2026 · 1 revision

RPG & Action Boss Battles

Awake Simple S1 includes two built-in battle templates: a turn-based Pokémon-style encounter and a real-time rhythm/action-beat boss arena.


1. Classic RPG Battle Template ("rpg-battle")

A turn-based battle engine featuring:

  • Animated native green health progress bars.
  • Attack moves, damage calculations, and healing skills.
  • Automatic enemy AI retaliation turns.
  • Live multiline battle dialogue logs.
  • Result reporting: assigns "victory", "defeat", or "fled" to the target variable.

Syntax:

show window template "rpg-battle":
   player_name = "<Player Name>"
   player_hp = <Max HP>
   enemy_name = "<Enemy Name>"
   enemy_hp = <Max HP>
   move1_name = "<Move 1 Name>"
   move1_dmg = <Damage>
   move2_name = "<Move 2 Name>"
   move2_dmg = <Damage>
   move3_name = "<Heal Name>"
   move3_heal = <Heal Amount>
   into variable <result_variable>
finish window;

Example:

show window template "rpg-battle":
   player_name = "Pikachu"
   player_hp = 100
   enemy_name = "Wild Gengar"
   enemy_hp = 85
   move1_name = "Thunderbolt"
   move1_dmg = 32
   move2_name = "Quick Attack"
   move2_dmg = 18
   move3_name = "Oran Berry"
   move3_heal = 30
   into variable battle_outcome
finish window;

statement(start)
if variable battle_outcome == "victory" then
   play sound "victory"
   show popup("Winner!", "The enemy was defeated!")
else
   play sound "defeat"
   show popup("Defeat", "You blacked out...")
statement(end)

2. Action-Beat Boss Battle Template ("action-boss-battle")

An interactive rhythm/action boss fight featuring a real-time animated timing bar (inspired by Paper Mario and Undertale).

Players time their strikes using Spacebar or the strike button against dynamic target zones:

  • PERFECT BEAT (Center Zone): Deals 200% Critical Damage and triggers a critical hit sound.
  • GOOD BEAT (Middle Zone): Deals standard base damage.
  • OFF-BEAT (Outer Zone): Deals 35% glancing damage.
  • Enrage Mechanism: When the boss falls below 50% HP, the rhythm needle doubles in speed, testing player reflexes.

Syntax:

show window template "action-boss-battle":
   player_name = "<Player Name>"
   player_hp = <Max HP>
   boss_name = "<Boss Name>"
   boss_hp = <Max HP>
   attack_name = "<Attack Name>"
   base_dmg = <Base Damage>
   heal_name = "<Heal Name>"
   heal_amt = <Heal Amount>
   into variable <result_variable>
finish window;

Example:

show popup("Instructions", "Press SPACEBAR when the cursor hits the GREEN zone!")

show window template "action-boss-battle":
   player_name = "Cloud"
   player_hp = 140
   boss_name = "Sephiroth"
   boss_hp = 220
   attack_name = "Buster Slash"
   base_dmg = 35
   heal_name = "Curaga"
   heal_amt = 40
   into variable final_result
finish window;

statement(start)
if variable final_result == "victory" then
   play sound "victory"
   display_success("Legendary Boss Slain!")
else
   play sound "defeat"
   display_error("You missed the rhythm and were crushed.")
statement(end)

Clone this wiki locally