Brain nodes
Deciding
Inside a brain function: weighing one thing against another.
- Activities
brain/decide/CountHow many activities its kind weighs. - Activity's name
brain/decide/NameAn activity's name ("-" for none). - Activity named
brain/decide/FindAn activity of its kind by its name (Fright, Engage, a mod's own...); -1 when its kind has none of that name. - Activity under way
brain/decide/RunningThe activity it is doing now by what it is doing - Is under way
brain/decide/IsRunningWhether an activity says it is under way. - Activity it is doing
brain/decide/DoingThe activity it last took up (-1 none). - Set activity it is doing
brain/decide/SetDoingTakes an activity as the one it is doing - without beginning it or ending the one before. - Weigh activity
brain/decide/ScoreHow much it wants an activity now, 0 not at all to 1 nothing matters more - Note what it is worth
brain/decide/ScoredKeeps what an activity was weighed at, for the debug view and the brain debugger. - Begin activity
brain/decide/BeginStarts an activity - End activity
brain/decide/EndLets an activity go - Thinks every
brain/decide/EverySeconds between one weighing up and the next for its kind (0.2 unless a mod says). - Stickiness
brain/decide/StickinessHow much an activity under way has to be beaten by before it is dropped, for its kind (0.05 unless a mod says). - Bar to beat
brain/decide/BarWhat another activity must be worth to take over - Think again in
brain/decide/DecideInWeighs up again no sooner than this many seconds from now - at once all the same when something happens.
Modding