Yeah, very interesting concept, but can that be done with out scripting?
Also wouldn't that require an additional editor?... A behavior editor?
it can be done without scripting. If not an additional editor, but maybe a separate tab, or something to indicate you're in behavior mode, or function mode. And a specialized VariableObject, and maybe a Parameter Variable (in addition to private variables and global variables).
it wouldn't require scripting though. Once you indicate the number of inputs and outputs and what they are, you would proceed creating events as normal, in place of actual objects, you would choose these variable objects, but it should be done in the exact same way as normal. you could access and change parameter variables as you would private or global variables. When you were done, it would run as a normal event sheet, but plug in the objects and numbers(or strings, or arrays), the user chose.
It'd really be insane the amount of power C2 would have once the userbase started contributing. Think of all the neat tricks that have been shared via caps in the past. If you could add all those as actions, or conditions, expressions, etc, especially if you could click an icon in the corner of the action, and either change it for a single instance, expand it to regular events, or make a change and save it as your own version more tailored to the needs of your project.
I think if this feature is added, these custom behaviors, which doesn't seem like a completely accurate name, but in any case, they should be taggable, in the hopes of eventually being able to upload them all to a central searchable database.