Search results

  1. MyPad

    [vJASS] [Snippet] Mouse Utility

    This is a snippet that makes mouse coordinate detection easier for the user. It allows the user to determine the mouse's map coordinates in runtime without having to ever depend on events that the user would usually have to listen to. This also has the added bonus of returning an individual...
  2. TriggerHappy

    [vJASS] Sync (Game Cache)

    Documentation Uses: SyncInteger (Required) PlayerUtils (Optional) Demo Map: Codeless Save and Load (Multiplayer) Core System library Sync requires SyncInteger, optional PlayerUtils /*************************************************************** * * v1.3.0, by TriggerHappy *...
  3. TriggerHappy

    [vJASS] SyncInteger

    Recommended: Sync Library Demo Map: Codeless Save and Load (Multiplayer) Core System library SyncInteger uses optional UnitDex /*or any unit indexer*/, optional GroupUtils, optional xebasic, optional PlayerUtils /*************************************************************** * * v1.2.1, by...
  4. 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 *...
  5. Spellbound

    [vJASS] RiseAndFall

    library RiseAndFall requires optional Table /* RiseAndFall v1.06 by Spellbound and revised by JAKEZINC & AGD. Special Thanks to Wareditor. This simple library can be used to simulate an airborne effect by causing units to bob up and down. It can also be used to make a unit fall from a...
  6. 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...
  7. TriggerHappy

    [vJASS] Spacebar Detection (Multiplayer)

    Requires: SyncInteger Code: library SpacebarDetect initializer Init requires SyncInteger /*************************************************************** * * v1.0.3 by TriggerHappy * ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ * * Allows detection of when...
  8. TriggerHappy

    [Snippet] PreventSave

    PreventSave - Disable Game Saving library PreventSave initializer onInit /*************************************************************** * * v1.0.1 by TriggerHappy * ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ * This library allows you to enable or disable...
  9. TriggerHappy

    [vJASS] GameStatus (Replay Detection)

    Simple API for detecting if the game is online, offline, or a replay. This library is especially useful for giving the ability to run code specifically in replays. For example, you could display debug messages throughout your game that only display in replays. If someone is having an issue with...
  10. 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 ///////////////////...
  11. vuongkkk

    [System] VTexttag

    This is a small system that helps to render a texttag following timeline (using algorithm) Code: Now all in one // ============================================== library DTT /* DynamicTextTag ver 2.3 - vuongkkk */ /* ============================================== * * - What is it...
  12. 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...
  13. 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. *...
  14. Kazeon

    [Snippet] IsUnitCorpse

    library IsUnitCorpse initializer onInit /* Simple library used to check whether a unit has become a corpse or not. How to use: - You must have a dummy caster at your OE - Copy this trigger into your map - Save your map, then re-open it...
  15. 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 /********************************************************************************************...
  16. Bannar

    [Snippet] ConstructEvent

    Provides functionality of generic CONSTRUCT events, replacing them in functionality. An addition event: INTERRUPTED is also defined. Allows to retrieve unit which actually started construction of given structure. Catches: - orc/ne/special by checking workers position - hum and ud by measuring...
  17. 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...
  18. Bannar

    [Snippet] Rects

    A class for manipulating rectangles. Note: the x, y coordinates and the width and height stored inside a wxRect object may be negative and that wxRect functions do not perform any check against negative values. Before uploading this, I've searched for similar libraries and indeed at least one...
  19. Bannar

    [Snippet] Real2D

    Interpretation of real point with helper classes. Real2D is a parent struct to Point and Size structs, and is similar to a Pair object of two reals with ctor, dctor and set2 members to manage its instances. Both Point Coord and Size are a useful data structures for graphics operations. Point...
  20. looking_for_help

    [Extension] Math Parser

    This is a library that allows dynamic evaluation of mathematical string expressions, making it possible to implement an ingame calculator to the game. This is an Extension to the Math library. library MathParser /* v 1.1.0.0...
  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. Cokemonkey11

    [System] Guardian (StructuredDD Extension)

    Guardian Preface: Guardian is an extremely simple system which prevents a unit from taking lethal damage. If a unit is logged in the system, it will propagate a chain of callback effects assigned by the user. This system is made purely for preventing units from dying, and exists as a separate...
  23. 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...
  24. edo494

    [System] ChatCommand

    Finally something useful from me library ChatCommand uses StringIterator /* Made by: edo494 Version: 1.2 Requires: StringIterator - http://www.hiveworkshop.com/forums/jass-resources-412/snippet-stringiterator-246143/ This Library provides very easy way to...
  25. LuizBills

    [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 =...
  26. 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...
  27. 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...
  28. 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...
  29. 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...
  30. 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...
  31. edo494

    [Snippet] StringIterator

    pretty simple, wrote in under hour, but I wanted to share this piece for anyone that does something like I did with chat modes and dont want to write 100 additional lines of code library StringIterator /* Made by: edo494 Version: 1.0 Description...
  32. 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...
  33. 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...
  34. 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...
  35. BPower

    [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...
  36. 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...
  37. 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. /******************************************* * *...
  38. 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...
  39. edo494

    [Snippet] GetUnitCount

    library GetUnitCount uses UnitIndexer/* by edo494 v1.2 requires - UnitIndexer: http://www.hiveworkshop.com/forums/jass-resources-412/system-unit-indexer-172090/ API: function GetUnitCount takes nothing returns integer - returns current number of...
  40. Magtheridon96

    [Snippet] RemoveStringSpaces

    FileIONameSafety was a pretty silly library with very limited application. I decided to get rid of it and replace with something more modular and general-purpose. This library is used to remove the leading and trailing spaces in a string, and it can be used to do what FileIONameSafety did just...
  41. muzzel

    [System] BuffHandler

    System BuffHandler requires: AIDS TimerUtils library BuffHandler requires AIDS, TimerUtils //******************************************* //* .___. //* / \ //* | O _ O | //* / \_/ \ //* .' / \ `. //* / _| |_ \ //* (_/ | | \_) //* \...
  42. TheWrecker

    The Filtering System

    The main purpose of making the Filtering System was to shorten those long many-line condition blocks to only one “if” statement so people don’t have to waste their time writing same thing over and over again. Advocacy/descriptive post (by Magtheridon96): The Filtering System This is usable by...
  43. azlier

    [Snippet] PrintOrders

    This is a fine debugging tool that simply prints order data. It will print the order ID in hex if it's a normal order, in ASCII if it's a rawcode. It also displays the type of order, the unit that was issued the order, and the name of the order (if any). Optionally, it can also display data on...
  44. azlier

    [Snippet] AutocastOrderEvent

    This detects when you turn on or off autocast. You know, by right clicking the ability icon. Yep. If you encounter an autocast order that is unresponsive, please tell me. Six functions available to you: TriggerRegisterAutocastOnEvent takes trigger whichTrigger returns nothing //Readies a...
  45. YourNameHere

    [System] TextTagUtils

    So I made this system to ease the use with texttags, which was pretty uncomfortable. I think everything is explained well enough in the documentation. Requires: JassHelper TimerUtils TextTagUtils v2.0 by YourName TextTagUtils as a system which should ease the use with texttags for you...
  46. N-a-z-g-u-l

    [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...
Top