Search results

  1. Sgqvur

    ExecuteFunc'ing static methods

    Hm... Maybe I've asked this one before but anyway: How to use the ExecuteFunc native which takes a string, i.e function/static method's name to "execute" a static method? struct STRUCT static method FUNCY takes nothing returns nothing call BJDebugMsg("If instead of ")...
  2. Sgqvur

    Snippet tilems

    Requires: Unit Indexer by Nestharus * WorldBounds * Event SpeedMod by Dirac * LinkedListModule GrimexManual (file:///somewhere_on_you_hd/newgen/jassnewgenpack5d/grimext/GrimexManual.html) by PitzerMike A spreadsheet program like OpenOffice.org Calc After clearing the requirements I will try to...
  3. Sgqvur

    Snippet orbiteffect

    An orbiteffect is basically an eyecandy effect that happens to rotate in an circular type of movement (on a sphere's surface). uses/requires: xefx The api is really simple: Create: orbiteffect orbiteffect.add_to_unit(unit u, real radius, integer axis_of_rotation, real angle_in_degrees, real...
  4. Sgqvur

    vJass readonly keyword doesn't work for array members

    Can someone confirm this, or am I "missing" something I use the following script to test: struct S readonly integer array ARRAY[12] readonly integer NOT_ARRAY endstruct function main takes nothing returns nothing local S s = S.create() set s.ARRAY[11] = 5 set...
  5. Sgqvur

    System unitgroup

    unitgroup is an attempt to replace the native group type with a non native one (a struct type) which is much easier to work with and is hopefully faster =). Reasons that make the native group type "hard" to work with is that it doesn't know it's size (how many units there are), requires...
  6. Sgqvur

    Snippet yadw

    yadw?!?! Yup =) yadw - yET aNOTHER dIALOG wRAPPER NOTE: The recommended structure that scripts using this snippet should follow is not supported by vanilla vJass! The Zinc language is a must! NOTE: If scripts using this snippet use more that 62 strings literals (color codes, button names and...
  7. Sgqvur

    How fast can timers execute?

    Which is the lowest value that a timer period can be set and it will execute it's code after it's expiration? I am getting results of 10 004 per second as a maximum value. The snippet I use to test: globals integer i = 0 timer t = CreateTimer() timer t2 = CreateTimer()...
  8. Sgqvur

    Spell FarSightBJ

    FarSightBJ aka "dynamic revealing" reveals a circular area and the invisible units inside to a player and his allies for a given duration. Requires: xecast library by Vexorian ScannerSweep found here Optional: GroupUtils by Rising_Dusk TimerUtils by Vexorian How to...
  9. Sgqvur

    Snippet r17field - TriggerRegisterUnitOutOfRange

    Okay so what exactly is TriggerRegisterUnitOutOfRange, you may ask... well it's this: function TriggerRegisterUnitOutOfRange takes trigger t, unit u, real range returns r17field i.e the "opposite" of: native TriggerRegisterUnitInRange takes trigger whichTrigger, unit whichUnit, real...
  10. Sgqvur

    Spell Optic Blast

    Optic Blast is more or less [pretty much =)] a clone of the Starcraft 2's Colossus Thermal Lance attack. The underlying struct requires feeding it some points and other data after that it caries the actions. Required libraries: TimerUtils GroupUtils LightningRecycle TimedEffect //! zinc...
  11. Sgqvur

    System LightningRecycle

    LightningRecycle allowes efficient usage of lightnings and moving from destroying them to recycling. Can be configured to precache only the types of lightnings that the map is using. There is also a picture of how the different types of lightnings look like (for fast refference). API: Exported...
  12. Sgqvur

    TriggerRegisterUnitInrange vs TriggerRegisterEnterRegion

    Which function do you think/know is better (fires faster), TriggerRegisterUnitInRange or TriggerRegisterEnterRegion in the case of a projectile movement (with high speeds [2000+ for example]). Of course TriggerRegisterEnterRegion with some distance calculations to make sure the entering unit is...
  13. Sgqvur

    Limited Trigger Recycling

    First of all why bother recycling when you can Destroy and Create? Hm... I am not sure (given the much improved hardware these days) but I think if a handle type could be recycled it should (example: unit handles (projectiles, dummies, etc.), timers [of course =)], groups and I can't think of...
  14. Sgqvur

    textmacro sort

    Allows sorting of arbitrary type arrays (+ bonus printing them). The "algorithm" used is called "Selection Sort" I think. All functions/textmacros work in the range [a, b) The comparison function which is required by the sort_handles_<asc|desc> functions and is user defined and is of the form...
  15. Sgqvur

    Diablo 3 Dota like mode

    From videos at YT it seams that Diablo 3 will have PvP mode, but with 4 player cap (at least I think it will be 4). So it will be 2 teams or ffa if am not forgetting something, but why not Blizzard just make a Dota like mode for Diablo 3? It will be kinda different (better), I think a lot of...
  16. Sgqvur

    Your Diablo 3 build

    It seams Blizzard has made a calculator for different builds and it allows sharing them as well so I figured I'll post my =). About the build: It's for the Wizard class, and instead of making him/her a wizard makes the hero a tough fighter relying on physical damage instead (wtf? I...
  17. Sgqvur

    Tutorial tods, splits and joins

    First thing first, what does TOD mean? Well it means Time Of Day (Off Topic: also it's the nickname of the former professional Warcraft 3 TFT player Tod (aka 4K.Tod) who I think is now a decent SC2 player as well =), so yeah go Tod!), which can be tweaked in Warcraft 3 as I think we all know...
  18. Sgqvur

    TriggerRegister<...> to Reg

    Warcraft 3 The Frozen Throne has 126 events [if you count that the unitevent(s) are different from the their corresponding playerunitevent(s), if not then 85 and of course if I've counted them correctly =)]. They are pretty much the same except that unitevent(s) have 4 more events...
  19. Sgqvur

    static (what? not electricity)

    ----I was "thinking" about the word static and it's usage and meaning in the programming languages. I am not sure if the C language was the one to introduce it but it's usage is strange for me at least. I know a little C but I think I know what static does. Prepended to a global...
  20. Sgqvur

    FlushParentHashtable "trouble"

    What does FlushParentHashtable native actually do? I thought it just clears/flushes whatever was in the hashtable passed as an argument but it seams it renders it unusable. globals hashtable ht = InitHashtable() endglobals function test_flush_parent_hashtable takes nothing...
Top