[Snippet] GetUnitRegeneration

Published: 2012-07-09 13:49
Edited: 2017-12-19 01:36
by Magtheridon96

The title explains it all.Feel free to comment..

Views: 9.8k

BoolexprUtils

Published: 2016-11-08 08:04
Edited: 2017-12-19 23:37
by AGD

True and False BooleanExpressionsCredits goes to Vexorian for the first idea.Vjass versionZinc version

Views: 7.7k

Resource Preloader

Published: 2016-09-03 22:32
Edited: 2017-12-19 23:18
by AGD

Useful snippet for preloading your map resources and avoiding duplicates in preloading.

Views: 9.1k

Random Iteration

Published: 2016-09-04 09:16
Edited: 2017-12-19 22:58
by AGD

This snippet is a replacement to the BJ function [lcode=jass]GetRandomSubGroup[/lcode] with the advantage of being able to directly enumerate random number of units in a group instead of creating a...

Views: 8k

[Snippet] StringIndexer

Published: 2012-01-11 13:13
Edited: 2017-12-18 06:24
by Magtheridon96

This system generates an index for any string below 8191.Jass:I think it's quite nifty.Feel free to comment.

Views: 9.1k

[Snippet] BufferEx

Published: 2012-08-05 10:11
Edited: 2017-12-19 11:39
by Magtheridon96

I was in need of something to make messages in Warcraft III pop out Type-writer style, and that would require a Buffer. And since I had some other things that needed to use a buffer (Like a Unit or...

Views: 9k

[Snippet] DisableUnitMovement

Published: 2012-07-24 19:29
Edited: 2017-12-19 11:28
by Purgeandfire

Disables the movement of a particular unit. This method was discovered by WaterKnight (or at least, it was first exposed to the public by WaterKnight) in this thread:http://www.hiveworkshop.com/for...

Views: 9.1k

[Snippet] Parabolic Function

Published: 2012-01-12 21:00
Edited: 2017-12-18 06:18
by moyack

Parabolic function simplified by SpecI left this function because it allows to understand the formula coefficients... This function takes as a parameters the distance that the parabolic movement sh...

Views: 9.9k

InvulnerabilityChecker

Published: 2016-09-04 00:09
Edited: 2017-12-19 22:58
by AGD

A simple snippet used to check if a unit is invulnerable. False positives from mana shields are also accounted for.

Views: 6.5k

TimerIndexer v1.2

Published: 2016-09-03 22:49
Edited: 2017-12-19 22:57
by AGD

Useful system especially in making an MUI spell which uses timers. Instead of saving the spell data in a hashtable with the handleid of the timer as the parent key, you can just use normal arrays w...

Views: 6.9k