Loading...
  OR  Zero-K Name:    Password:   

Post edit history

Game mode Random

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
11/7/2024 1:35:47 PMDEranksh4dowhun7er before revert after revert
11/7/2024 9:06:47 AMDEranksh4dowhun7er before revert after revert
Before After
1 bG9jYWwgZnVuY3Rpb24gbm9ybWFscmFuZG9tKCkKCWxvY2FsIHUxID0gbWF0aC5yYW5kb20oKQoJbG9jYWwgdTIgPSBtYXRoLnJhbmRvbSgpCglsb2NhbCB6ID0gbWF0aC5zcXJ0KC0yICogbWF0aC5sb2codTEpKSAqIG1hdGguY29zKDIgKiBtYXRoLnBpICogdTIpCglyZXR1cm4gegplbmQKCmxvY2FsIGZ1bmN0aW9uIGludmVydCh0YmwpCglsb2NhbCB0bXAgPSB7fQoJZm9yIGksaiBpbiBwYWlycyh0YmwpIGRvCgkJdG1wW2pdID0gaQoJZW5kCglyZXR1cm4gdG1wCmVuZAoKbG9jYWwgZnVuY3Rpb24gZmFjdG9yKHNpZ21hKQoJcmV0dXJuIG1hdGguZXhwKG5vcm1hbHJhbmRvbSgpKnNpZ21hKQplbmQKCmxvY2FsIGZ1bmN0aW9uIGludHZhbChvcmlnLCBzaWdtYSkKCXJldHVybiBtYXRoLm1heCgxLG1hdGguZmxvb3Iob3JpZypmYWN0b3Ioc2lnbWEpKzAuNSkpCmVuZAoKCmxvY2FsIHdtb2RjaGFuY2UgPSAxLjAKbG9jYWwgdW1vZGNoYW5jZSA9IDEuMApsb2NhbCBzZXZlcml0eSA9IDAuOApsb2NhbCB3YnJhdGUgPSAwLjE1CmxvY2FsIHVicmF0ZSA9IDAuMTUKbG9jYWwgcmVwdWxzZXIgPSAwLjMKCmxvY2FsIHdfZmxvYXRfa2V5cyA9IGludmVydCh7InJhbmdlIiwgIndlYXBvbnZlbG9jaXR5IiwgInJlbG9hZHRpbWUiLCAibXlncmF2aXR5IiwgInN0b2NrcGlsZXRpbWUiLCAidGFyZ2V0bW92ZWVyc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vbXBhcmFtcy5qdW1wX3JhbmdlIGFuZCBtYXRoLnJhbmRvbSgpIDwgdW1vZGNoYW5jZSB0aGVuCgkJbG9jYWwgZiA9IGZhY3RvcihzZXZlcml0eSkKCQl1ZC5jdXN0b21wYXJhbXMuanVtcF9yYW5nZSA9IHVkLmN1c3RvbXBhcmFtcy5qdW1wX3JhbmdlICogZgoJCXVkLmN1c3RvbXBhcmFtcy5jaGFuZ2VzLmp1bXBfcmFuZ2UgPSBmCgllbmQKZW5k 1 This code has a nicer random distribution, affects more unit properties and has support for future UI integration. However, due to length issues the morph and build option randomization are currently not included.
2 [spoiler]
3 {{{{bG9jYWwgZnVuY3Rpb24gbm9ybWFscmFuZG9tKCkKCWxvY2FsIHogPSBtYXRoLnNxcnQoLTIgKiBtYXRoLmxvZyhtYXRoLnJhbmRvbSgpKSkgKiBtYXRoLmNvcygyICogbWF0aC5waSAqIG1hdGgucmFuZG9tKCkpCglyZXR1cm4gegplbmQKCmxvY2FsIGZ1bmN0aW9uIGludmVydCh0YmwpCglsb2NhbCB0bXAgPSB7fQoJZm9yIGksaiBpbiBwYWlycyh0YmwpIGRvCgkJdG1wW2pdID0gaQoJZW5kCglyZXR1cm4gdG1wCmVuZAoKbG9jYWwgZnVuY3Rpb24gZmFjdG9yKHNpZ21hKQoJcmV0dXJuIG1hdGguZXhwKG5vcm1hbHJhbmRvbSgpKnNpZ21hKQplbmQKCmxvY2FsIGZ1bmN0aW9uIGludHZhbChvcmlnLCBzaWdtYSkKCXJldHVybiBtYXRoLm1heCgxLG1hdGguZmxvb3Iob3JpZypmYWN0b3Ioc2lnbWEpKzAuNSkpCmVuZAoKbG9jYWwgd21vZGNoYW5jZSA9IDEuMApsb2NhbCB1bW9kY2hhbmNlID0gMS4wCmxvY2FsIHNldmVyaXR5ID0gMC44CmxvY2FsIHdicmF0ZSA9IDAuMTUKbG9jYWwgdWJyYXRlID0gMC4xNQpsb2NhbCByZXB1bHNlciA9IDAuMwoKbG9jYWwgd19mbG9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yKHNldmVyaXR5KQoJCXVkLmN1c3RvbXBhcmFtcy5qdW1wX3JhbmdlID0gdWQuY3VzdG9tcGFyYW1zLmp1bXBfcmFuZ2UgKiBmCgkJdWQuY3VzdG9tcGFyYW1zLmNoYW5nZXMuanVtcF9yYW5nZSA9IGYKCWVuZAplbmQ=}}}
4 [/spoiler]
5 The version above modifies all stats by varying amounts; the version below is set to randomly affect one in ten stats.
6 [spoiler]
7 {{{bG9jYWwgZnVuY3Rpb24gbm9ybWFscmFuZG9tKCkKCWxvY2FsIHogPSBtYXRoLnNxcnQoLTIgKiBtYXRoLmxvZyhtYXRoLnJhbmRvbSgpKSkgKiBtYXRoLmNvcygyICogbWF0aC5waSAqIG1hdGgucmFuZG9tKCkpCglyZXR1cm4gegplbmQKCmxvY2FsIGZ1bmN0aW9uIGludmVydCh0YmwpCglsb2NhbCB0bXAgPSB7fQoJZm9yIGksaiBpbiBwYWlycyh0YmwpIGRvCgkJdG1wW2pdID0gaQoJZW5kCglyZXR1cm4gdG1wCmVuZAoKbG9jYWwgZnVuY3Rpb24gZmFjdG9yKHNpZ21hKQoJcmV0dXJuIG1hdGguZXhwKG5vcm1hbHJhbmRvbSgpKnNpZ21hKQplbmQKCmxvY2FsIGZ1bmN0aW9uIGludHZhbChvcmlnLCBzaWdtYSkKCXJldHVybiBtYXRoLm1heCgxLG1hdGguZmxvb3Iob3JpZypmYWN0b3Ioc2lnbWEpKzAuNSkpCmVuZAoKbG9jYWwgd21vZGNoYW5jZSA9IDAuMQpsb2NhbCB1bW9kY2hhbmNlID0gMC4xCmxvY2FsIHNldmVyaXR5ID0gMC44CmxvY2FsIHdicmF0ZSA9IDAuMTUKbG9jYWwgdWJyYXRlID0gMC4xNQpsb2NhbCByZXB1bHNlciA9IDAuMwoKbG9jYWwgd19mbG9hdF9rZXlzID0gaW52ZXJ0KHsicmFuZ2UiLCAid2VhcG9udmVsb2NpdHkiLCAicmVsb2FkdGltZSIsICJteWdyYXZpdHkiLCAic3RvY2twa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