Over time and multiple projects I have found myself importing and extending the same functions which I find myself needing again and again.
Here are a bunch of string functions which I find I cannot do without and are sorely missing from the SC2 functions library:
Contents
including but not limited to:
string manipulation
trim whitespace from start/end
split strings using delimiter
extract first section from string (using delimiter)
remove first section from string (using delimiter)
string equality
string comparisson (alphabetically)
vowel/constenents
Debugging
debugging function (with switches to turn on/off, pause between outputs, output to file)
assert - usefull debugging technique to ensure values are reasonable and alert when things go wrong
various "x to string" conversions which make debugging using the gui easier for example: debug_s(str_unit_pairs("looking at the unit", u, str_point_pairs("at location", p, str_real_pairs("with energy", e, ""))) prints the othput "looking at unit = marine, at location = (120, 45), with energy = 31." This is a quick way to chan strings together using the gui for quicker debugging.
catalog reading/manipulation
reading catalog entries/fields
downloading and instalation
I have uploaded the file on SC2Mapster here:
strings library
Just open the file in the map editor, select the whole lot and copy/paste into your own project for access.
Some of the functions are in GUI some in galaxy (unfortunately I could not figure out how to access galaxy at first. Otherwise they would ALL be in galaxy) but if you are still using the GUI you can access the galaxy scripts by using the "custom code" action and calling the function that way (remembering that the editor appends variables with "lv_")
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Description
Over time and multiple projects I have found myself importing and extending the same functions which I find myself needing again and again.
Here are a bunch of string functions which I find I cannot do without and are sorely missing from the SC2 functions library:
Contents
including but not limited to:
string manipulation
Debugging
catalog reading/manipulation
downloading and instalation
I have uploaded the file on SC2Mapster here: strings library
Just open the file in the map editor, select the whole lot and copy/paste into your own project for access.
Some of the functions are in GUI some in galaxy (unfortunately I could not figure out how to access galaxy at first. Otherwise they would ALL be in galaxy) but if you are still using the GUI you can access the galaxy scripts by using the "custom code" action and calling the function that way (remembering that the editor appends variables with "lv_")