Bas: Difference between revisions

Jump to navigation Jump to search
m
(Added a definition for HoldEvent TypeIndex 0.)
 
(20 intermediate revisions by 3 users not shown)
Line 50: Line 50:
|Time to blend the previous animation into this one. Appears to be measured in frames.
|Time to blend the previous animation into this one. Appears to be measured in frames.
|Animation
|Animation
| -
|-
|SequenceLoop
|bool
|Determines whether a sequence (Used with TypeIndex 61) is set to repeat
|Control
| -
| -
|-
|-
Line 99: Line 105:
|7
|7
|BoolSelector
|BoolSelector
|Boolean evaluator - See [[#BitIndex]]{{#tag:ref|Element1 of Player_CutNinja.bas, WiiU 1.5.0|name=e1pcn}}{{#tag:ref|Element0 of Player_FaceDefault.bas, WiiU 1.5.0|name=e0pfd}}{{#tag:ref|Element2 of Player_FaceDefault.bas, WiiU 1.5.0|name=e2pfd}}
|Boolean evaluator - See [[#BitIndex]]{{#tag:ref|Element1 of Player_CutNinja.bas, WiiU 1.5.0|name=e1pcn}}{{#tag:ref|Element0 of Player_FaceDefault.bas, WiiU 1.5.0|name=e0pfd}}{{#tag:ref|Element2 of Player_FaceDefault.bas, WiiU 1.5.0|name=e2pfd}} If false, the element specified by Child0 is evaluated. If true, Child1 is evaluated.
|Control
|Control
|-
|-
Line 299: Line 305:
|47
|47
|PreASSelector
|PreASSelector
|Compares last played animation name, takes StrRef of animation name. Known to accept two Children to test against, plus a default case, but might accept more or less.
|Compares last played animation name, takes StrRef of animation name. Accepts up to 5 children.{{#tag:ref|Element11 of Player_CutChargeWait.bas, WiiU 1.5.0|name=e11pccw}}
|Control
|Control
|-
|-
Line 598: Line 604:
|-
|-
|}
|}


===Children===
===Children===
Line 612: Line 619:


*2 - Unknown (believed to check if Link has any armor equipped)<ref name="e0pfd" />
*2 - Unknown (believed to check if Link has any armor equipped)<ref name="e0pfd" />
*30 - Whether or not Link has a shield equipped.<ref name="e1pcn" />
*5 - Unknown (believed to check if Link is carrying an object)
*15 - Unknown. Appears in Player_WeaponEquipOn after an Attention Selector and a BitIndex 30 check, implying that it has something to do with shields.
*17 - Unknown (believed to check whether Link is airborne)
*30 - Whether or not Link has a shield equipped. (First Child is False, Second Child is True)<ref name="e1pcn" />
*33 - Unknown (believed to check if Link is tired)<ref name="e2pfd" />
*33 - Unknown (believed to check if Link is tired)<ref name="e2pfd" />
*36 - Unknown (believed to check if Link is locked onto a target)
*37 - Whether IsBlunt is set to true in the equipped weapon’s bgparamlist
*37 - Whether IsBlunt is set to true in the equipped weapon’s bgparamlist
*38 - Unknown (believed to check if the current weapon is on fire)
*38 - Unknown (believed to check if the current weapon is on fire). (First Child is False, Second Child is True)
*46 - Unknown (believed to check if Link is crouched)
*46 - Unknown (believed to check if Link is crouched)


Line 702: Line 713:
Known TypeIndex values:
Known TypeIndex values:


*0 - Formerly thought to determine the Impact of attack animations, this TypeIndex is actually used to play sound effects during animations. Known to accept any attack or enemy attack sound effect, but probably works with other sound files.<ref>Compare Event0 of TriggerEvents and Event0 of HoldEvents for most of Link's attack animations</ref>
*0 - Used to play sound effects during animations. Known to accept any attack or enemy attack sound effect, but probably works with other sound files.<ref>Compare Event0 of TriggerEvents and Event0 of HoldEvents for most of Link's attack animations</ref>
*4 - Triggers the animation controller to transition back into the idle stance. The Frame value should be a few before the end of the actual animation, so that the controller can make the blending look natural.<ref>Compare TriggerEvent TypeIndex 4 Frame value for an animation with the number of frames in the actual animation.</ref>
*4 - Triggers the animation controller to transition back into the idle stance. The Frame value should be a few before the end of the actual animation, so that the controller can make the blending look natural.<ref>Compare TriggerEvent TypeIndex 4 Frame value for an animation with the number of frames in the actual animation.</ref>
*7 - Call AS. Passes the strRef to the ASList to retrieve an AS file and starts evaluating it from Element0.
*7 - Call AS. Passes the strRef to the ASList to retrieve an AS file and starts evaluating it from Element0.
*14 - Seems to indicate an enemy has entered a state of being airborne.
*14 - Seems to indicate an enemy has entered a state of being airborne.
*28 - Play audio. Only observed with PV%03d as the value, which corresponds to bfwav files in PlayerVoice.bars, but is believed to be able to play other audio files as well.
*28 - Play audio. Able to play any bfwav file in PlayerVoice.bars.
*29 - Seems to determine when a weapon will bind to a bone. <ref>Player_WeaponEquipOn.bas</ref>




Line 743: Line 755:
*2 - Seems to determine when some attacks (entries in Player_CutJumpSt and others) will connect with targets. Removing TypeIndex 2 causes animations to play halfway through. TypeIndex 2 also tends to have a StartFrame somewhere near the middle of the animation, and an end frame of -1.0, indicating that it may be responsible for blending certain attack animations into one another, particularly those that loop or combine.
*2 - Seems to determine when some attacks (entries in Player_CutJumpSt and others) will connect with targets. Removing TypeIndex 2 causes animations to play halfway through. TypeIndex 2 also tends to have a StartFrame somewhere near the middle of the animation, and an end frame of -1.0, indicating that it may be responsible for blending certain attack animations into one another, particularly those that loop or combine.
*3 - Defines when an attack will deal damage. Value is the damage type. Left: slashing. Stab: piercing. Lower: blunt. {{Check}}
*3 - Defines when an attack will deal damage. Value is the damage type. Left: slashing. Stab: piercing. Lower: blunt. {{Check}}
*14 - Defines when an animation will block attack damage using Link's equipped shield.
*17 - Unknown
*17 - Unknown
*25 - Unknown
*22 - Unknown. Found in Link's Player_CutShieldRide.bas animation, and seems to correspond to the air effects under the board, but can't be applied to other attack animations.
*25 - Unknown. Appears to have something to do with Bone Control, as it is often observed with the !str32 Value "OnlyEye".
*35 - Unknown
*45 - Defines when to accept input to start the next attack.
*45 - Defines when to accept input to start the next attack.
*48 - Defines when to display the trails in the air during an attack.
*48 - Defines when to display the trails in the air during an attack.
*49 - Believed to define the animation frames during which an actor is airborne. Notably used during animations where the actor leaves the ground and in most cases, active during frames when actor remains in the air.
*49 - Believed to define the animation frames during which an actor is resistant to knock back. Notably used during animations where the actor leaves the ground and in most cases, active during frames when actor is airborne.


===References===
===References===
52

edits

Navigation menu