From ec8e58e5e387594d980e697dbd332e03f1023c94 Mon Sep 17 00:00:00 2001 From: expwnent Date: Thu, 3 Jul 2014 20:15:40 -0400 Subject: [PATCH] Tweak transform-unit. --- scripts/modtools/transform-unit.lua | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/scripts/modtools/transform-unit.lua b/scripts/modtools/transform-unit.lua index e858c05d4..9a8a79772 100644 --- a/scripts/modtools/transform-unit.lua +++ b/scripts/modtools/transform-unit.lua @@ -1,4 +1,4 @@ ---modtools/transform-unit.lua +--scripts/modtools/transform-unit.lua --author expwnent --based on shapechange by Putnam --warning: will crash arena mode if you view the unit on the same tick that it transforms @@ -31,7 +31,27 @@ validArgs = validArgs or utils.invert({ local args = utils.processArgs({...}, validArgs) if args.help then - --print help message + print([[scripts/modtools/transform-unit.lua +arguments + -help + print this help message + -clear + clear records of normal races + -unit id + set the target unit + -duration ticks + how long it should last, or "forever" + -setPrevRace + make a record of the previous race so that you can change it back with -untransform + -keepInventory + move items back into inventory after transformation + -race raceName + -caste casteName + -suppressAnnouncement + don't show the Unit has transformed into a Blah! event + -untransform + turn the unit back into what it was before +]]) return end