For example: card games would be easier to make?
This would be a useful feature.
Printable View
For example: card games would be easier to make?
This would be a useful feature.
This sounds like a great additional feature. Question 2 sounds like it could benefit from having both features available, but with some way to set which method (I liked Dynamite's idea of using "0" or "1").
Lol, I'm the only Dines here! (looks around suspiciously) ;)Quote:
Originally Posted by Benicle
This is a great idea, I'm all for it!
Do both options, just like OR, but make the descriptions clear (the descriptions for OR aren't that self-explanatory I found).
Also, I think as said before, a name suggesting its FOR-like nature would be good, but not just a For loop. Maybe just:
"For Each Object"
That would leave space if you later choose to implement a full For loop, as handled by other programming languages.
Would the loop need to be called, or is there an option to just let it run inline? E.g. which would be more likely:
A)
Always
--- For Each Object "Something"
For Each Object "Something"
--- (some code)
B)
For Each Object "Something"
--- (some code)
I'm personally keener on B. You could determine when it runs by just shoving some conditions in it. Although I should imagine it may be trickier to do in coding terms, as the FOR loop would need to function as both a Triggered event and a Fake event (I can't remember what we call non triggered ones).
In other words, it would need to sense its own activation when the parser reaches it, execute its actions, and then retrigger itself as a fastloop until all selected objects were parsed.
Hmm :)
Yes, an object fast loop would be useful. And I would prefer the option 1. Even though I think that it could create problems that we can't imagine yet (and they would be difficult to debug) : "Why doesn't my loop work ???... Oh my god it's because my condition is far too restrictive when I call it, and I need to test all the objects !"
I'd rather you just create the first option. If I need the second one, I can use the traditional fastloops...
definitely option 1; option 2 could just be a "Reselect All" action as Random said
Yes, an optimised ForEach condition would be excellent. Not sure I understand the questions about options though.
Question 1:
* ForEach "Active1"
+ Where "Active1" alt value A > 10
compared to
* Where "Active1" alt value A > 10
+ ForEach "Active1"
I'd expect the first example to loop through all Active1's and compare each one with alt value A > 10.
Would the second example, would the ForEach still loop through all Active1's or would it loop through only those returned by the condition "Where Active1 alt value > 10" ?
Question 2:
Probably yes but if you have more than one 'ForEach "Active1"' events in a frame, would MMF group all the same ForEach's in a list, get the first Active1 instance then run through all these events and actions, then get the next instance and repeat so that it only processes the list once? Or would each ForEach event run through a loop of all objects for each one ? Confusing!
Answer to #1: Yes please :)
Answer to #2: Both please, you can call it "foreach object loop" for the second option?
Object loop will be a great addition to MMF.
Do you think is possible to have a EventGroup-Loop? :)
Woa, Andy, did you just replaced "Condition" words with "ForEach" in your message? glad you liked "ForEach" too! :)
well it basically is a for each loop soQuote:
Originally Posted by Giovanni_Cardona
Thanks! :)