Ok, like the subject says, I made some triggers and aliases for a friend to help him with some targeting and attacking issues. Thing is, I script in VBscript, so it would help a lot if someone could help convert these (three or four) items to Lua.
(kinda long..)
Please and Thank You in advance.
(kinda long..)
<triggers>
<trigger
group="automaul"
lines_to_match="2"
keep_evaluating="y"
match="You spring forwards and maul *\'s *\.\n* parries the attack with a deft maneuver\.\Z"
multi_line="y"
regexp="y"
send_to="12"
sequence="10"
>
<send>if "%2" = "left leg" then
world.setvariable "limb", "right leg"
end if
if "%2" = "right leg" then
world.setvariable "limb", "head"
end if
if "%2" = "head" then
world.setvariable "limb", "left leg"
end if
if "%2" = "right arm" then
world.setvariable "limb", "left leg"
end if
if "%2" = "torso" then
world.setvariable "limb", "left leg"
end if
if "%2" = "left arm" then
world.setvariable "limb", "left leg"
end if</send>
</trigger>
</triggers>
<triggers>
<trigger
expand_variables="y"
group="automaul"
match="You have recovered balance."
sequence="10"
>
<send>target @limb
maul @target</send>
</trigger>
</triggers>
<aliases>
<alias
match="automaul on"
enabled="y"
send_to="12"
sequence="10"
>
<send>world.enablegroup "automaul", 1
world.note "Will automatically maul on balance"</send>
</alias>
</aliases>
<aliases>
<alias
match="automaul off"
enabled="y"
send_to="12"
sequence="10"
>
<send>world.enablegroup "automaul", 0
world.note "Will not automatically maul on balance"</send>
</alias>
</aliases>
Please and Thank You in advance.