Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 2:51 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: opposite of this
PostPosted: January 4th, 2016, 7:46 pm 
Offline

Joined: May 24th, 2005, 2:07 pm
Posts: 9
Location: Netherlands
Hi everybody,

Silly question perhaps, but I'm not a programmer. Is there an opposite identifier to "this" in opus script? I've tried not this, notthis, !this, .this and none of them work.

What I'm trying to do is having only one pushbutton in the downstate (and they're cloned) and the rest forced into the up state.

I'll probably start asking more questions after this, because I'm really bad in any form of programming.

_________________
Opus 9.6 - Win7 pro - i7-970CXI - 8GB


For this message veragodspiel has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: opposite of this
PostPosted: January 5th, 2016, 9:16 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
It's not a silly question, but you're missing a fundamental point - in order to determine if something is '!this' then you need something to compare with 'this'. For example, if you have an array of numbers and you what to change any number that is !7, then you need to read through the array and compare 7 with the value in each element.

Therefore, you will need a 'set' in which compare one the the elements (this). As clones are objects and as an array can hold objects, assigning each new clone to an array element will allow you to create such a set which can then be iterated for such a purpose.

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group