Interaction type: Difference between revisions

Jump to navigation Jump to search
m
MMMMMMMMMMMMM moved page Interaction Type to Interaction type: Sentence casify the wiki
mNo edit summary
m (MMMMMMMMMMMMM moved page Interaction Type to Interaction type: Sentence casify the wiki)
 
(One intermediate revision by one other user not shown)
Line 78: Line 78:
The Door interaction is used for [[door]]s and has a subtype used for Star Doors. When Mario interacts with a door, the game checks to make sure he is [[walking]] or [[decelerating]] before checking if he has enough [[star]]s to open it. If these conditions are met, the game initializes variables for whether to push or pull the door open and a variable for the door’s flag in the save file. If the door Mario interacts with is a regular door, then at this point Mario will either push or pull the door open. If the door Mario interacts with is a star door, a separate check is done and [[Entering Star Door|a different action]] is done for Mario to enter the star door. If the door requires stars to open, the game also runs a check for whether or not the door has been opened before in the save file. If it has not, the game runs an action where Mario uses the power of the stars to open the door. If Mario does not have the required stars, the game displays dialogue dependent on how many stars are required to open the door. In the case where the door requires 70 stars to open (in the game, the [[Endless Stairs]] star door), the game displays dialogue and then allows Mario to open the door.
The Door interaction is used for [[door]]s and has a subtype used for Star Doors. When Mario interacts with a door, the game checks to make sure he is [[walking]] or [[decelerating]] before checking if he has enough [[star]]s to open it. If these conditions are met, the game initializes variables for whether to push or pull the door open and a variable for the door’s flag in the save file. If the door Mario interacts with is a regular door, then at this point Mario will either push or pull the door open. If the door Mario interacts with is a star door, a separate check is done and [[Entering Star Door|a different action]] is done for Mario to enter the star door. If the door requires stars to open, the game also runs a check for whether or not the door has been opened before in the save file. If it has not, the game runs an action where Mario uses the power of the stars to open the door. If Mario does not have the required stars, the game displays dialogue dependent on how many stars are required to open the door. In the case where the door requires 70 stars to open (in the game, the [[Endless Stairs]] star door), the game displays dialogue and then allows Mario to open the door.
===Hurtbox 1 & 2===
===Hurtbox 1 & 2===
Hurtbox 1 & 2 are identical with their behavior. If Mario makes contact with an object, it will simply [[Knockback|knock him back]] and generally hurt him. Some examples include [[Chain Chomp]], [[Mr. Blizzard]], and [[bullet bill]]s.
Hurtbox 1 & 2 are identical with their behavior. If Mario makes contact with an object, it will simply [[Knockback|knock him back]] and generally hurt him. Some examples include [[Chain Chomp]], [[Mr. Blizzard]], and [[Bullet Bill]]s.


The only distinction between the two is solely based on what file they are in.
The only distinction between the two is solely based on what file they are in.
Line 124: Line 124:
This interaction is used for [[Clam]]s, [[Unagi]], and [[Bubba]] and has a subtype for if the object can eat Mario. When the interaction occurs, if the interaction has the can eat Mario subtype, Mario is [[eaten]]. Otherwise if Mario is in a state to take damage and [[knockback]], he does so. If the object has the subtype that it delays the invincibility timer, it does so.
This interaction is used for [[Clam]]s, [[Unagi]], and [[Bubba]] and has a subtype for if the object can eat Mario. When the interaction occurs, if the interaction has the can eat Mario subtype, Mario is [[eaten]]. Otherwise if Mario is in a state to take damage and [[knockback]], he does so. If the object has the subtype that it delays the invincibility timer, it does so.
===BBH Entrance===
===BBH Entrance===
This interaction is used for the [[cage]] Mario jumps into to enter [[Big Boo’s Haunt]]. When the interaction occurs, first the game checks to see if Mario is already in the act of [[entering BBH]]. If he is not, Mario stops riding or holding any objects, the object is updated to reflect that it has been interacted with, and Mario’s interacted object and used object attributes are set to the object. The game then sets Mario’s action depending on whether or not he is in the air. If Mario is in the air, Mario’s action is set so that he will spin into the BBH cage. If Mario is not in the air, his action is set so that he will jump into the BBH cage.
This interaction is used for the [[cage]] Mario jumps into to enter [[Big Boo's Haunt]]. When the interaction occurs, first the game checks to see if Mario is already in the act of [[entering BBH]]. If he is not, Mario stops riding or holding any objects, the object is updated to reflect that it has been interacted with, and Mario’s interacted object and used object attributes are set to the object. The game then sets Mario’s action depending on whether or not he is in the air. If Mario is in the air, Mario’s action is set so that he will spin into the BBH cage. If Mario is not in the air, his action is set so that he will jump into the BBH cage.
===Snufit Bullet===
===Snufit Bullet===
Used for the [[Snufit]] [[bullet]]. When the interaction occurs, the game checks that Mario is not invulnerable or wearing a [[Vanish Cap]]. If he is not but he is wearing a [[Metal Cap]], Mario takes no damage and the sound of the bullets bouncing off him plays. Otherwise, Mario takes damage without knockback, a sound plays, and his action is set based on what knockback the game determines Mario should take from the damage.
Used for the [[Snufit]] [[bullet]]. When the interaction occurs, the game checks that Mario is not invulnerable or wearing a [[Vanish Cap]]. If he is not but he is wearing a [[Metal Cap]], Mario takes no damage and the sound of the bullets bouncing off him plays. Otherwise, Mario takes damage without knockback, a sound plays, and his action is set based on what knockback the game determines Mario should take from the damage.

Navigation menu