Saving Random Tints Development ylukyun | 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.
inst
*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
*green
setv va01 rand 0 255
*blue
setv va02 rand 0 255
*swap
setv va03 rand 0 255
*rotation
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: "
outv va00
outs " green: "
outv va01
outs " blue: "
outv va02
outs " swap: "
outv va03
outs " rotation: "
outv va04
|
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. |
|