Talk:Sealed/@comment-5672532-20130211044755/@comment-5173028-20130211061132

damage is calculated in the damage label (which again how it knows to go there when it doesn't have the "goto" or the "gosub" command is beyond me though...)

in damage it checks everything (is the enemy's level above yours, if earth is greater than 0 reduce the damage by its variable (how exactly is in the code so I'm not really gonna bother but it multiplies, divides, and subtracts several numbers)

were you guarding? etc. etc. etc.

and then in the end it has a return

so its working like a subroutine but how when there is no gosub I got no idea...

EDIT: like if I had to take a wild guess. damage, hseanwave, sean_change, etc. etc. are working like functions (without any parameters at that...)

but that seems a bit too high of a level thing for onscripter which is based off assembly (being a low level language) and I don't recall being able to use functions in Assembly...