Even though it was unintentional and probably a fluke, one of your lines of code was actually brilliant.if(GunImage.projectile == (GunImage.projectile = GunProjectile)) %client.chatMessage("\c6Gun is already \c3reset\c6.");else %client.chatMessage("\c6Gun \c3reset\c6.");
Basically, it utilized two useful facets of programming - all code is linear and setting a variable returns its value.So that if statement says something like...If [the memorized value of the Gun's projectile] is the same as [the value of the Gun's projectile after having been changed] then do stuff.Perhaps someone else can explain it a bit better :S
%a = b();if(%a == 5)
if(5 == (%a = b())
or just setmodpaths(getmodpaths());
Not needed
exact same use as discoverFile()it's just that it refreshes the whole Blockland directory for new files.