Today... I re-learned ZScript. At last. And I fixed a
MAJOR bug that's been there ever since I designed the Slingshot: Now when fired bullets strike enemies, the enemies will actually be knocked back in the correct direction! FINALLY!
See, since I re-programmed the physics for knocking back enemies, I had to manually define it in any of the custom items and weapons I made. Slingshot bullets had an annoying bug where they would sometimes knock enemies in random directions instead of in the direction the bullet was traveling. And now that bug is GONE.

Furthermore, the bug is fixed with every scripted LWeapon I
ever write in the future, since all my LWeapon scripts borrow some of the same routines, such as setting enemy knockback direction in this case.
I feel just... amazing. It took me a while, but I finally got this down! Gonna spend some more time re-organizing my scripts into a more readable format as time goes on, of course, but the toughest part is out of the way, which is actually being able to write it once again. YES.
Oh, what I also did today was re-discover this old website, a favorite of mine while ZScripting:
www.anydice.com. It is a Probability Calculator, complete with visual graphs and support for both simple and complex mathematical syntaxes (syntaxi?), so any of you script junkies who want to make their game determine something by die roll will find this to be an invaluable resource.

For instance, I made my Bombs' attack damage 24 + two 12-sided dice + one 8-sided dice, meaning anywhere from 24 to 56 but very heavily weighted in the center, so the majority of blasts will deal in the 36 to 44 range, and if you're rather lucky or unlucky you'll hit the edges of that curve (you have a 0.07% chance to do the max 56 damage or the minimum 24 damage, meanwhile a 6.38% chance to do 40, right in the middle). Like a standard RPG, you know? And the graphs on this site helped me figure that out. ^^ I haven't even discovered half the tricks this thing can do, I'll bet.
Edited by Schwa, 07 February 2013 - 09:03 AM.