I wrote a simple function where you can determine whether or not to execute some code based on a percentage chance 0% - 100%.
In order to test it out type "-chance" into the chat area during game play.
The two "UI - Display" actions will need to be disabled or deleted outside of demoing.
Not to make your work seem trivial, but this is almost too simple to be useful as a library. It's already easy enough to set a variable to a random value and check the result as a condition in an If/Then/Else function...
Malum Ruina: SC2Mapster
Eternal Exile: SC2Mapster
Spine Crawler Madness: SC2Mapster
Xeno Crisis: SC2Mapster
This is true but I do believe functions like these can really help mapmakers. So I propose that we make a library of many of these simple functions that seamlessly blends into the built in triggers.
Triggers not working properly? Get a check up from Dr. Debug!
You must login to post a comment. Don't have an account? Register to get one!