Page 5 of 5

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Tue Oct 05, 2010 11:04 pm
by Chronos
electronicboy wrote:okay, what on earth does SPH.SetClassicSPH do?

Sets the SPH values to the classic (Phun) values, duh. :roll:

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Mon Nov 29, 2010 12:08 am
by Rrobba
This is probably one f the most helpful threads out there. Good job.

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Tue Mar 08, 2011 10:50 pm
by woowoo678
Hey, how does if_then_else work? I'm trying to make an object that toggles variables when it collides with something. For example, if the variable is true, it's set to false, if it's not, then it's set to true.

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Thu Mar 10, 2011 11:45 pm
by Sonic
The blank at the bottom is for giving your objects their own custom variable, not shared by the other objects.

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Tue Apr 19, 2011 8:05 pm
by woowoo678
Sonic wrote:The blank at the bottom is for giving your objects their own custom variable, not shared by the other objects.

Thanks! :)

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Wed Apr 20, 2011 6:43 pm
by Someone Else
Try these codes:
Code: Select all
killer = !killer

Code: Select all
{color == [0, 0, 0, 1]} ? {color = [1, 1, 1, 1]} : {color = [0, 0, 0, 1]}

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Wed May 25, 2011 3:41 am
by woowoo678
I need some help, how can I set the density of an entity to be a certain scene.my.variable? Whenever I try to enter "{scene.my.variable}" into the density space, it says that I can't do that.

Help would be appreciated. :)

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Thu May 26, 2011 3:22 am
by Someone Else
Make sure you've already declared scene.my.density as an integer or a float, take off the quotes, and it should work.

Code: Select all
Console:
scene.my.density = 2

Density spot in the script menu:
{scene.my.density}

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Thu May 26, 2011 4:22 am
by TC42
It it still doesn't work, you might be able to try something like scene.my.circle=scene.addcircle({}); scene.my.circle.density=5

This will change the density of the added circle.

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Fri May 27, 2011 12:34 am
by Someone Else
scene.my.circle = e.other
scene.my.circle.density = 5
e.other = scene.my.circle

I think.

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Sun Jul 10, 2011 1:18 pm
by FuzzyLogicBrain
how do i set the angle of gravity?
[edit] ah found it! :)

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Thu Jul 28, 2011 11:54 pm
by Blazemann
How does one use the math.mod (Modulus Operator) on a variable? (X lets say)

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Fri Jul 29, 2011 2:22 am
by KarateBrot
math.mod(a, m) gives you the remainder of a/m.

for example math.mod(scene.my.x, 3). the only thing i needed to use this function was to make a "random" number generator based on the blum-blum-shub generator

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Fri Jul 29, 2011 6:54 am
by Blazemann
KarateBrot wrote:math.mod(a, m) gives you the remainder of a/m.

for example math.mod(scene.my.x, 3). the only thing i needed to use this function was to make a "random" number generator based on the blum-blum-shub generator

Thanks a lot, that is what I am using it for as well. Except mine is just a coin flip.

Need it to be odd, or even, which is why I like my prime number two!

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Thu Sep 08, 2011 1:27 am
by cocolover76
KarateBrot wrote:donÄt


What does donAt mean?
(the A has dots on top)

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Thu Sep 08, 2011 1:30 am
by cocolover76
Chronos wrote:
electronicboy wrote:okay, what on earth does SPH.SetClassicSPH do?

Sets the SPH values to the classic (Phun) values, duh. :roll:


So it makes you have Phun?
(this could be useful if i'm right)

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Sat Jul 19, 2014 10:13 pm
by xvi32
hey a tip ctrl f to search so it can mabye be easier to find stuff

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Fri May 29, 2015 2:06 am
by icrls984
Sorry for bumping this thread, but I was wondering if someone could *try* to make an updated version of this thread? Or maybe we could all cooperatively as a forum try to create a detailed Thyme command/variables list for v2.1.0. A lot of new commands and variables are not listed, and I am pretty sure many people would find a updated list very helpful. =)

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Fri May 29, 2015 5:00 pm
by electronicboy
/

^ That in the console will list all of the thyme commands, its used for searching the thyme commands which is handy to say the least

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Fri Jun 05, 2015 7:43 am
by icrls984
Ahh. Thanks, I should play around with the console more often. :)

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Tue Aug 04, 2015 1:03 am
by FRA32
The way you wrote it should be completely fine, as you set your variable to a string/char (a value with text inside) and then ask if the variabel has a specific text inside, in this case "/". So it should be working properly in your sample

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Sat Feb 11, 2017 10:46 pm
by DrAgon
the math-functions can be found, if you press the function-key F10 and then type
/math (and the enter-key)
then you will get this list:


math.asin
math.divide
math.posivate
math.e
math.boolnegate
math.or
math.tan
math.toFloat
math.max
math.sin
math.min
math.toInt
math.acos
math.HSV2RGB
math.pi
math.log10
math.vec.lenSq
math.vec.len
math.vec.distSq
math.vec.dist
math.cos
math.toString
math.toBool
math.pow
math.subtract
math.sum
math.comp.le
math.comp.ne
math.comp.g
math.comp.ge
math.comp.eq
math.comp.l
math.sqrt
math.and
math.log
math.atan2. atan2(y,x) returns the angle [-pi,+pi] of the vector [x,y]
math.negate
math.mod
math.HSL2RGB
math.addlist
math.RGB2HSL
math.add
math.atan
math.RGB2HSV
math.multiply

Re: [Thyme][1.5.61]Thyme Command/Variables List

PostPosted: Sun Aug 27, 2017 5:03 am
by keithg1229
Wow. this is phenomenal. Been trying to find a way to convert number to integer forever! Thanks!