somewhere it is returning "Salve" and not the ID of salve (or a ${Bool check on it), likely a ${Spell[Salve]} rather than ${Spell[Salve].ID} --- which based on the first thing it says if i'm a bard and my book blah --- but book should return a number
(that doesn't really help you, and im sorry for that - I'm not familiar with XGen, and i meant to go to bed 8 hours ago =p, so looking at it now wouldn't be good)