User:LVL/Sandbox: Difference between revisionsGive feedback
< User:LVL
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{#invoke:LVL/Sandbox| | '''Testing Module:LVL/Sandbox''' | ||
{{ | |||
| | --- | ||
| | '''Function: get_npc_var''' | ||
}} | --- | ||
{{#invoke:LVL/Sandbox| | * 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) | ||
{{#invoke:LVL/Sandbox| | |||
{{ | --- | ||
| | '''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) | ||
{{#invoke:LVL/Sandbox| | * 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''' | |||
--- | |||
* 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'.) | |||
Revision as of 16:59, 30 September 2025
Testing Module:LVL/Sandbox
--- Function: get_npc_var ---
- Get StompDamage for npc_boss_tier2: Script error: No such module "LVL/Sandbox". (Expected: 350)
- Get MaxHealth for neutral_trooper_strong: Script error: No such module "LVL/Sandbox". (Expected: 1760)
- Get a stat from a non-existent NPC: Script error: No such module "LVL/Sandbox". (Expected: Error: NPC 'npc_that_does_not_exist' not found.)
- Get a non-existent stat from a valid NPC: Script error: No such module "LVL/Sandbox". (Expected: 0)
- Test with extra whitespace in arguments: Script error: No such module "LVL/Sandbox". (Expected: 300)
--- Function: get_list_elem ---
- Get the 4th value from NearbyEnemyResistanceValues for npc_boss_tier2: Script error: No such module "LVL/Sandbox". (Expected: 20)
- Get an out-of-bounds index from a list: Script error: No such module "LVL/Sandbox". (Expected: [blank])
- Get a value from a non-existent list: Script error: No such module "LVL/Sandbox". (Expected: [blank])
- Provide a non-numeric index: Script error: No such module "LVL/Sandbox". (Expected: Error: Invalid index provided. Must be a number.)
--- Function: get_ability_key ---
- Get primary weapon for npc_boss_tier2_weak: Script error: No such module "LVL/Sandbox". (Expected: citadel_weapon_bosstier2_set)
- Get signature ability 3 for npc_boss_tier2: Script error: No such module "LVL/Sandbox". (Expected: citadel_ability_tier2boss_stomp)
- Get ability from an NPC with no BoundAbilities: Script error: No such module "LVL/Sandbox". (Expected: Error: NPC 'trooper_normal' has no 'BoundAbilities' data.)
- Get a non-existent ability slot: Script error: No such module "LVL/Sandbox". (Expected: Error: Slot 'ESlot_That_Does_Not_Exist' not found for NPC 'npc_boss_tier2'.)