function UpdateLockoutGlobal(global_name,global_value,global_duration) local player_list = eq.get_players_in_instance(instance_id); -- Lua loop basics: -- k = key which is generally the current index of the array -- v = value for the current key, in this example it would be the character ID for k,v in pairs(player_list) do eq.target_global(global_name, global_value, global_duration, 0,v, 0); end end