Bas: Difference between revisions

Changed Parameter TypeIndex list to table
imported>Ginger
(Various TypeIndexes, cleaned up reference tags)
imported>Ginger
(Changed Parameter TypeIndex list to table)
Line 53: Line 53:
|-
|-
|}
|}
Known TypeIndex values:


* 1 - Range evaluation - uses current world temperature.
==== Parameter TypeIndexes ====
* 7 - Unknown (believed to be a flag check. Definitely checks for various Player states, e.g. whether or not Link has a shield equipped. Seems to require StringArray but doesn't always use it.){{#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}}
{| class="wikitable"
* 14 - Range evaluation - uses the movement analog stick's current orientation, in degrees, in counter-clockwise fashion. Accepts -359 to 360. (e.g. 270 and -90 both point directly to the right)
!Index
* 16 - Unknown (range evaluation. Believed to use Link's current movement speed or movement analog stick input){{#tag:ref|Element2 of Player_CutNinja.bas, WiiU 1.5.0|name=e2pcn}}
!Control Type
* 47 - String value switch statement comparison - uses the last played animation name to compare. Known to accept two Children to test against, plus a default case, but might accept more or less.
!Animation Type
* 61 - Unknown (float value comparison, unknown input variable)
!Input (Control)/Output (Animation) Value
* 62 - Unknown (plays material animations like SkinColor_Cold_On and SkinColor_Cold_Off, but details of its makeup are unknown){{#tag:ref|Element1 of Player_SkinColor.bas, WiiU 1.5.0|name=e1psc}}{{#tag:ref|Element2 of Player_SkinColor.bas, WiiU 1.5.0|name=e2psc}}
|-
* 64 - Unknown (used similarly to TypeIndex 67, TypeIndex 80 is often used to choose between this and 67)
|1
* 67 - Play animation
|Range comparison
* 72 - Unknown (range evaluation, unknown input variable)
| -
* 80 - Unknown
|Current world temperature
* 82 - Unknown (range evaluation, unknown input variable)
|-
* 97 - String value switch statement comparison - uses Link's equipped weapon subtype (from its bgparamlist [ProfileUser] WeaponSubtype value) to compare. Known to accept two Children to test against, plus a default case, but might accept more or less.
|7
* 98 - String value switch statement comparison - uses Link's equipped weapon profile (from its bxml ProfileUser value) to compare. Known to accept two Children to test against, plus a default case, but might accept more or less.
|Unknown
| -
|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}}
|-
|14
|Range evaluation
| -
|The movement analog stick's current orientation, in degrees, in counter-clockwise fashion. Accepts -359 to 360. (e.g. 270 and -90 both point directly to the right)
|-
|16
|Range evaluation
| -
|Either Link's current movement speed or movement analog stick tilt{{#tag:ref|Element2 of Player_CutNinja.bas, WiiU 1.5.0|name=e2pcn}}
|-
|44
|String comparison
| -
|Name of a bone, but unknown how it decides which bone name to use.{{#tag:ref|Element0 of Player_LadderJump.bas, WiiU 1.5.0|name=e0plj}}
|-
|47
|String comparison
| -
|Last played animation name. Known to accept two Children to test against, plus a default case, but might accept more or less.
|-
|61
|Float comparison
| -
|Unknown
|-
|62
| -
|Material animation
|StrRef of the animation name. Its Extend uses a secondary animation name for unknown purpose.{{#tag:ref|Element1 of Player_SkinColor.bas, WiiU 1.5.0|name=e1psc}}{{#tag:ref|Element2 of Player_SkinColor.bas, WiiU 1.5.0|name=e2psc}}
|-
|64
| -
|Model animation (unknown difference between this and 67)
|StrRef of the animation name.
|-
|67
| -
|Model animation (main usage)
|StrRef of the animation name.
|-
|72
|Range evaluation
| -
|Unknown{{#tag:ref|Element0 of Player_SwimAtnMove.bas, WiiU 1.5.0|name=e0psam}}
|-
|80
|Unknown (Often used to choose between 64 and 67){{#tag:ref|Element0 of Player_FaceTalkWeaponShowSword.bas, WiiU 1.5.0|name=e0pftwss}}
| -
|Unknown
|-
|82
|Range evaluation
| -
|Unknown{{#tag:ref|Element1 of Player_FaceDefault.bas, WiiU 1.5.0|name=e1pfd}}
|-
|97
|String comparison
| -
|Link's equipped weapon subtype (from its bgparamlist [ProfileUser] WeaponSubtype value)
|-
|98
|String comparison
| -
|Link's equipped weapon profile (from its bxml ProfileUser value)
|-
|}


=== Children ===
=== Children ===
Anonymous user