Toribash
I wondered if you would notice .

Good luck with your script n such
:D
Originally Posted by Blam View Post
I wondered if you would notice .

Good luck with your script n such

Yay, from that script (which kinda works......a bit), I came up with a new script which actually did work untill I added "if a.injury" commands... Scripts apparently just don't like me when I edit them. And again, nothing mentioned in the stderr.txt...

I actually hope this script works out because I think it would be pretty entertaining in game.

--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!")
[CBK]
--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?
:D
Originally Posted by Blam View Post
--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 sure like the word cornholed =P

YAY! It works perfectly!
[CBK]
*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)
[CBK]
Originally Posted by SrgtCorn View Post
*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)
:D
Me...again, with a new idea!

Is it possible to make a script that automatically posts something for everyone in the server to see in the chat box every X seconds?
[CBK]
That's like a spam bot, and we'll ban you if you use one.
Radioactive torso's description should be, "You have cancer like wow."
Originally Posted by Dafe View Post
That's like a spam bot, and we'll ban you if you use one.

I was going to make an expirimental "I am AFK right now." bot that posts a message every couple minutes. People have been practically begging on their knees for something to tell if someone is AFK, so I figured I'd just test with something. But in that case, I'll just think of something else.
[CBK]
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.
Radioactive torso's description should be, "You have cancer like wow."