Utility Library

Utility Library

This is a simple utility library that adds some useful functions for Triggers in the Starcraft 2 Editor. If you have any suggestions for useful features, post them here! :-)

Features

  • Efficient For Loops
  • Is True / Is False boolean Conditions, so you no longer have to do "My Boolean Variable == true", you can say "My Boolean Variable"

What are Efficient For Loops?

See this thread for a description of the problem with the current for loops. Basically, nesting for loops causes an exponential growth of code lines, as each for loop duplicates the contained code twice (to deal with both the case of increasing loops as well as decreasing loops). The thread says 6 nested for loops = 10k lines of code.

This is easily fixed by having two different for-loop actions, one for increasing and one for decreasing. Here's an example of the Trigger Editor with 8 nested for loops using Utility Library: Nested For

Here's the code produced: GalaxyScript

While not pretty, it is a lot more efficient than the built-in solution - about 125 lines of code generated! :-)

Download

File Name Status Version Downloads Date
Utility Library v0.1 R - 269 13/09/2010
Utility Library
Utility Library

Dear youtuber!
Have you a channel youtube and want to bring your Video to quality visitors?
Do you want your video to appear on our website?
Do you want to become partner with us?
Just 3 steps to become our partner:
Step 1: Make video review for mods, addons, plugins, ... which you like
Step 2: Upload this video to youtube and our link to your video description
Step 3: Send the youtube video link via message to http://fb.com/9lifehack or leave a comment in the post. We will add your video in the our post, it will help you have more view.
JOIN to get more youtube view with us!!!!

Related Posts

Smarty Productivity Happiness

9LifeHack.com - make things smart