Saving Random Tints Development | 10/25/2014|| 5 |
How to output random tints so you can save the ones you like. Applies to C3, DS and CV.
Ever played around with the TINT and RAND commands only to find you couldn't save the cool effects you got? Unfortunately, tints can't be extracted from an object once they're applied. However, running this script should output the tint after applying it.
*red random value between 0 and 255
*you can alter the minimum and maximum to get values in a certain range
setv va00 rand 0 255
setv va01 rand 0 255
setv va02 rand 0 255
setv va03 rand 0 255
setv va04 rand 0 255
*put the relevant classifier in here
*you can use "targ hots" instead if easier
rtar 2 11 2
*apply the random values the script has chosen
tint va00 va01 va02 va03 va04
*now output them along with labels
outs "red: "
outs " green: "
outs " blue: "
outs " swap: "
outs " rotation: "
This script can be saved as a .cos file and injected with the JECT command, or you can use the CAOS tool.
This can also be used with Kezune's Custom Creature Tutorial to find colors for a creature or new breed.