|
Development Forum |
 |
| 
Geek2Nurse
 

|
4/28/2012 | |
I found this while exploring the bluebell.cos script:
scrp 2 4 6 1
targ from
stim writ from 62 1
endm
|
If I have this right, when a creature does whatever "Activate 1" is to a bluebell, the bluebell reacts with stim 62. My documentation says stim 62 is "reached peak of smell7." I may be making a leap in logic here, but I'm assuming that since there are 19 stim smells and 19 types of CA, they are probably the same thing. So I go looking for CA 7 expecting it to be the scent of flowers -- but no, it's the smell of carbohydrates.
Have I gotten completely off track somewhere, or do bluebells smell like carbohydrates? And if so, for what possible reason?
---
Optimist: the glass is half full.
Pessimist: the glass is half empty.
Engineer: the glass is twice as big as it needs to be. |
 Prodigal Sock
Ghosthande
    

|
4/28/2012 | |
Stims aren't used to define what something smells like, just to affect Creatures. Agents actually use the EMIT command to define what smell they emit, and that smell is emitted constantly. The "reached peak of..." seems to be a navigation element that relies on the regular CA which an agent EMITs... the bluebell just hijacks this stimulus, basically giving the creature the illusion of a smell.
"Activate 1" is the "push" action (likewise, "Activate 2" is the "pull" action). So the script runs when a Creature pushes the bluebell.
Why an activated bluebell tells a creature they've approached a source of starch is anyone's guess.
 |
 Sanely Insane
RisenAngel
     Manager

|
4/28/2012 | |
That's probably an oversight made by the developers, especially considering that the default norn doesn't even have a stim for "Reached Smell 7." Basically, pushing a bluebell doesn't do anything special for the norn.
~ The Realm ~
Risen Angel's Creatures Blog
|

Geek2Nurse
 

|
4/28/2012 | |
Seems the purple palm plant in the jungle does the same thing. Poor norns. The world is a confusing place.
I'm gonna make my bluebells emit flower scent. Seems only right!
EDIT: Wait, does that mean creatures can eat bluebells? Then it would make sense, I guess, for them to stim with carbohydrate.
RE-EDIT: Nope, bhvr is 1, so they can't be eaten. The world is back to being illogical. *sigh*
I'm still gonna make them smell like flowers, though.
New question: Smell 4 is "Nutrient (plants)." So, if I made something that emitted smell 4, would that increase the CA level of nutrients in the room that agent was in? Maybe my real question is: Should plants emit smell 4? Or is that not what it's meant for?
---
Optimist: the glass is half full.
Pessimist: the glass is half empty.
Engineer: the glass is twice as big as it needs to be. |
 Sanely Insane
RisenAngel
     Manager

|
4/28/2012 | |
Nutrients, as far as official use goes, is normally used to determine where a plant can grow. Once a plant roots itself, it subtracts some nutrients from the surrounding area. Some plants use up nutrients constantly.
~ The Realm ~
Risen Angel's Creatures Blog
|
 Prodigal Sock
Ghosthande
    

|
4/28/2012 | |
That isn't an eat script anyways, though, it's a push script. A script is like a function, it is "called" when that action is performed on the plant; so this script only runs when a creature or the hand pushes the plant. Stimming a creature with "approached scent X" is also not the right way to go about making it emit a scent, especially in this kind of script, or of feeding the creature.
The carbohydrate CA is only the smell of starch... if starch has a smell. I guess you can imagine that it smells like potatoes, or something. Basically, when a Norn tries to play with the bluebell, it gets this thought in its head that it smells a potato (or something similar) nearby. But there is no actual potato-type food object nearby, so it just confuses the Norn. It doesn't make them feel less hungry, or create real potato-food smell that other Norns will be able to pick up. It's like a hallucination of a potato.
It's useless and nonsensical code, really. It isn't the "right way" to do anything, unless you want to drive Norns insane. 
 |

Malkin
     Manager

|
4/29/2012 | |
The push script should be stimming it with stim 84 - 'played with a friendly plant'.
If you look at 'z_DS agent smells.cos', you can see, for example, that all objects with the species number 2 and the genus number 8 (fruit) are associated with CA number 6 - smells like protein. This linkage is what lets a creature realise that fruit smells like protein, and lets the creature navigate to it.
If you use the 'smells like flowers agent' (forget the name) from the butterfly norns by Amanora, this lets a creature realise that plants and flowers smell of flower, and this knowledge lets them navigate to it. (It also gives flower smell to a few plants in DS).
Detritus often emits a small amount of nutrient and atmospheric water.
A list of the CA can be found on the Creatures Wiki.
In a way, it makes sense that a plant would say 'you've reached the height of starch' if and only if the bluebells and purple plants were originally meant to be edible. It's almost like saying 'eat me'.
The proper way to do it, though, would be to put
or something similar in the creation script, and to advise people to use the butterfly norn agent.
My TCR Norns |

Geek2Nurse
 

|
4/29/2012 | |
Slowly, slowly, this stuff is beginning to make a kind of sense. Or my brain is rewiring to accept the non-sense. Or something. Anyway, thanks for all the explanations and help!
---
Optimist: the glass is half full.
Pessimist: the glass is half empty.
Engineer: the glass is twice as big as it needs to be. |

Malkin
     Manager

|
4/29/2012 | |
Incidentally, the handle fish smell of protein, despite the protein scent not being associated with critters.
Would it damage a norn's brain somehow to have the same scent associated with two classes via CACL? (i.e. can they know that if they follow that 'protein' scent, they'll either get a fruit or a critter.)
My TCR Norns |

Ettina
 
|
4/30/2012 | |
Well, are handle fish edible? If so, do they contain protein?
By the way, I don't care if anyone steals my ideas for their own work, as long as you don't try to stop me from making my own stuff. Many ideas I mention are things I don't have the time or skill to actually do. |
 Prodigal Sock
Ghosthande
    

|
4/30/2012 | |
The "eaten animal" stim does give Norns protein, but as far as I know the Stickeltrout are the only edible fish in C3...
 |
|