-
StarCraft - randcondjmp - Number Generator v1.zip-
StarCraft - randcondjmp - Number Generator v2.zip(Super-compressed, used 7-zip; seriously, the ZIP is like 1/6 of the actual filesize.) (Based on v1.)
Okay, this program, programmed using the programming language Turing, was programmed to take input in the form of a positive integer from 1 to 100 and convert it into a percent for StarCraft's iscript.bin file. Included in this ZIP is the source code in text and in Turing source, so if you don't trust the EXE file, well then there you go; no malice intended.Retarded Legal Agreement here: By using this program, you agree that I (as in the maker) cannot be held liable for damage to your computer caused by this program by itself, yada yada yada, blah blah blah, more vague legal notices in EULA and ToS, etc., etc., woohoo!-
v1 note: If there should be another version, then I'll add a gritty menu-esque function to allow you to choose whether you want to save an output TXT file. It would also allow you to pick if you want to convert the number backwards, to a normal percent (in case you ever forget what the number was).
And I am aware that the calculation might be dead easy, but I thought this program would make it all the more convenient. Hooray!-
v2: A menu has been added, and now you can navigate it to convert numbers both ways.
Post has been edited 2 time(s), last time on Sep 27 2008, 6:12 am by Hydrolisk.
Useful, definitely going in my modding cabinet.
None.
Or you could just put number * 255/100 into a calculator...
None.
*lulz*
I know. I knew that while I was making this. I'm just saying, it's a little more convenient, especially if the user doesn't already know how to convert the numbers.
... wow... How completely pointless... Why didnt you make a series randcondjmp maker so that someone can make a series of 5 randcondjmps that all have the same probability of firing?
I agree. People wouldn't be saying "Or I could calculate ...", they would instead be saying "Now I don't have to calculate ...".
TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB -
topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig -
topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!
I agree. People wouldn't be saying "Or I could calculate ...", they would instead be saying "Now I don't have to calculate ...".
... wow... How completely pointless... Why didnt you make a series randcondjmp maker so that someone can make a series of 5 randcondjmps that all have the same probability of firing?
I don't think I understood either of the above.
Say that there are two randcondjmp ( which I will refer to as RCJ ) in a row with the exact same probablity of firing number. When you test it, you'll find that the first RCJ has a higher observed probablity of firing. I go into deeper explanation of RCJs in my wiki about Tedious Coding.
http://www.staredit.net/wiki/Javascripthttp://www.staredit.net/wiki/Tips_for_Tedious_Coding
Ah, yes, I've been meaning to reply a while ago but I kept getting held back.
I've read those, although I thought I'd do something similar but with a number generator.
I need to update this...
-
Updated.
Post has been edited 1 time(s), last time on Sep 27 2008, 6:09 am by Hydrolisk.
Say that there are two randcondjmp ( which I will refer to as RCJ ) in a row with the exact same probablity of firing number. When you test it, you'll find that the first RCJ has a higher observed probablity of firing.
Ah, I believe that with the help of my father, I now understand how to properly implement series of percentages such that each one will have an equal chance of being picked.
I think I can add that to RCJ-generator v3.
-
Here's what I have.
Divide 100% into the number of possibilities there are. The quotient is "a." This is the % that you want to be equal.
"b" has initial value of 100.
"c" is a percent variable.
"d" is the term of the pattern.
1: a = bc (If "a" were 10%, then it would be: 10% = 100c; thus, to complete the equation, c must be .1.) You need 10%.
2: a = (b-a)c (Thus, 10% = (100-10)c; c must be 0.11111... (10/90)) You need 11.11111111...%
3: a = (b-a(d-1))c (Thus, 10% = (100 - 10(3-1))c; c must be 0.125.) You need 12.5%
...
It's hard to explain. But I think I can make it work somehow...
RCJ v3 will allow you to input real numbers (better defined, rationals).
(Cross out the above formulae. There's a better way to explain it, I just don't know how to properly. I know how to do it though.)