creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Help Forum
old
Less Bacteria in the Jungle Terrarium?   
GrayDragonEmily

GrayDragonEmily
United States  

 visit GrayDragonEmily's website: Emily's Observations
  9/27/2015

Is there a way to make it so the jungle terrarium has less bacteria? I mean, just about the same as the rest of the ship. I don't like my creatures constantly getting sick, but I also don't like locking it.

-GrayDragonEmily
 
evolnemesis
Code Monkey

evolnemesis
United States  


  9/28/2015  2

Well, the key is in the 'bacteria.cos' or 'ds bacteria.cos' depending on which you are running... docked worlds will use the "ds bacteria.cos"...

You can make it so bacteria spread evenly through the ship... right now 65% will be in the jungle terrarium, 10% in bridge, norn, and aquatic, and 5% in the desert... you can also control the number... this piece of code in the bacteria .cos file is the key to all this:

*** place in part of ship
setv va01 rand 1 100
doif va01 le 65
*********** grendel area 65%
loop
mvto rand 140 2940 rand 1380 2610
addv va99 1
untl room targ ne -1 or va99 = 50
setv va99 0
elif va01 le 70
*********** ettin area 5% chance
loop
mvto rand 4400 7100 rand 50 790
addv va99 1
untl room targ ne -1 or va99 = 50
setv va99 0
elif va01 le 80
*********** other norn area 10%
loop
mvto rand 760 4070 rand 20 1070
addv va99 1
untl room targ ne -1 or va99 = 50
setv va99 0
elif va01 le 90
*********** other main ship 10%
loop
mvto rand 420 6560 rand 3200 4010
setv va04 grap posx posy
addv va99 1
untl va04 ne -1 and va04 ne 374 and va04 ne 367 and va04 ne 366 and va04 ne 365 and va04 ne 364 and va04 ne 363 and va04 ne 362 and va04 ne 377 and va04 ne 378 and va04 ne 379 and va04 ne 380 or va99 = 50
setv va99 0
else
*********** other aqua 10%
loop
mvto rand 3380 6150 rand 1650 2420
addv va99 1
untl room targ ne -1 or va99 = 50
setv va99 0
endi
velo rand -1 1 rand -1 1
** set random ticks cos if initial bactch all run at 10 will clog up system
** children can all be 10 cos they wil be created at differant times
tick rand 13 17
addv va00 1
untl va00 eq 50

if you look at the first few lines of code, it is rolling a random number from 1-100, putting it in a variable called va01, and checking if it's less than or equal to 65 (doif va01 le 65) to see whether to put it in the jungle... if not, then it checks if its 70 or less (elif va01 le 70, the line right before the next comment) to put in the desert, and then 80 for the next area, 90 for the next, and then the 'else' there means any number over 90 will go in the last area...

To make them appear at equal rates anywhere, you can change those numbers from 65, 70, 80, and 90 to 20, 40, 60, and 80... but, this isn't quite what you want, that would be just spreading out all the extra jungle bacteria into the other rooms... BUT also changing the last line of code shown (untl va00 eq 50) will let you reduce the number of total bacteria in the ark... To set the number of bacteria in the other rooms back to about what they had before, you would reduce the number after the eq in the last line there from 50 to 25.

I recommend you keep a backup of the original bacteria .cos file before changing it, but after it's changed and saved, go to the command console in your world and type: ject "DS bacteria.cos" 7
(or "bacteria.cos" if you are running c3 standalone...) This kills any existing bacteria, and reseeds the ship using your new rules. Any new worlds will use the new rules.


"For small creatures such as we, the vastness is bearable only through love."
"We are a way for the cosmos to know itself." - Carl Sagan

 


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
3 online
Riakodoadm
Arnout
Namiraja
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