ElEditors, Interface administrators, Administrators
70,868
edits
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
local skill = args[2] | local skill = args[2] | ||
-- | -- Attribute effect | ||
local effects = { | local effects = { | ||
[1] = {}, | [1] = {}, | ||
[2] = {} | [2] = {} | ||
} | } | ||
if args.effect1 == nil then | |||
args.effect1 = args[4] | |||
end | |||
if args.effect2 == nil then | |||
args.effect2 = args[5] | |||
end | |||
if args.effects1 ~= nil then | if args.effects1 ~= nil then | ||
effects[1] = split(args.effects1) | effects[1] = split(args.effects1) | ||
Line 32: | Line 38: | ||
} | } | ||
-- | -- Extra effects | ||
local counts = {} | local counts = {} | ||
local header_data = { | local header_data = { | ||
Line 39: | Line 45: | ||
} | } | ||
for i = 1, 2, 1 do | for i = 1, 2, 1 do | ||
local desc_arg = args['desc' .. i] | local desc_arg = nil; | ||
if (i == 1) then | |||
desc_arg = args[6] | |||
else | |||
desc_arg = args[7] | |||
end | |||
if desc_arg == nil then | |||
desc_arg = args['desc' .. i] | |||
end | |||
if desc_arg ~= nil then | if desc_arg ~= nil then |