Toribash
Originally Posted by Blam View Post
I don't think you can. I just had a look for a function that would get how injured a joint is, get_joint_info doesn't and none others look like they should. Sorry

I've been trying to do this too but haven't found a way to do it.

Originally Posted by Alan View Post
So as my computer sucks and I always play with friends, I can't pretty much see the menu on Toribash, it's just a big white square (I'm talking about main menu and mod menu) I would like to request a script that allows me to pick a random mod from the huge list with just pressing a key or clicking a button, I would seriously be really thankful if someone makes this.

Thank you,
Alan

Since lua cannot read files in a folder I had to list them in a txt file. Put "list.txt" in your mods foldern and "random_mod.lua" in your scripts folder. If you're using windows I can give you an exe that automatically updates the list.txt.

The list was too large to upload to the forum so get it here: http://www.plunder.com/list-txt-download-d24969c0ab.htm (watch out for the ad)
Last edited by Zas; Apr 16, 2010 at 11:44 AM.
Originally Posted by Zas View Post
I've been trying to do this too but haven't found a way to do it.


Since lua cannot read files in a folder I had to list them in a txt file. Put "list.txt" in your mods foldern and "random_mod.lua" in your scripts folder. If you're using windows I can give you an exe that automatically updates the list.txt.

The list was too large to upload to the forum so get it here: http://www.plunder.com/list-txt-download-d24969c0ab.htm (watch out for the ad)

That sucks, also referring to lua not listing files in a directory see: http://forum.toribash.com/showthread.php?t=98956 (windows only however but would be easier/simpler than your windows only program alternative)
:D
@Zas: I use windows XP, thank you.
I'll need that .exe because we don't have the same mods, so it just won't work, I tried and it didn't work.

stderr;
Lua script error in file random_mod.lua: data/script/random_mod.lua:1: bad argument #1 to 'input' (data/mod/list.txt: No such file or directory)
Lua script error in file random_mod.lua: data/script/random_mod.lua:1: bad argument #1 to 'input' (data/mod/list.txt: No such file or directory)
And the file was there.
Last edited by Alan; Apr 16, 2010 at 08:13 AM.
Ok I used the lua windows listing and you won't be needing the exe. Press Q for random mod.
Attached Files
random_mod.lua (600 Bytes, 11 views)
Again, I warn you about my ignorance regarding .lua, but is it possible to create a script that tells you how far you are from the joint limit?
I've been having some trouble because of this cap lately.
We're still kids in buses longing to be free.
joint limit?
:D
Yes, the point when you can no longer move a joint without getting the replay broken.
Here's an example: http://forum.toribash.com/showpost.p...1&postcount=32
We're still kids in buses longing to be free.
Can you make to Tori / player gravity control if he pressing some button example : O, U and H so if he press the upper button [U] gravity goes up for him only and H gravity goes down for him only O will place gravity to normal and the gravitys speed can control in script code like gravity 0.00 0.00 0.00 -10.00... Thanks! [Not quiet sure does all get script or just some hampa and those =O.]
U vähentää painovoimaa, eli nouset ylös, H lisää. O resetoi painovoiman.

Scriptit ei tietenkään toimi multiplayerissä ja haamu ei sitä osaa aavistaa, eikä jos tallennat replayn.
Attached Files
gravity.lua (1.5 KB, 13 views)
Last edited by Zas; Apr 30, 2010 at 03:02 PM. Reason: Upload