First: Trevius the Bad Ass, joligario and Caryatis...thank you for the replies!
Second: The script is cut into just this subroutine as it is the only relevant one. The rest is just a serious of dialog 'Hail', 'Tell me more', 'What artifact' and other such boring quotes. The only thing that really happens outside this subroutine is the mob engages after the last dialog trigger is hit. So there is nothing else to see.
The subroutine itself is broken up because there are several sections of the if-else statement that do the same thing. Either casting 2-3 spells on a player (which work...) or 2-3 on itself (which fail...). I omitted several else 'blocks' as they just randomly cast on player (which even instant multiple castings works, just not on the mob itself due to targeting).
Third: Lastly, I broke it up because adding inline comments to describe each individual block looked absolutely horrific. Apparently, I am alone in that view.
Trevius, again I can't thank you enough for taking time out to write another long and insanely useful response. You truly are win, Sir!
-Hate
|