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?
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 (>).