creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Help Forum
old
C3/DS command to make creature eggs invi   
Aliena

Aliena



  4/2/2017

Hi. I recently tried to make another useful agent for wolfing runs, but I can't remember anything to save my life.

I need to find the C3/DS command to make creature eggs invisible and unpicable by norns, as their obsession on putting them inside lifters is killing my wolfing runs at very early generations.

Can someone point me to the right file to change their status, please?

 
Pilla
Fuzzy Dragonhat

Pilla


 visit Pilla's website: Pilla's DS Agents
  4/2/2017  2

In the DS creaturebreeding.cos script, there's the egg laying script.
Its in your Bootstrap\010 DS folder.

You'd have to go to the file and go to this comment:
*create an egg with your baby's moniker

A few lines under this comment, the behaviour of the egg gets set: this is the actions the creatures can execute on the egg.
Currently (on my copy), it's set to 32 which is the "pick up" bhvr flag.

It's this line of code:

bhvr 32

If you change 32 to 0 instead, creatures can't pick up the egg anymore.


EDIT: And if you want the eggs to just be invisible, you can add 16 - the invisibility flag - to the ATTR value.
On my copy, I have

attr 195

To make it invisible, add 16 to 195, which gives 211.


Edit2:
This probably won't work with the eggs that come from muco, only with naturally laid eggs. The eggs from muco are probably in the Norn Egg Layer.cos script.

Hope to help!


Visit my Creatures blog/website - Pilla's DS Agents
Join us on Discord - Caos Coding Cave
Visit/contribute to the Creatures Wiki

 
Pilla
Fuzzy Dragonhat

Pilla


 visit Pilla's website: Pilla's DS Agents
  4/2/2017

...Aaand another edit.

I'm not sure how to approach this exactly, but when a life event happens, the script event 127 gets executed.

That's when you could optionally enumerate through all eggs, setting the attr (or bhvr) values to the values you'd want to use.

enum 3 4 0
attr 211
next


Visit my Creatures blog/website - Pilla's DS Agents
Join us on Discord - Caos Coding Cave
Visit/contribute to the Creatures Wiki

 
Arnout

Arnout



  4/3/2017  2

You might want to take into consideration that Creature Eggs emit Cellular Automata as well. Making them invisible and heavy is certainly a good option, but Creatures (mainly bored Grendels) can still smell CA smell 11 and could try to seek the eggs. This is not a huge problem for the eggs themselves but your Creatures will run around the eggs and might get kind of stuck until they hatch.

In (DS)creaturebreeding.cos and Norn Egg Layer.cos you'll find lines that display: emit 11 # (# being a certain value). Removing these lines or setting the values to 0 will stop Creatures from seeking eggs.

If you want I could edit the breeding files and/or make an agent that constantly makes all eggs untraceable/invisible/"unpickupable" by Creatures and upload them here?

 
Papriko
Peppery One

Papriko



  4/3/2017  1

bhvr 211? Are you sure you didn't make a typo there? The game is very very sensitive with incorrect bhvr flags. DS threw countless bhvr-related tantrums when I developed stuff.

Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Pilla
Fuzzy Dragonhat

Pilla


 visit Pilla's website: Pilla's DS Agents
  4/3/2017

Should've been attr. :p
Thank you for pointing it out!


Visit my Creatures blog/website - Pilla's DS Agents
Join us on Discord - Caos Coding Cave
Visit/contribute to the Creatures Wiki

 
Aliena

Aliena



  4/4/2017

Pilla wrote:

bhvr 32

If you change 32 to 0 instead, creatures can't pick up the egg anymore.


attr 195

To make it invisible, add 16 to 195, which gives 211.




They can still pick up eggs after these changes. Where did I went wrong?

 
Papriko
Peppery One

Papriko



  4/4/2017

How did you apply the changes? In the cosfiles or via the ingame CAOS console?

Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Aliena

Aliena



  4/4/2017

In the cos files. It should be permanent that way, right?
 
Papriko
Peppery One

Papriko



  4/4/2017

Yes, but cosfiles are only read when the world is created. For the changes to apply, you either have to make a new world or use the JECT command to reload the cosfile mid-game.
However, I believe there was this unfortunate detail where JECTing the breeding scripts results in your eggs and/or creatures being deleted. Might mistake it for another file, but I recall something like that happening.


Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Aliena

Aliena



  4/4/2017

Oh, I see. Well, that explains a lot as to why nothing ever changed in my world. It was an existing one.
 


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
0 online
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