User:LVL/Sandbox: Difference between revisions

LVL (talk | contribs)
No edit summary
mNo edit summary
 
(257 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''Testing Module:LVL/Sandbox'''
{{Tabber|Heroes|Hero Comparison Table|Heroes by release|Voice actors|l1=Heroes|l2=Comparison Table|l3=Release Dates|l4=Voice Actors}}


---
Below is a table comparing all currently playable [[Heroes]] by their stats.
'''Function: get_npc_var'''
---
* Get StompDamage for npc_boss_tier2: {{#invoke:LVL/Sandbox|get_npc_var|npc_boss_tier2|StompDamage}} (Expected: 350)
* Get MaxHealth for neutral_trooper_strong: {{#invoke:LVL/Sandbox|get_npc_var|neutral_trooper_strong|MaxHealth}} (Expected: 1760)
* Get a stat from a non-existent NPC: {{#invoke:LVL/Sandbox|get_npc_var|npc_that_does_not_exist|MaxHealth}} (Expected: Error: NPC 'npc_that_does_not_exist' not found.)
* Get a non-existent stat from a valid NPC: {{#invoke:LVL/Sandbox|get_npc_var|trooper_normal|ThisStatDoesNotExist}} (Expected: 0)
* Test with extra whitespace in arguments: {{#invoke:LVL/Sandbox|get_npc_var|  trooper_normal  |  MaxHealth  }} (Expected: 300)


---
Use the inputs above the table to adjust {{PageRef|Boons}} and {{PageRef|Spirit Power}} and see how stats scale in real-time.
'''Function: get_list_elem'''
---
* Get the 4th value from NearbyEnemyResistanceValues for npc_boss_tier2: {{#invoke:LVL/Sandbox|get_list_elem|npc_boss_tier2|NearbyEnemyResistanceValues|4}} (Expected: 20)
* Get an out-of-bounds index from a list: {{#invoke:LVL/Sandbox|get_list_elem|npc_boss_tier2|NearbyEnemyResistanceValues|100}} (Expected: [blank])
* Get a value from a non-existent list: {{#invoke:LVL/Sandbox|get_list_elem|trooper_normal|NonExistentList|1}} (Expected: [blank])
* Provide a non-numeric index: {{#invoke:LVL/Sandbox|get_list_elem|npc_boss_tier2|NearbyEnemyResistanceValues|four}} (Expected: Error: Invalid index provided. Must be a number.)


---
For heroes with Alt-Fire, click "Show Alt-Fire" or the <code>+</code> icon next to the hero to see Alt-Fire stats.
'''Function: get_ability_key'''
 
---
{{#invoke:Sandbox/LVL|write_hero_comparison_table|0|0|35|500}}  
* Get primary weapon for npc_boss_tier2_weak: {{#invoke:LVL/Sandbox|get_ability_key|npc_boss_tier2_weak|ESlot_Weapon_Primary}} (Expected: citadel_weapon_bosstier2_set)
 
* Get signature ability 3 for npc_boss_tier2: {{#invoke:LVL/Sandbox|get_ability_key|npc_boss_tier2|ESlot_Signature_3}} (Expected: citadel_ability_tier2boss_stomp)
Notes:
* Get ability from an NPC with no BoundAbilities: {{#invoke:LVL/Sandbox|get_ability_key|trooper_normal|ESlot_Weapon_Primary}} (Expected: Error: NPC 'trooper_normal' has no 'BoundAbilities' data.)
* Since Spirit Power scales with Boons (see Spirit Power column), it should also be accounted for when calculating level scaling for Spirit-scaling attributes.
* Get a non-existent ability slot: {{#invoke:LVL/Sandbox|get_ability_key|npc_boss_tier2|ESlot_That_Does_Not_Exist}} (Expected: Error: Slot 'ESlot_That_Does_Not_Exist' not found for NPC 'npc_boss_tier2'.)
* DPS accounts for Burst weapons (like {{HeroIcon|Paradox}} and {{HeroIcon|Lash}}), and if the weapon has a Spin Up mechanic (like {{HeroIcon|McGinnis}}), it is assumed to be fully spun. Bursts that occur right at the 1 second mark may have some inaccuracy due to averaging.
* Sustained DPS also accounts for reload speed, clip size, and the time to empty the clip, and is an average over an infinite time period.
* {{HeroIcon|McGinnis}} and {{HeroIcon|Victor}} DPS and Sustained DPS values are at max spin up.
* {{HeroIcon|Silver (Transformed)}} has no ammo count and no reload.
 
== Navigation ==
{{Tools Navbox}}
{{Stat Navbox}}
 
[[:Category:Pages with tools]]