|
Development Forum |
 |
| 
Octopouf

|
6/29/2015 | |
For example, if a norn is stimulated by eating the cheese, but not stimulated by picking up the cheese, would it still be able to understand/learn that eating cheese gives pleasure? Or wouldn't the norn bother, as there are other things that give immediate pleasure by picking it up.
I want to understand how it works. Is there some writing on this?
Thanks in advance!
*Octopouf greets you* |
 Peppery One
Papriko
    
|
6/29/2015 | 1 |
You should try to make objects as responsive as possible to achieve the best learning, but the pickup stimulus is really just optional.
As long as your eat script works properly and your cheese is marked as edible object, it should work fine.
When you want them to learn, you must use the DRIV or the STIM command. CHEM will cause no learning at all.
Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis... |

Octopouf

|
6/29/2015 | |
Thanks Papriko!
*Octopouf greets you* |
 Prodigal Sock
Ghosthande
    

|
6/29/2015 | |
The entire pickup script is optional, but for the sake of responsiveness, the stimulus isn't quite so much. 
If you include a pickup script, you do want to include a stimulus so that Creatures will know they've picked something up. Picking up and dropping stims don't teach them that food is good to eat... but will help them know the actions were successful. Interacting with stim-less agents can be thought of as if the Norn's body has gone "numb"... he can't feel what he just did, so out of confusion, he might keep trying, or just stand around not knowing what to do. This is not quite as frequent with picking up and dropping as with some other actions, but does still happen sometimes.
But the pickup script itself isn't required for the agent to work right; if you give your agent the pickup BHVR and don't write a pickup script for an agent, the game will use a default script that already has the right stimulus. The same is true for drop scripts (but not any of the other commonly used scripts, AFAIK). The only time you'd really need to write your own pickup/drop scripts is if you want some kind of custom animation, sound effect, or other behavior on picking up/dropping the agent that the default scripts don't do.
 |

Malkin
     Manager

|
6/29/2015 | |
There are some 'global' scripts in a .cos file that cover picking up and dropping with the appropriate stimuli, but if you give your own agent a pickup script, that script is used instead of the global pickup script, so it's important to add in the stimulus if you add a pickup or drop script.
My TCR Norns |
|