people playing: 81, servers online: 24, games played: 142,000,000 Top Player: Money

  Toribash Community » Toribash » Mods » Lua scripts
Register FAQ General Rules Community
Reply
 
Thread Tools Display Modes
Old Nov 29, 2009   #51
DoubleDagR
Senior Member
 
Black Belt
Join Date: Oct 2008
Posts: 600



Is there a way to add a small pause from turn to turn?

This is really hard to explain and I can't provide an actual example (I could but I'm thinking maybe there's an easier fix).. basically Uke will perform the joint movements in sequential order regardless of the frames that he shouldn't be doing anything in-between.

For an example; let's say I do something in 70 turns, the first 40 turns (in 10 frame intervals) I move joints then I hold the same joint positions from frame 40 for frame 50 and 60 and then start moving joints again on the 70th turn.

The bot does: 0,10,20,30,40,70
I want the bot to do: 0,10,20,30,40,50,60,70

I tried modifying the script itself, line by line, and just repeating a sequence code if I 'held' a position but eventually it gave me a syntax error so I deleted the file. So I'm wondering maybe there's an easier way? The pauses don't have to happen every frame, for my case anyways, because I'm using linear turnframes. Every 10 would be great.. or even maybe have a box where you can put the turnframes for a whole round.. although, the best scenario would be if uke just did the movements on the proper frames >.>
/set gr 0 0 -30

Last edited by DoubleDagR; Nov 29, 2009 at 09:21 AM..
DoubleDagR is offline   Reply With Quote
Old Dec 1, 2009   #52
Dafe
Serious Business
 
4th Dan Black Belt
Join Date: Jul 2006
Posts: 618
Clan: bncy



I think if you make any change on the joints (i.e. change a relaxed elbow to hold and then click it again to change it back to relax), it will write it to the replay file, and that will update the ghost.

I have another script that I started working on that disregards entering and exiting freezes, but I have a lot of stuff in my project queue, so I can't make any promises about when it'll be done.
Radioactive torso's description should be, "You have cancer like wow."
Dafe is offline   Reply With Quote
Old Jun 18, 2010   #53
acornmax
Junior Member
 
Blue Belt
Join Date: May 2010
Posts: 5



Great work! never seen a such good trainer
acornmax is offline   Reply With Quote
Old Jun 19, 2010   #54
Tr1ckLe
Forumite
 
7th Dan Black Belt
Join Date: Mar 2010
Posts: 1,536



really cool Dafe
| Erkhan | Tr1ckLe | [Hack]<3 |
Tr1ckLe is offline   Reply With Quote
Old Jun 19, 2010   #55
Rustler
Senior Member
 
Black Belt
Join Date: Sep 2009
Posts: 511



GG on year old bump.
Rustler is offline   Reply With Quote
Old 3 Weeks Ago   #56
Skapadez
Junior Member
 
Blue Belt
Join Date: Oct 2018
Posts: 3



Whenever i do this in Mac, it gives me an "unexpected symbol near {" error.
I don't know how to fix this, please help.
Skapadez is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:11 PM.




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
ragdoll fighting game physics fighting game ragdoll fighting physics funmotion joints martial arts karate pc mac free game turn based game