Skip to content

Commit

Permalink
Tweak skill-change.
Browse files Browse the repository at this point in the history
  • Loading branch information
expwnent committed Jul 4, 2014
1 parent 9fd5bab commit 8b2208f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/modtools/skill-change.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,25 @@ granularity = granularity or utils.invert({

local args = utils.processArgs({...}, validArgs)

if args.help then
print([[scripts/modtools/skill-change.lua
arguments
-help
print this help message
-skill skillName
set the skill that we're talking about
-mode (add/set)
are we adding experience/levels or setting them?
-granularity (experience/levels)
direct experience, or experience levels?
-unit id
id of the target unit
-value amount
how much to set/add
]])
return
end

if not args.unit or not tonumber(args.unit) or not df.unit.find(tonumber(args.unit)) then
error 'Invalid unit.'
end
Expand Down

0 comments on commit 8b2208f

Please sign in to comment.