Market Squad Recruitment Drive
function hideUke()
    run_cmd("opt uke 0")
    for i = 0,20 do
        if(i ~= 20) then
            x,y,z = get_joint_pos(1,i)
            set_joint_pos (1, i, x-100, y-100, z+100)
        end
        temp = get_body_info(1,i).pos
        set_body_pos(1,i,temp.x-100,temp.y-100,temp.z+100)
    end
end

hideUke()

add_hook("new_game","",
    function()
        hideUke()
    end
)

add_hook("camera","",
    function()
        x,y,z = get_joint_pos(0,3)
        set_camera_lookat(x, y, z)
        return 1
    end
)
like this?
:D
I'm gonna start at these tutorials as soon as I can. It's wierd I didn't notice this thread before now.
Sigma | Gata
Lost pet looking for home
How do i make these lua tutorials pleace i realy got to now how to do them.If i now then i should lern all toribash games play good
View my artwork here: Deviant Art
ooo, just found this. Thanks, this is something I have always wanted to try and learn.
Organisation of Awesome: Member.
Nice tutorial. I'm a somewhat newb programmer and it's cool to see how this is so related to java, my only fluent language.
I was unaware Lua was anything like Java.
Radioactive torso's description should be, "You have cancer like wow."
Hi!
Thanks for the great tutorials, I love them. They're my starting point for lua scripting =D

I found an error, though.
On Tutorial three the second code-box says:
function winning()
Player1_Score = get_player_info(1).injury
Player2_Score = get_player_info(0).injury
if(Player1_Score > Player2_Score) then
return "Player 1"
elseif(Player2_Score > Player1_Score) then
return "Player 2"
else
return "Draw!"
end
end

echo("Winning: ^06" .. winning())
The if and the elseif-clauses were supposed to have "greater-than"-characters, I believe. However, it only shows as HTML (>).

Awesome tutorials nonetheless =D
Can't wait to continue reading
Fixed it, thanks for pointing it out.

I guess I had better release some newer ones soon..
:D