creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
ccsf | links | advice | chat | polls | resources | post

  

Saving Random Tints   Development   ylukyun | 10/25/2014  log in to like post  5

updated10/25/2014
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.

 


downloads
cobs
adoptions
creaturelink
metarooms
breeds
 
gallery
art
wallpaper
screenshots
graphics
promos
sprites
dev
hack shack
script reservations
dev resources
active projects
dev forum
 
community
links
advice
chat
polls
resources
creatchi
 
forum
bookmarks
general
news
help
development
strangeo
survivor
mycaves
log in
register
lost pw
1 online
Narol
creatures caves is your #1 resource for the creatures artificial life game series: creatures, creatures 2, creatures 3, docking station, and the upcoming creatures family.

contact    help    privacy policy    terms & conditions    rules    donate    wiki