Maybe instead of using "Alias", you would use hp?
This way, you won't have to check every time what kind of book it is.
For example, when spawning an item, instead of "Alias", set "Health", like this:
spawn NunA
coords 1100 650
item book
itemhealth 1
at 1300
Thus, by defining hp in...