HTOTM: FUSION
Escreves "end" quando quiseres acabar uma function, um if, ou um loop:
function etc()
echo "etc"
end

if etc then
echo "etc"
end

while true do
--etc
end

for i = 0,10 do
echo(i)
end

Para fazeres um script executar um comando, usas a função run_cmd, por exemplo:

run_cmd("set mod judo.tbm")
run_cmd("reset")
"(Ex: apertar Q faz que o TORIBASH começe um novo jogo)"

add_hook("key_down", "y_tst", function(k) if k==string.byte("q") then start_new_game() end end)
Não testei isso, mas deve funcionar.

O blam explica bem os hooks aqui: http://blamsdump.wordpress.com/2009/02/08/lua-tut-03/
Se calhar qualquer dia traduzo os tutoriais dele para português.

A ultima pergunta é díficil, aconcelho a esperares um pouco antes de tentares.
multiple texture uploader! updated: multiple texture remover!
updated pretty colorlist!

<BobJoelZ> ok ive just rebooted my pc and ive tried to activate my reflex on yahoo internet explorer :/ no luck

<Aracoon> I do not enjoy having anal sex with multiple men
Joint Rotation?
Hi, I just wanna ask if it is possible to get a joints rotation, I would like to use it to determine whether tori is face down or face up to the ground.
Not that I know of but there's get_body_info(player, bodyPart).rot
It's a 4x4 rotation matrix. I don't know if you can use that.
Signature temporarily out of order.
They are not directly stored in there. However, you could calculate them:

local function mat2RPY(matrix)
	local function sqrts(a, b)
		return math.sqrt(a^2 + b^2)
	end
	
	local beta = math.atan2(-matrix.r8, sqrts(matrix.r0, matrix.r4))
	if beta == math.pi/2 then
		return 0, beta, math.atan2(matrix.r1, matrix.r5)
	elseif beta == -math.pi/2 then
		return 0, beta, -math.atan2(matrix.r1, matrix.r5)
	else
		local cosb = math.cos(beta)
		return math.atan2(matrix.r4/cosb, matrix.r1/cosb), beta, math.atan2(matrix.r9/cosb, matrix.r11/cosb)
	end
end
Usage:
local alpha, beta, gamma = mat2RPY(get_body_info(player, bodypart).rot)
I think alpha is rotation around x, beta around y and gamma around z. No time to test though.
Signature temporarily out of order.
Thanks for the help . Just one more question, is it possible to get the joint information of the next frame or of the ghost?I'm trying to make an A.I. that will save itself from dq-ing to act as an aikido trainer. I haven't done much yet because I want to determine what is possible first before I get too far into it.
Nope. You have to calculate that yourself with get_body_linear_vel and get_body_angular_vel.
Signature temporarily out of order.