disable/deactivate certain conditions/events?
Hello,
I just want to temporarily disable or deactivate certain conditions Iīve set (just as you would "comment out" several lines of code in "real" programming) for testing purposes. It seems this isnīt possible in MMF2... If it really isnīt - this would be a desirable feature for upcoming releases!
If there are single conditions I want to deactivate I could use the "cut" option and paste it again later but an option to simply deactivate several conditions would be really helpful.
Thanks a lot for your help in advance.
mdk
Re: disable/deactivate certain conditions/events?
maybe put those conditions in a group and activate/deactivate the group?
Re: disable/deactivate certain conditions/events?
I have not found any other way that put in a keypress event at the beginnig:
- Upon pressing "Q"
- Next event
If I want to activate it again I simply delete the keypress event
Keli
Re: disable/deactivate certain conditions/events?
it is funny, i just did a suggestion that asumingly is about what you are facing right now too.
see: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=71510#Post71510
Re: disable/deactivate certain conditions/events?
Thanks to all who answered so far...
@EonDev: The would be nice but how do you actually activate/deactive groups? [edit: I have found out how to do that... This could be a workaround...]
@Keli: That could also be a workaround for me, thanks.
@Patrick: Iīve just read your thread now. I guess you have a slightly different problem than me - I just need to "comment out"/deactivate several "lines of code" during the whole application lifetime. If I have understood your article right youīd like to have a functionality to just let the application run through an event just once and ignore it during further cycles through the events...(?)
By the way - I wonder why there isnīt a sticky thread for something like a "wishlist for upcoming releases" - lots of official forums for software applications have something like that...
mdk
Re: disable/deactivate certain conditions/events?
Do you mean using "Never" on your events? That's meant to deactivate them while you don't need them, but don't want to delete the conditions either.
Re: disable/deactivate certain conditions/events?
Quote:
Originally Posted by Ravenius
Do you mean using "Never" on your events? That's meant to deactivate them while you don't need them, but don't want to delete the conditions either.
Is there a simple way to change an exisiting event into a "never" event (and vice versa?)
So what I originally want is a simple method to deactivate one or more events temporarily and e.g. use some different ones instead. Just to see which approach to my problem works better. Wouldnīt it be nice if you could just rightclick on an event and say "disable" (when itīs disabled you would have the option the "enable" it again). It could be shown greyed out in the list of events if disabled (as an optical marker...)
[edit: by "temporarily" I mean: until I decide to use it again (or delete it) I donīt want the application workflow to decide when to use a certain event or not but just want to have a possibility to exclude one or more events from running just for "debugging" purposes - just to see how the app runs without the one or other "line of code"...]
Iīm sure this is a helpful feature which shouldnīt be too hard to implement for the developers of MMF2... ;)
mdk
Re: disable/deactivate certain conditions/events?
To deactivate one line : add "never" at the beginning of the condition
To deactivate more than one line : put the lines into a group and deactivate it
Re: disable/deactivate certain conditions/events?
Quote:
Originally Posted by Sphax
To deactivate one line : add "never" at the beginning of the condition
Sorry for this newbie question but how do I do that? I have some existing conditions - how can I add "never" to one of those?
thanks a lot,
mdk
Re: disable/deactivate certain conditions/events?
To quote my signed 1994 Klik & Play manual: "Never: Never performs an action, even if all the other conditions are true".
1. Right click on the event's number
2. Select "add a new condition"
3. Right click on the Special object (the first one)
4. From the context-menu, select "Never" (it is the second item on the list)
If you want to be able to disable whole chunks of code then put them in a group and deactivate that group.
Re: disable/deactivate certain conditions/events?
Quote:
Originally Posted by Joshtek
1. Right click on the event's number
2. Select "add a new condition"
3. Right click on the Special object (the first one)
4. From the context-menu, select "Never" (it is the second item on the list)
If you want to be able to disable whole chunks of code then put them in a group and deactivate that group.
Thanks a lot!!!
mdk
Re: disable/deactivate certain conditions/events?
My tip: Put the Never condition ON TOP to gain preformance, otherwise it will first check the other conditions, to find out at the end, it should never have been done.