Toribash
Prev Previous Post   Next Post Next
Original Post
Basic example...
Go to the data folder then to scripts.

Make a new text file called "first_script.lua".

Add this:

function test()
		run_cmd("echo Stop clicking us! It hurts!")
end
add_hook("player_select","clicky",test)
Save. Open up Toribash and go to the "scripts" section in the menu and choose "first_script"

Click uke and tori!

Edit: made this injury type counter...

function test()
			player_info = get_player_info(1)
			run_cmd("echo injury: " .. player_info.injury)
end
add_hook("enter_freeze", "clicky", test)
An idea here, is someone could make some if statements, and if your score is X - display a message.
don't unban, he has hard coded userid bypasses everywhere.