1
// Create the character
3
// It's an imported spell in hand
8
IfCharacterWasABook // Did it start out as a book or the spell object?
9
// It's a spell in hand
14
// It's a morphed character
20
// Monster AI... State 1
24
tmpargument = ACTIONMC
26
tmpargument = rand & 1 + 3
27
tmpdistance = rand & 2047 + 10000
33
tmpargument = rand & 1 + 5
34
tmpdistance = rand & 2047 + 10000
39
// Spell AI... State 0
45
SetTargetToWhoeverIsHolding
51
// Allow it to be charged up
53
// Does it have one going?
63
SetTargetToWhoeverIsHolding
72
tmpargument = tmpargument + 4
90
UndoEnchant // There can be only one
91
SetTargetToWhoeverIsHolding
113
// Nothing happens...
119
// Reset the charge counter
124
// Return to spellbook, Do last!
130
tmpargument = ACTIONJB