The end while are the key part there:
Code:
while I_CompareCounter go_to_end_phase = 1
end_while
This part says while the counter go_to_end_phase is equal to 1, do nothing, or more precisely wait for the user to do whatever is required to change go_to_end_phase
note: there is nothing between the while line and the end_while line, which says the while loop does nothing
once go_to_end_of_phase is no longer 1 it dismisses the advice
Code:
while I_AdvisorVisible
end_while
Again, like the first while it says while I_AdvisorVisible is true (i.e. you the Advisor is visible on screen) do nothing.
And I_CompareCounter means exactly what is says, compare the counter after me to some other value (in this case the number) using a comparison operator (= or < or > or not in some combination)
Bookmarks