Template:BrawlHitboxFlags1Parser: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo edit summary
(a long-overdue effect correction/standardisation (none -> inert))
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
|r|rebound={{#sub:{{{1|}}}|3|1}}
|r|rebound={{#sub:{{{1|}}}|3|1}}
|c|clang={{#sub:{{{1|}}}|4|1}}
|c|clang={{#sub:{{{1|}}}|4|1}}
|t|type={{#switch:{{#sub:{{{1|}}}|5|5}}|00000=Typeless|00001=Head|00010=Body|00011=Butt|00100=Hand|00101=Elbow|00110=Foot|00111=Knee|01000=Throwing|01001=Weapon|01010=Sword|01011=Hammer|01100=Explosive|01101=Spin|01110=Bite|01111=Magic|10000=PK|10001=Bow|10010=<span class="error">Type 18</span>|10011=Bat|10100=Umbrella|10101=Pikmin|10110=Water|10111=Whip|11000=Tail|11001=Energy|11010=<span class="error">Type 26</span>|11011=<span class="error">Type 27</span>|11100=<span class="error">Type 28</span>|11101=<span class="error">Type 29</span>|11110=<span class="error">Type 30</span>|11111=<span class="error">Type 31</span>}}
|t|type={{#switch:{{#sub:{{{1|}}}|5|5}}|00000=Typeless|00001=Head|00010=Body|00011=Butt|00100=Hand|00101=Elbow|00110=Foot|00111=Knee|01000=Throwing|01001=Weapon|01010=Sword|01011=Hammer|01100=Explosive|01101=Spin|01110=Bite|01111=Magic|10000=PK|10001=Sacred|10010=<span class="error">Type 18</span>|10011=Bat|10100=Umbrella|10101=Pikmin|10110=Water|10111=Whip|11000=Tail|11001=Energy|11010=<span class="error">Type 26</span>|11011=<span class="error">Type 27</span>|11100=<span class="error">Type 28</span>|11101=<span class="error">Type 29</span>|11110=<span class="error">Type 30</span>|11111=<span class="error">Type 31</span>}}
|a|air|aerial={{#sub:{{{1|}}}|14|1}}
|a|air|aerial={{#sub:{{{1|}}}|14|1}}
|g|ground|grounded={{#sub:{{{1|}}}|15|1}}
|g|ground|grounded={{#sub:{{{1|}}}|15|1}}
|s|sfx={{#switch:{{#sub:{{{1|}}}|18|5}}|00000=None|00001=Punch|00010=Kick|00011=Slash|00100=Coin|00101=Bat|00110=Paper|00111=Shock|01000=Burn|01001=Splash|01010=<span class="error">SFX 10</span>|01011=Explosion|01100=<span class="error">SFX 12</span>|01101=Thud|01110=Slam|01111=Thwomp|10000=Magic zap|10001=Shell|10010=Slap|10011=Pan|10100=Club|10101=Racket|10110=Aura|10111=<span class="error">SFX 23</span>|11000=<span class="error">SFX 24</span>|11001=<span class="error">SFX 25</span>|11010=<span class="error">SFX 26</span>|11011=Bat crack|11100=<span class="error">SFX 28</span>|11101=<span class="error">SFX 29</span>|11110=<span class="error">SFX 30</span>|11111=<span class="error">SFX 31</span>}}
|s|sfx={{#switch:{{#sub:{{{1|}}}|18|5}}|00000=None|00001=Punch|00010=Kick|00011=Slash|00100=Coin|00101=Bat|00110=Paper|00111=Shock|01000=Burn|01001=Splash|01010=<span class="error">SFX 10</span>|01011=Explosion|01100=<span class="error">SFX 12</span>|01101=Thud|01110=Slam|01111=Thwomp|10000=Magic zap|10001=Shell|10010=Slap|10011=Pan|10100=Club|10101=Racket|10110=Aura|10111=<span class="error">SFX 23</span>|11000=<span class="error">SFX 24</span>|11001=<span class="error">SFX 25</span>|11010=<span class="error">SFX 26</span>|11011=Bat crack|11100=<span class="error">SFX 28</span>|11101=<span class="error">SFX 29</span>|11110=<span class="error">SFX 30</span>|11111=<span class="error">SFX 31</span>}}
|l|slvl={{#switch:{{#sub:{{{1|}}}|24|2}}|00=S|01=M|10=L|11=H}}
|l|slvl={{#switch:{{#sub:{{{1|}}}|24|2}}|00=S|01=M|10=L|11=H}}
|e|effect={{#switch:{{#sub:{{{1|}}}|27|5}}|00000=Normal|00001=None|00010=Slash|00011=Electric|00100=Freezing|00101=Flame|00110=Coin|00111=Reverse|01000=Slip|01001=Sleep|01010=<span class="error">Effect 10</span>|01011=Bury|01100=Stun|01101=<span class="error">Effect 13</span>|01110=Flower|01111=<span class="error">Effect 15</span>|10000=<span class="error">Effect 16</span>|10001=Grass|10010=Water|10011=Darkness|10100=Paralyze|10101=Aura|10110=Plunge|10111=Down|11000=Flinchless|11001=<span class="error">Effect 25</span>|11010=<span class="error">Effect 26</span>|11011=<span class="error">Effect 27</span>|11100=<span class="error">Effect 28</span>|11101=<span class="error">Effect 29</span>|11110=<span class="error">Effect 30</span>|11111=<span class="error">Effect 31</span>}}
|e|effect={{#switch:{{#sub:{{{1|}}}|27|5}}|00000=Normal|00001=Inert|00010=Slash|00011=Electric|00100=Freezing|00101=Flame|00110=Coin|00111=Reverse|01000=Slip|01001=Sleep|01010=<span class="error">Effect 10</span>|01011=Bury|01100=Stun|01101=<span class="error">Effect 13</span>|01110=Flower|01111=<span class="error">Effect 15</span>|10000=<span class="error">Effect 16</span>|10001=Grass|10010=Water|10011=Darkness|10100=Paralyze|10101=Aura|10110=Plunge|10111=Down|11000=Flinchless|11001=<span class="error">Effect 25</span>|11010=<span class="error">Effect 26</span>|11011=<span class="error">Effect 27</span>|11100=<span class="error">Effect 28</span>|11101=<span class="error">Effect 29</span>|11110=<span class="error">Effect 30</span>|11111=<span class="error">Effect 31</span>}}
|#default=<span class="error">flag parse error</span>}}<noinclude>
|#default=<span class="error">flag parse error</span>}}<noinclude>
==Usage==
==Usage==

Latest revision as of 22:34, June 4, 2024

flag parse error

Usage

{{BrawlHitboxFlags1Parser|flags in binary|desired property to extract}}

Has to be in 32-digit binary instead of 8-digit hex, because it's way too much work to poke the raw hex (unfortunately).