I have it all up now, just not quite understanding the macro's

How do I do advanced spell casting and what do things like: [exists,harm,nodead,combat] do ???