Editing User:LVL/SandboxGive feedback
Jump to navigation
Jump to search
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
'''Testing Module:LVL/Sandbox''' | |||
--- | |||
'''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) | |||
--- | |||
'''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.) | |||
--- | |||
'''Function: get_ability_key''' | |||
{{#invoke:Sandbox | --- | ||
* 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) | |||
* 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.) | |||
* | * 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'.) | ||
* | |||
{{ | |||