The Daily Click ::. Forums ::. Klik Coding Help ::. Test if ONE out of ALL objects meets a condition?
 


 

Posted By Message
This thread has been locked by an administrator

SevenT2 - [GameStormers]



Registered
  24/07/2002
Points
  882

Wii OwnerVIP Member
25th November, 2010 at 00:43:43 -

Hi! Another interesting problem. I want to test if at least one of my objects meets a condition, for example "Alt Value A = 2" but, i want that code to be able to activate when at least one of them meets it... THEN deactivate when none of them meet it.
At the moment, the easy coding way of doing it:

If AA of Object = 2 THEN Do Stuff
If AA of Object != 2 THEN Don't Do Stuff

This doesn't work, because there is always going to be objects that don't meet the command. Also, I can't localise it down to a specific object, because the action that needs to be performed is fading through to a different song on that command, then fading back when it is no longer true.

HELP?!

 
--------------------------
Current Projects:
+
+ S#32
+ Ricky Runfast!
+ The GameStormers (YouTube Channel)
+ Final Fart! (Board Game)


The GameStormers:
[ http://www.thegamestormers.com ]

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
25th November, 2010 at 01:20:07 -

Always set Global Value A to 0

If AA of Object = 2 then Global Value A = 1

If Global Value A = 1 then Do Stuff.



If you put the events in that order, then Global Value A will hold "1" if one or more objects meet the condition, and "0" if no objects meet the condition. If you need to know the specific object which triggered the Global Value A to = 1, then instead of setting it to 1, set it to the fixed ID of the object.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
25th November, 2010 at 01:20:09 -

edit: Sup andy . I think mine is a bit more complicated. Whoops

http://www.mediafire.com/?rdwh2225ghgha9t

That should give you an idea.

The event triggers once every time only one of the objects meets the condition (flag 0 is on/object is red)



Edited by GamesterXIII

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
25th November, 2010 at 01:26:45 -

GamesterXIII - Hi Your example does work as you mentioned. However I've modified it with the code that I just described. Mine is a bit more easy to read I think.

http://mfa.aquadasoft.com/view/1290648101-atleastone

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
25th November, 2010 at 01:28:36 -

It is . I feel dumb now that I didn't think of an easier method ahaha.

 
n/a

SevenT2 - [GameStormers]



Registered
  24/07/2002
Points
  882

Wii OwnerVIP Member
25th November, 2010 at 02:58:33 -

Haha, Assault Andy, I spent a few more minutes at it and came to the same result that you just described, lol. Just came on now, read that and laughed. We think alike!

 
--------------------------
Current Projects:
+
+ S#32
+ Ricky Runfast!
+ The GameStormers (YouTube Channel)
+ Final Fart! (Board Game)


The GameStormers:
[ http://www.thegamestormers.com ]

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
25th November, 2010 at 13:46:01 -

Gamester:
Is there a reason for that avatar, or are you just trying to be needlessly offensive?
I don't think it's very appropriate...

 
n/a

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
25th November, 2010 at 14:29:43 -

Theres a reason. . . sorta

I believe it is only as offensive as anyone decides to take it though.

 
n/a

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
25th November, 2010 at 14:42:28 -

Yea most people believe thats offensive

 
n/a

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
25th November, 2010 at 15:47:47 -

ITT:

14 year old speaks for everyone.

k.

The OP got what he needed, the thread needs to end here.

Edited by GamesterXIII

 
n/a

HorrendousGames

Sourpuss

Registered
  31/10/2009
Points
  481

VIP MemberEvil klikerGame Of The Week Winner
25th November, 2010 at 16:29:22 -

Sorry to also jump off topic, but I'm going to have to say it's not offensive. Hitler, his staff and population control techniques are what killed all those people during WWII, not the symbol or his mustache. The symbol itself had a different meaning before hand, and is only a tool of identifying ones self during that time period. That would be the equivalent of saying John Wayne Gacy identifies himself by shaking hands, therefore, shaking hands makes you a child molester and serial killer. It's the kind of behavior that leads to people going "he's wearing a turban, therefore he is a terrorist." If you want to choose to be ignorant and associate the wrong thing with something, then that should be your own problem. If Gamester had a picture up of "Mein Kampf" and his title said "this is my bible" then it might be a little offensive, even then it's only an issue when he starts trying to kill of everyone different than him, in that case he only needs the Christian bible to justify that mistake.

 
/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/
That Really Hot Chick
now on the Xbox Live Marketplace!

http://marketplace.xbox.com/en-US/Product/That-Really-Hot-Chick/66acd000-77fe-1000-9115-d80258550942

http://www.create-games.com/project.asp?view=main&id=2160

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
25th November, 2010 at 17:00:32 -


Originally Posted by HorrendousGames
Sorry to also jump off topic, but I'm going to have to say it's not offensive. Hitler, his staff and population control techniques are what killed all those people during WWII, not the symbol or his mustache. The symbol itself had a different meaning before hand, and is only a tool of identifying ones self during that time period. That would be the equivalent of saying John Wayne Gacy identifies himself by shaking hands, therefore, shaking hands makes you a child molester and serial killer. It's the kind of behavior that leads to people going "he's wearing a turban, therefore he is a terrorist." If you want to choose to be ignorant and associate the wrong thing with something, then that should be your own problem. If Gamester had a picture up of "Mein Kampf" and his title said "this is my bible" then it might be a little offensive, even then it's only an issue when he starts trying to kill of everyone different than him, in that case he only needs the Christian bible to justify that mistake.



(Just gonna help you get your dignity back a bit)

The swastika (or sun-cross, manji, wàn or whatever you want to call it) is indeed an ancient symbol of good stuff. The most common variant in europe has always been the clockwise one, in asia it's the counter-clockwise one (actually used to point out buddhist temples on maps!). Though they all have one thing in common;

THEY AREN'T CLOCWISE+TILTED+INSIDE-A-WHITE-CIRCLE-ON-RED-BACKGROUND.

That is the official symbol of Adolf Hitler's nazi party you've got there.

So if you aren't trying to express your love for Hitler's ideology, you best remove it and apologize. Though I'd love to hear you try and explain your valid reasons for using it as your avatar!

CONCLUSION: Think before you act, and do your god damn research. You two only look like idiots right now.

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
25th November, 2010 at 18:01:26 -

I don't find it that offensive, maybe someone else would, but it seems like people are forgeting that victors write history. Russians had even worse concentration camps, and they were antisemitic long before germans. Not to mention american concentration camps and well nuking a town. Nobody is even mentioning chinese civilians, and here is a nice list of both military and civilian causalties, you might get a broader picture about ww2: http://en.wikipedia.org/wiki/World_War_II_casualties
If you know a bit about history, you will be aware that hitler's ideology wasn't so different than many others at that same time.
Am not saying hitler is a great guy, he was a bad guy and an idiot, he was actually the fault why germany lost the war, most of his military decisions ruined the outcome of the war for germany. Not that that is a bad thing.
And in my opinion war is always a bad thing. Make love not war

 
Code me a sausage!

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
25th November, 2010 at 18:14:34 -

Offensiveness is not "in the eye of the beholder", so to speak - it's all about intent to provoke and upset.

For example, I could go around calling random people "Arsenal fans". The fact that to some of those people "Arsenal fan" has positive connotations, is irrelevant. If I'm calling someone an Arsenal fan, it's because I want to offend them - because I know that to me and most people, being an Arsenal fan is a very negative thing.

I have to assume your intention with that avatar is to cause offense (or at least controversy), because I cannot see any other reason why you might choose it.

Edited by Sketchy

 
n/a

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
25th November, 2010 at 18:19:49 -


Originally Posted by Don Luciano
I don't find it that offensive, maybe someone else would, but it seems like people are forgeting that victors write history. Russians had even worse concentration camps, and they were antisemitic long before germans. Not to mention american concentration camps and well nuking a town. Nobody is even mentioning chinese civilians, and here is a nice list of both military and civilian causalties, you might get a broader picture about ww2: http://en.wikipedia.org/wiki/World_War_II_casualties
If you know a bit about history, you will be aware that hitler's ideology wasn't so different than many others at that same time.
Am not saying hitler is a great guy, he was a bad guy and an idiot, he was actually the fault why germany lost the war, most of his military decisions ruined the outcome of the war for germany. Not that that is a bad thing.
And in my opinion war is always a bad thing. Make love not war



Many, MANY, people find the swastika very, VERY, offensive. I see your point, but you really are concocting dubious ways of allowing the use of Hitler's personal swastika style in the TDC forums. And I take an educated guess at that is not what you intended.

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image
This thread has been locked by an administrator



 



Advertisement

Worth A Click