Search results

  1. PurgeandFire

    [Snippet] Dialog Wrapper

    This is a wrapper to ease the creation of dialogs. It does not offer bonus functionality, but it will ease the process of creating dialogs by giving you a clear API with nice documentation. That is the only goal of this snippet. I realized shortly after I made this that The_Witcher already...
  2. TriggerHappy

    [vJASS] PlayerUtils

    System Code library PlayerUtils /************************************************************** * * v1.2.9 by TriggerHappy * * This library provides a struct which caches data about players * as well as provides functionality for manipulating player colors. * * Constants *...
  3. Kazeon

    [vJASS] [Snippet] LockBone

    Code library LockBone uses optional TimerUtils, optional Table, optional MissileRecycler /* v1.6 */ globals // If only you don't use MissileRecycler private constant integer DUMMY_ID = 'dumi' endglobals /* Description ¯¯¯¯¯¯¯¯¯¯¯...
  4. D.O.G.

    [Snippet] ZLibrary

    Functions require 1 custom destructable. Object Merger script for generating destructable is inside code, demo map is attached to the post. library ZLibrary //// by D.O.G. version 2.6 //// /////////////////////////////////////////////// /////////////////// A P I ///////////////////...
  5. PurgeandFire

    [System] Track

    Track Yes, another remake of an old system. :jd: Although, I believe this one is a bit warranted. It is basically Trackable2 but improved to be more efficient in terms of handles (only creates for active players) and to allow for mass-generation without freezing. (because Trackable2 would...
  6. PurgeandFire

    [System] Combat State

    Combat State A quick, awesome library I made to register when a unit "enters combat" or "leaves combat". The idea has been around for a while, but I haven't seen any libraries/systems for it except for this one: http://www.thehelper.net/forums/showthread.php/91529-In-Combat-Status Which uses...
  7. B

    [vJASS] Missile

    Missile A library made to handle, optimize and ease projectile creation in your map. Core - Missile snippetTutorial - How to use MissileMiscellaneous library Missile Requirements Optional requirements Creators and destructors Module MissileStruct Static method...
  8. Zwiebelchen

    Bresenham Pathchecker

    I was sick of not having a robust IsPathWalkable function that actually checks on a cell-by-cell basis, so I wrote my own based on the Bresenham algorithm of pixel graphics, which is a bit faster than one that uses trigonometry and lots of divisions and multiplications. I think this should be...
  9. B

    [vJASS] ImageTools

    ImageTools For you image needs About Images in Warcraft III There is an excellent documentation about the image handle on wc3.net. Main issues when it come to images: 1. An invalid filepath crashes the game. 2. An invalid imagetype ( index ) crashes the game. 3. Using native...
  10. N

    [System] GetCamOffset

    GetCamOffset(x,y) is the only function to access from outside the library. It returns the camera z offset on a given terrain position, useful for placing the camera correctly for 3rd person cams and so on... however, does not work for destructables with an overfly-z-size, nor for water for...
  11. Bribe

    [vJASS] [Snippet] GUI Unit Indexer -> vJass Plugin

    GUI Unit Indexer with vJass syntax has been realized with this groundbreaking tool. The idea for this came from the user, Spellbound. Note that no changes to the GUI code were needed to make this happen, so the only thing a user would need to do is import this script and make the library a...
  12. Nestharus

    Resources That Have Yet To Be Coded

    If you find yourself at a loss for what to code or want to contribute to the community, then try your hand at coding one of these highly useful resources that has yet to be coded. Furthermore, there are plenty of current libraries that deserve updates (not listed). Designs and specifications...
  13. Malhorne

    [Snippet] Complex Numbers

    If it can be used by someone I share it : library Complex/* ************************************************************************************ * Description * ------------------------- * * This is a library that allows you to use complex number to do some gemotry *...
  14. watermelon_1234

    [Snippet] Dummy Reuser

    This snippet is intended to allow different unit-type dummy units to be recycled. The documentation is inside the code. A test-map is also attached with a simple spell showing the recycling in action. //==========================================================================================...
  15. Bannar

    [Snippet] Bitwise

    Moved here from Byte Not to not spam Mag's thread, plus it's probably more convivient for you to have snippet at the top instead of looking through the thread. Here I provide merged library which contains all miscellanous "byte" snippets. Though, each of bitwese operator could be implement...
  16. Bannar

    [Snippet] Weather

    Struct family I've made some time ago. It was first made in GUI via request few years ago. This might be usefull for users working with weathereffects. Provides nicely coupled api to ease creation and management of weathereffects. You can not define 2 instances of WeatherEffect given rect r if...
  17. Cokemonkey11

    [System] Knockback3D

    Knockback3D Preface Jumps, Knockbacks, and throws are a common jass implementation because there are many design objectives desired for their behavior. No system does everything, and this is no different, but I do hope its features are useful to you. Limitations There are a few important...
  18. Bribe

    [Snippet] New Table

    Table is based on the philosophy that you can use one hashtable for your whole map. What it does is divide one hashtable into many different components, and each system in the map can have its own share of the hashtable. Taking advantage of parent keys and child keys to their fullest extent, the...
  19. TriggerHappy

    [System] UnitDex - Unit Indexer

    System Code library UnitDex uses optional WorldBounds, optional GroupUtils /*************************************************************** * * v1.2.2, by TriggerHappy * ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ * UnitDex assigns every unit an unique...
  20. L

    [Snippet] Debug

    library DebugToolkit /*! by LuizBills | v1.1.0 */ globals private constant real MSG_DURATION = 60 // seconds private constant string COLOR_LOG = "FFFFFF" private constant string COLOR_WARN = "FF851B" private constant string COLOR_ERROR =...
  21. Bannar

    [Snippet] RegisterEvent pack

    A non-trigger registering for native event types. Instead of creating multiple small threads I've decided to upload this as a pack. This resource is also available on github. Back in time when Maggy released RPUE I've written few additional, small snippets to provide similar functionality for...
  22. Bannar

    [Snippet] String

    Jass implementation of string library from c++ accommodated for jass environment. /***************************************************************************** * * String v2.3.0.6 * by Bannar aka Spinnaker * * Jass version of string library. *...
  23. L

    [vJASS] [System] Physical Damage Detection

    Detection of Physical and Spell Damage > GUI Version available here < 1. Introduction and motivation I remember the problem of how to detect physical damage when I stopped mapping years ago. Back then there was no real way to achieve this, and so it is still said today. Although I found...
  24. Bannar

    [Snippet] GetClosestWidget

    Old. Special thanks to Bribe, baassee and Troll-Brain. Rewritten. Modularity, configurability and efficiency - sums up the update. Note: treeOnly parameter (destructable module) cease to exist, reasoning: there is a filter argument already, thus if you want to seach for trees-only do it there...
  25. PurgeandFire

    [Snippet] ReviveUnit

    ReviveUnit Revives a unit in a similar fashion to reviving a hero. Note it does not work on units who do not leave a corpse (e.g. exploded, does not decay etc.). Here is the code: library ReviveUnit /* 2.0.0.0 *************************************************** * * Resurrects a unit...
  26. TriggerHappy

    [Snippet] AutoFly

    I thought Azlier had posted his script here, but I guess not (I know Nestharus had a version at one point). This basically removes the overhead of adding crow form to units before applying a custom fly-height. Requires UnitDex. library AutoFly initializer onInit requires UnitDex...
  27. Kazeon

    [Snippet] GradientText

    Description A simple library used to add degradated color effect to any inputted message. Requirements - HexString by Spinnaker - JNGP Code library GradientText /* v3.2 */ requires HexString /********************************************************************************************...
  28. Bannar

    [Snippet] HexString

    Nothing special, small snippet written as kind of supplement to Ascii. Function HS2I may seem pointless since hex values e.g. 0x2000 are automaticaly converted to decimal integral value. Currently exists for the sake of completeness. Credits to TheDamien for his hash formula designed for...
  29. B

    [Snippet] IsDestructableTree

    Easily distinguish between trees and other types of destructables. For best optimization make sure the harvester unit doesn't get indexed by your unit indexing system ( in case you use one in your map ) library IsDestructableTree uses optional UnitIndexer /* v1.3.1...
  30. Cokemonkey11

    [System] DummyUnitStack

    DummyUnitStack Preface This system is designed to accommodate spell designers who want to use spam-loads of effects, are trying to use dummy casters but static global ones aren't behaving properly, and anything else you can think of for having pre-loaded dummy units on the fly. Design...
  31. Doomlord

    [Snippet] DelayedDummyRecycler

    Extension for Nestharus' Dummy that addresses quite a few annoying issues. Thanks to Geries and BPower for their help in improving this snippet. library DelayedDummyRecycler /* v1.0.0.7 ************************************************************************************* * * Delay dummy...
  32. TriggerHappy

    [Snippet] TimedHandles

    Use this to destroy a handle after X amount of seconds. TimerUtils is optional. library TimedHandles uses optional TimerUtils /************************************************************** * * v1.0.5 by TriggerHappy * ---------------------- * * Use this to destroy a handle after X...
  33. Zwiebelchen

    [System] DestructableHider

    library DestructableHider initializer init /* by Zwiebelchen v1.3 Destructables create an enormous amount of overhead on warcraft III maps, almost the same as units, especially walkable destructables. Thus, a large amount of destructables...
  34. Magtheridon96

    [System] SoundTools

    This system allows you to play a sound immediately after creating it (Which is impossible inside Warcraft III) Basically, all what it does is start a timer and play the sound. It also recycles these sounds to decrease the amount of RAM used up. /***********************************************...
  35. K

    [System] Effect

    I thought it might be a good idea to use one effect array.. since you likely won't have 8191 effects in map at once. library EffectList /* v1.0.0.4 ************************************************************************************* * * This system allows you to easily manage and link...
  36. Almia

    [Snippet] SkillBuild

    library SkillBuild /* v1.3 ************************************************************************************* * * AI System Member * * Allows AIs to automatically learn abilites * ************************************************************************************* * * */ uses /* * *...
  37. Bannar

    [Snippet] DestructableRevival

    Improved version of my TreeRevival. Doesn't support not pre-placed destructables. "Tree" suggests that destructables are filtered, thus IsDestructableTree function is required. All credits go to PitzerMike for his IsDestructableTree and Bribe for it's updated version. Finaly, we got...
  38. Adiktuz

    [System] Jump In Place

    Well, a simple Jump in Place library /* Jump in Place version 1.02 by Adiktuz Basically, this library handles jumping in place, but mainly for usage with the impale system It also allows the user to specify actions to be done after the jump is done...
  39. Anachron

    [Snippet] Stack

    This is my Stack library, full of features. For the purpose of this library, requirements, changelog, api and more check the script header! As always, I am happy about any feedback I get. //...
  40. edo494

    [Snippet] GetLastCastAbility

    Hope this will be more useful then my first submission library GetLastCastAbility uses Table, RegisterPlayerUnitEvent, UnitIndexer /* by edo494 version 1.8d * *============================================================================ * * Requires: * * Table by Bribe -...
  41. Cokemonkey11

    [Snippet] TemporaryHeroAttribute

    TemporaryHeroAttribute Preface: I don't know if any system exists which does this, but if there is a public one, I doubt it's this simple/efficient. I've created this to aid the creation of a spell which I'm helping create for a fellow hive user. If anyone has a request/bug report, I'd be...
  42. Zwiebelchen

    [System] TabReader (Music Interpreter)

    What is this? Basicly, it's a guitar tab interpreter system for Warcraft III, allowing to import very few highly compressed sounds and generate music with them, kind of like a MIDI interpreter software. It was designed to be used in combination with Guitar Pro, but is also compatible to any...
  43. D.O.G.

    [Snippet] Press Spacebar Event

    [System] Press Spacebar and Backspaces Events Following system allows to call functions when spacebar or backspace is pressed. Made by me (D.O.G.). Please, give credits if used. Map with working example attached to the post. Few issues: System work in single player only! Requires dummy unit...
  44. Bribe

    [System] MissileRecycler

    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 have saved over my original test map data so I will have to rebuild the original tests I was using with this resource one day. Until...
  45. Magtheridon96

    [Snippet] RawCodeIndexer

    This snippet just makes my life easier. I won't have to keep saving data into hashtables, I can simply use arrays and store data based on some index below 8190. It may seem stupid to you, but it makes things seem a bit more readable for me. /******************************************* * *...
  46. L

    [System] BuffGenerator

    Buff Generator version 3.3.0 This system allows rapid and easy buff development. System code: library BuffGen /* v3.3.0.0 ************************************************************************************************ * BUFF GENERATOR by Bills * * This system allows rapid...
  47. Bannar

    [Snippet] ClickCouple

    Script is pretty self explanatory. This snippet provides an easy way to detect double click event. Credits to Azlier for orginal DoubleClick. /***************************************************************************** * * ClickCouple v1.4.0.3 * by Bannar * * Detects unit double...
  48. Dirac

    [Snippet] LinkedListModule

    library LinkedListModule /* v2.3.1 Easy implementation of linked lists into structs. *********************************************************************** * * module LinkedList * * - Implement at the top of your struct, must extend array * * thistype next * thistype...
  49. Bribe

    [System] ArrowKeyEvent

    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 1.2.0.0...
  50. Bribe

    [Snippet] IPool

    Updated! Script: library IPool requires Table, Alloc /* IPool 3.0.0.0 by Bribe Special thanks to Pyrogasm on wc3c.net for the original Pools resource, and to Rising_Dusk for popularizing it. Quick Intro of IPool: Do you want a random integer from a multiple-choice list instead of a number...
Top