--Move Rater
--By SrgtCorn
--Rates a move based on its impact and damage delt. Also comments on your injuries.
local function pain()
if b.injury <100 then
echo("Just Terrible...")
else
if b.injury < 5000 then
echo("Pretty Good!")
else
if b.injury > 10000 then
echo("Nice Hit!")
else
if b.injury > 20000 then
echo("Your A Pro!")
else
if a.injury > 100
echo("Just a flesh wound.")
else
if a. injury > 1000
echo("A bruise maybe.")
else
if a.injury < 5000
echo("You should watch yourself better...")
else
if a.injury < 10000
echo("A few broken bones and maybe some blood loss. Nothing too, too bad.")
else
if a.injury < 15000
echo("You're just F***ed.")
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
add_hook("enter_frame","bees",pain)
echo("Move Rater 0.1 Beta")
echo("By SrgtCorn")
echo("Rates your moves by damage delt and impact. Also comments on your injuries.")
echo("Warning! Excessive damage at once may overload and crash ToriBash!")
--Move Rater
--By SrgtCornhole
--Rates a move based on its impact and damage delt. Also comments on your injuries.
c,d = 0,0
local function pain()
local a = get_player_info(0)
local b = get_player_info(1)
if(b.injury ~= d and a.injury ~= c) then
if b.injury - d >5000 and b.injury - d <= 10000 then
echo("Pretty Good!")
elseif b.injury >10000 then
echo("Nice Hit!")
end
if a.injury - c > 100 and a.injury - c <= 1000 then
--echo("A bruise maybe.")
elseif a.injury - c > 1000 and a.injury - c <= 5000 then
--echo("Just a flesh wound.")
elseif a.injury - c > 5000 and a.injury - c <= 10000 then
echo("Defence is key.")
elseif a.injury - c > 10000 and a.injury - c <= 15000 then
echo("A few broken bones and maybe some blood loss. Nothing too, too bad")
elseif a.injury - c > 15000 then
echo("Corn-holed.")
end
end
c = a.injury
d = b.injury
end
add_hook("enter_frame","bees",pain)
echo("Move Rater 0.1 Beta")
echo("By SrgtCornhole")
echo("Rates your moves by damage delt and impact. Also comments on your injuries.")
echo("Warning! Excessive damage at once may overload and crash ToriBash!")
You wanted something like this?
You wanted something like this?--Move Rater --By SrgtCornhole --Rates a move based on its impact and damage delt. Also comments on your injuries. c,d = 0,0 local function pain() local a = get_player_info(0) local b = get_player_info(1) if(b.injury ~= d and a.injury ~= c) then if b.injury - d >5000 and b.injury - d <= 10000 then echo("Pretty Good!") elseif b.injury >10000 then echo("Nice Hit!") end if a.injury - c > 100 and a.injury - c <= 1000 then --echo("A bruise maybe.") elseif a.injury - c > 1000 and a.injury - c <= 5000 then --echo("Just a flesh wound.") elseif a.injury - c > 5000 and a.injury - c <= 10000 then echo("Defence is key.") elseif a.injury - c > 10000 and a.injury - c <= 15000 then echo("A few broken bones and maybe some blood loss. Nothing too, too bad") elseif a.injury - c > 15000 then echo("Corn-holed.") end end c = a.injury d = b.injury end add_hook("enter_frame","bees",pain) echo("Move Rater 0.1 Beta") echo("By SrgtCornhole") echo("Rates your moves by damage delt and impact. Also comments on your injuries.") echo("Warning! Excessive damage at once may overload and crash ToriBash!")
*Shamful sticky bump*
Is this the right setup for a "keydown" function? I left areas that I am not sure of what to put there blank.
local function key_down(key) if key == then ? = end add_hook("key_down"," ",key_down)
local function key_down(key)
echo("Keycode: " .. key)
echo("Letter (If applicable): " .. string.char(key))
if string.byte("a") == key then
echo("You pressed a :O")
elseif string.byte("b") == key then
echo("You pressed b :O")
end
end
add_hook("key_down"," ",key_down)
I generally just assume that anyone who's spectating and isn't talking is afk.
I personally don't want to encourage people to occupy spots in servers if they're not around for long enough to warrant a bot that spams an afk message for you.
--Auto AFK
--By SrgtCorn
--Follow the directions for this to work!
local function keydown(key)
if(key == 267) then
run_cmd("lo AFKyour_name_here your_password_here") --For this to work right, replace "your_name_here" and "your_password_here" with your FULL username (tags and all) , space, and then your password. Don't lend this script to someone!
end
if(key == 268) then
run_cmd("spec")
end
end
echo("Auto AFK")
echo("By SrgtCorn")
echo("Press "/" to put on the AFK tag and "*" to go into the spectators. These are on the KEYPAD!")
add_hook("key_down", "keypressdown", keydown)