Similar to Event by Nestharus, but without the messy API and the unreadable code.
It obviously needs to be a new submission as I don't like that Jesus4Lyf's Event requires you to use ugly trigger API. This hides the ugliness while keeping it just as dynamic. But faster.
library GameStatus initializer Ini /*
GameStatus 2.0 by Bribe, special thanks to Troll-Brain
Check if a game is single-player online or is a single-player replay. Due
to Warcraft 3 limitations there is no known bugfree way to detect a multi-
Recycles missile dummy units while considering their facing angle.
Warning: this uses an ObjectMerger statement to create a dummy unit with the rawcode 'dumi'. I haven't written a Nestharus-style safe Lua script nor prepared a test map at this stage. That is on my to-do list still.
If you want to centralize all the arrow key events in your map and keep your workload as short and sweet as possible, I have designed this library for you.
library ArrowKeyEvent /*
ArrowKeyEvent version 184.108.40.206...
I'm going to be writing an entirely new compiler. It will be like Jass Shop Pro where it doesn't interface directly with World Editor or Jass NewGen Pack, so it will work on Mac OS X systems as well as PC's. It will have its own GUI with syntax highlighting, very beginner-friendly syntax...
Timer2 operates based on a running philosophy of mine: doing more with less. How does one timer per struct sound, even with different expiration periods? If you want an alternative to TimerUtils (spamming a timer handle per instance) and need something more versatile than TimerQueue (preset...
Many of us are aware that hashtables have a 255-instance limit. Many of us could also agree the hashtable API is some of the most ugly (albeit arguably the most dynamic) in the whole common.j library.
Table, based on Vexorian's Table, takes one hashtable far beyond what would otherwise be...
I am trying to compile an iWeb application at work (on break, obviously). I have no "mobile me" account and will not spend the money to obtain it, so the "publish" button does not work.
My objective is that I would like to compile a page with any number of widgets on it to see what it looks...
I am new to Python, as said in an earlier post.
I am trying to create a template using Python which interacts with an HTML web form. I don't know how to direct the "submit" button to start running Python code. And when I do, how would Python know what the user typed in? I have been really...
// This library provides high-level functions at your normal high-level
// efficiency loss. Zinc has a built-in syntax which is very close to
// this, but Zinc also lacks a ton of...
If I have this:
function interface myfunc takes nothing returns nothing
myfunc array Funcs
Does Funcs convert to a trigger array? How does it work internally?
Ideally, I want to check to see if an array slot has been assigned or not. Would I use:
Fed up with the JASS interpreter and onto professional programming envirnoments, I've been studying Python. Yes, I know it is also an interpreter, but the far greater capability and compatibility squash a JASS script.
I have a few specific questions;
An array in JASS is comparible to what in...
I want to add support for unit-indexing libraries people might be using.
I know of:
UnitIndexingUtils (I won't support a deprecated library that has poor indexing)
Are there any others that are being used?
UnitAlive vs UNIT_TYPE_DEAD
Approximate Results & Conclusions:
Tested on latest Warcraft III Version.
UnitAlive is 50% faster than UNIT_TYPE_DEAD.
Comments & Personal Criticism:
Nestharus thought UnitAlive was a wrapper for UNIT_TYPE_DEAD, this strongly differs...
Some people handle the event-approach by using a single trigger per single-unit event, whereas others handle the approach by using a single-trigger with many, many single-unit events. I can't imagine destroying the trigger removes the event from scope, nor the handle index, so wouldn't it be...
This isn't about speed and TriggerSleepAction, it's about thread integrity. I've read a post from Cohadar on wc3c.net (from 2008, mind you), and this is what he says:
This challenges many common practices. Should I change my approach, use short-and-wasteful conditions and start using...
I've opted to run with a unit indexing library because I want access to UnitUserData (to not use hashtables wastefully), and I know it's taboo to use that feature without proper handling.
What would be the pro's and con's of using one or the other? I'm looking for things like:
Expands on the API of handles to allow any handle other than weathereffects or terrain deformations to be saved/loaded from a hashtable. Pow!
This is a compliment to the common.j natives and to the TypeCasting Library.
this.typeid is a native vJass utility that retrieves the struct instance from whence it was allocated. I'd just like to know if there's a way to set that value after the allocation method, because I want a parent struct to call a child struct's methods even though the child struct was not the...