Toribash
@r4ff, it just doesnt do nothing, the script doesnt error but it just doesnt do nothing.
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
Originally Posted by Scorpio000 View Post
i need worldbuilder.lua whe you are able to make 16 objects and i can't find it anywhere.
unfortunately there's no 'script search' thread so i ask here if someone could post this scrpit here?

http://forum.toribash.com/showthread.php?t=22504
the god
Originally Posted by yoyo2009 View Post
function Grips()
grip0 = get_grip_info(0, 11)
set_grip_info(1, 11, grip0)
grip1 = get_grip_info(0, 12)
set_grip_info(1, 12, grip1)
end

add_hook("exit_freeze","mirroruke",Grips)

and

function Grips()
grip0 = get_grip_info(0, 11)
set_grip_info(1, 12, grip0)
grip1 = get_grip_info(0, 12)
set_grip_info(1, 11, grip1)
end

add_hook("exit_freeze","mirroruke",Grips)

I want to add support for grips in my mirror uke script, but this code is not working.
Any help?

--grips
player = {}
player[0]={}
player[1]={}
for i=0, 1 do
    for n=0,1 do
        player[i][n] = 0
    end
end

function main2d()
    set_color(0, 0, 0, 1)
    draw_text("Tori: " .. player[0][0] .. ", " .. player[0][1], 100, 100)
    draw_text("Uke: " .. player[1][0] .. ", " .. player[1][1], 100, 120)
    
end

function grips()
    for i=0, 1 do
        for n=0,1 do
            player[i][n] = get_grip_info(i, n+11)
        end
    end
end

add_hook("draw2d","draw",main2d)
add_hook("exit_freeze","grips",grips)
It's an array with joint states for tori and uke. player[0][0] is tori's right hand, player[1][1] is uke's left hand.
You'll probably want to change the name of the array to grip or something though.
Last edited by War_Hero; Jul 12, 2010 at 03:26 AM.
i have a totally post modern tattoo of a scalene triangle.
<DeadorK> fair maiden
<DeadorK> if the cum is going to be in your mouth
<DeadorK> it shall be in mine as well
Doesnt help, because it does not set any grips.
And it always shows Tori: 0, 0 and Uke: 0, 0

edit:

Ok already did it my script finally supports grips.
Last edited by Yoyo; Jul 12, 2010 at 04:19 AM.
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
Originally Posted by yoyo2009 View Post
Doesnt help, because it does not set any grips.
And it always shows Tori: 0, 0 and Uke: 0, 0

edit:

Ok already did it my script finally supports grips.

Since you picked exit_freeze, it happens after you press space.
i have a totally post modern tattoo of a scalene triangle.
<DeadorK> fair maiden
<DeadorK> if the cum is going to be in your mouth
<DeadorK> it shall be in mine as well
I re-writed the full script and it finally worked, im not sure why, but anyway thanks all who helped me. (Zas, War_Hero)
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
Phhss not like I totally fixed your initial script or anything
:D
That script was only a test...
I used it to learn the basics of lua so i could make the mirror uke thingy.
But anyway thanks blam.
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
Is there some way to pass arguments to lua scripts when I call them with /ls ?

If don't, how my script can read text entries from the chat console? I've seen an example from the SDK/ directory that detects when something is put in the chat console, but it fails in actually reading the message. It only returns:

CONSOLE(4): Disconnected. Lost contact with the server
add_hook('console', 'uniquenamehere', function(s,i) if s == "cmd" then do_stuff() end end)

Using that, the function do_stuff will be called if you echo "cmd" without quotes.

There's no way that you can pass info with /ls.