script help request

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

script help request

Postby ianno » Sat Jan 09, 2010 2:45 pm

this is what i wanne do this:

if scene.my.var1 = 1 becomes scene.my.var2 = 1

scene with extra explanation(if you don't understand it:
Rating: rated 5
Filesize: 23.08 kB
Comments: 2
Ratings: 1
download
After one year of inactifyti i will make my comeback!
ianno
 
Posts: 42
Joined: Wed Sep 02, 2009 3:06 pm

Re: script help request

Postby electronicboy » Sat Jan 09, 2010 4:22 pm

so basically
if scene.my.var1 = 1
then
scene.my.var2 = 1
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: script help request

Postby ianno » Sat Jan 09, 2010 5:41 pm

electronicboy wrote:so basically
if scene.my.var1 = 1
then
scene.my.var2 = 1


ehm i know how to make it, but i need ti for more complex thing's, i know that you need to use the "?" in your script. i tryed, but failed :(
After one year of inactifyti i will make my comeback!
ianno
 
Posts: 42
Joined: Wed Sep 02, 2009 3:06 pm

Re: script help request

Postby standardtoaster » Sat Jan 09, 2010 7:18 pm

Code: Select all
Scene.my.var1 == 1 ? {Scene.my.var2 = 1} : {}
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: script help request

Postby ianno » Sat Jan 09, 2010 7:33 pm

Thanks! :D
tomorrow i get to work on something, i hope, amazing :thumbup:
After one year of inactifyti i will make my comeback!
ianno
 
Posts: 42
Joined: Wed Sep 02, 2009 3:06 pm


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 9 guests