[Snippet] Game Clock

Published: 2018-12-21 03:09
Edited: 2019-06-23 06:52
by nel

Game ClockIt allows you format the time and get the elapsed time.

Views: 3.2k

[Snippet] NoSaveGame

Published: 2018-11-28 23:50
Edited: 2019-02-20 17:12
by nel

NoSaveGameIt prevents to use Save Game function to all players.

Views: 3.4k

[Snippet] IsLineWalkable

Published: 2016-08-27 22:29
Edited: 2017-12-19 22:55
by AGD

This simple snippet allows you to check for the walkability of the terrain between two points.

Views: 8k

[Snippet] StringStrip

Published: 2013-08-15 20:36
Edited: 2017-12-19 20:02
by Purgeandfire

One of my favorite string scripts from Python. I can't live without it. StringStrip will strip the leading or trailing characters from a particular string. This is very, very useful for parsing. Ju...

Views: 14.9k

UnitRecycler

Published: 2016-11-02 03:36
Edited: 2017-12-19 23:32
by AGD

A useful library which allows you to recycle units (even dead ones, but they must leave a corpse), avoiding yet another permanent 0.04kb memory leak for each future CreateUnit() call.Script

Views: 9k

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

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