Magicomputer Guide

Back to Magicomputer

A compact reference for the Magicomputer coding language used by the DND spell computer.

English

Start Here

Press STARTETH to wake the processor. The program is checked once each second while it is running. Add electricity, then call spell systems by name.

use("eldr_blst")
resteth(5)

Main Commands

statusPrints that the Magicomputer is online.
testRuns a simple test message.
use("system")Uses a spell system from the mana board. Built-in systems cost 3 electricity unless a custom cost is shown.
resteth(seconds)Pauses this program or routine for the given number of seconds.
constantannaire("name")Starts an indented routine that repeats once per second.
constopeth("name")Stops a running constantannaire by name.

Logic

Use variables and live signals with iph, elziph, or until. Conditions can compare electricity, ally.health, enemy.health, and number variables with =, ==, !=, <, >, <=, and >=.

iph ally.health <= 5:
  use("heal_missile")

iph enemy.health > 0:
  use("eldr_blst")

until enemy.health <= 0:
  resteth(1)

Electricity

  • Electricity sources add +2 each second.
  • Orange generators add +5 each second.
  • Capacity starts at 10 and can be upgraded.
  • If electricity rises more than 3 above capacity, the device explodes.
  • Custom spells cost spell power x 2 electricity.

Targets

Lock targets before firing spells when your table needs a target signal.

lock.nearest(neutral)
lock.nearest(ally)
lock.nearest(enemy)

Spell Code

Custom spells can use damage, heal, buff, debuff, inflict, summon, shield, drain, dispel, teleport, message, wait, and explosion.

projectile(60ft, 30ft, whilsteth, landeth):
  whilsteth:
    message("spark trail")
  landeth:
    explosion(2d6, 10)
    inflict("burning", 5)