magic

Index Home Arana > Arana Architecture > Arana Daemons > magic

Magic Daemon

This daemon handles all things magical within Arana - magic spells, magic items, and phenomena (place-specific "magic" behavior). Note that magic is coded using the magicc utility using a special event-driven language.

Messages Received and Processed

Messages Received and Processed

API Messages

MsgTag

Description

cast

dodevice

cast

SEQUENCE cmd_magic_innate 10

magic <- msg label= "cast";

END

done

possess

SEQUENCE cmd_magic_device 10

magic <- msg label= "possess";

END

dispossess

attach

attach

detach

on

off

ontarget

offtarget

interrupt

SEQUENCE cmd_spell_cast 150

magic <- msg label= "interrupt";

END

terminate

enchant

SEQUENCE cmd_magic_device 7

items <- msg label= "enchant";

END

magic.question

SEQUENCE cmd_spell_cast 100

setting <- msg label= "magic.question";

END

SEQUENCE cmd_magic_device 60

setting <- msg label= "magic.question";

END

magic.qsave

SEQUENCE cmd_spell_cast 120

setting <- msg label= "magic.qsave";

END

SEQUENCE cmd_magic_phenomenon 60

setting <- msg label= "magic.qsave";

END

SEQUENCE cmd_magic_innate 80

setting <- msg label= "magic.qsave";

END

SEQUENCE cmd_magic_device 80

setting <- msg label= "magic.qsave";

END

magic.response

SEQUENCE cmd_spell_cast 105

magic <- msg label= "magic.response";

END

SEQUENCE cmd_magic_device 65

magic <- msg label= "magic.response";

END

magic.rsave

SEQUENCE cmd_spell_cast 125

magic <- msg label= "magic.rsave";

END

SEQUENCE cmd_magic_phenomenon 65

magic <- msg label= "magic.rsave";

END

SEQUENCE cmd_magic_innate 85

magic <- msg label= "magic.rsave";

END

SEQUENCE cmd_magic_device 85

magic <- msg label= "magic.rsave";

END