Start Sleeping: Difference between revisions

Finished, can remove stub now?
(Mostly finished page)
(Finished, can remove stub now?)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{stub}}
{{stub}}
The '''start sleeping''' actions the occurs when Mario has performed ten head turn cycles successively. The start sleeping action transitions into the [[sleeping action]] after Mario has finished the nodding animation.
{{Action_infobox
|title= Start Sleeping
|image=
|official name=
|hex= 0x0C400202
|flags= Stationary, Idle, Allow First Person, Pause Exit
|group= Stationary
|id= 0x002
|into= Sleeping action
|out of= Idle
|animation=
|related= Sleep action, [[Waking up]]
}}


== Conditions for Action to Occur ==
The '''start sleeping''' actions the occurs when [[Mario]] has performed ten head turn cycles successively whilst [[idle]]. The start sleeping action transitions into the [[sleeping action]] after Mario has finished the nodding animation.
==Conditions for Action to Occur==
In order for Mario to start sleeping, he has to fulfill the following requirements.
In order for Mario to start sleeping, he has to fulfill the following requirements.
*Mario has to not:
**Be in [[poison gas]] (he will [[Coughing|cough]])
**Have [[quicksand]] depth above 30.0f (he will do [[quicksand action]])
**Be in [[snowy terrain]] (he will [[shiver]])
*Mario has to:
**Have [[health]] above 0x300
**Completed 10 head turn cycles whilst idle without being interrupted
==Behavior==
When Mario performs the start sleeping action, the following can be observed:
*The game performs the following checks on Mario
**check_common_idle_cancels
**If Mario has quicksand depth above 30.0f, he will do quicksand action


* Mario has to not be:
*Mario plays the following [[animations]]:
** In [[poison gas]] (he will cough)
**MARIO_ANIM_START_SLEEP_IDLE
** In quicksand (he will do [[quicksand action]])
**MARIO_ANIM_START_SLEEP_SCRATCH
** In [[snowy terrain]]
**MARIO_ANIM_START_SLEEP_YAWN
* Mario has to:
** Have health above 0x300
** Completed 10 head turn cycles whilst [[idle]] without being interrupted


== Behavior ==
*Mario's eye state is set to "MARIO_EYES_HALF_CLOSED"
Mario performs the "head nod" animation, which can not be moved by using the controller, but can be interrupted by [[taking damage]] or [[dying]].{{actions}}
*The following [[sounds]] play:
**SOUND_ACTION_PAT_BACK
**SOUND_ACTION_TERRAIN_BODY_HIT_GROUND
**SOUND_MARIO_YAWNING
**SOUND_MARIO_IMA_TIRED
 
* After this, Mario will begin [[Sleeping action|sleeping]].
{{actions}}
46

edits