Daedalus Dock - Modules - TypesVar Details - Proc Details

dream

Contains all the behavior needed to play a kind of dream. All dream types get randomly selected from based on weight when an appropriate mobs dreams.

Vars

sleep_until_finishedCauses the mob to sleep long enough for the dream to finish if begun
weightThe relative chance this dream will be randomly selected

Procs

DreamLoopDisplays the passed list of dream fragments to a sleeping carbon.
GenerateDreamCalled when beginning a new dream for the dreamer. Gives back a list of dream events. Events can be text or callbacks that return text. The associated value is the delay FOLLOWING the message at that index, in deciseconds.
OnDreamEndCalled when the dream ends or is interrupted.
OnDreamStartCalled when the dream starts.
WrapMessageCalled by dream_sequence to wrap a message in any effects.

Var Details

sleep_until_finished

Causes the mob to sleep long enough for the dream to finish if begun

weight

The relative chance this dream will be randomly selected

Proc Details

DreamLoop

Displays the passed list of dream fragments to a sleeping carbon.

Displays the first string of the passed dream fragments, then either ends the dream sequence or performs a callback on itself depending on if there are any remaining dream fragments to display.

Arguments:

GenerateDream

Called when beginning a new dream for the dreamer. Gives back a list of dream events. Events can be text or callbacks that return text. The associated value is the delay FOLLOWING the message at that index, in deciseconds.

OnDreamEnd

Called when the dream ends or is interrupted.

OnDreamStart

Called when the dream starts.

WrapMessage

Called by dream_sequence to wrap a message in any effects.