Person A writes a script to do something.
Person B writes a script to augment Person A's script.
Person A inserts a point in his script to allow Person B's script to interact if present, but not required.
That is assuming that Person A was kind enough to permit the use of Person B's script.
More specifically, is the following scenario possible?
Script A detects a hit, then runs it's own damage formula.
Script B determines if a hit is strong enough to cause damage or not.
Script A is modified to allow Script B (if present) to run whenever it detects a hit. If Script B returns true (or is not present), then Script A will continue with its own damage formula. If Script B returns false, no damage is applied.
How would such a thing work? Would it be dangerous for the original scripter to allow another person's script to run like that? Do you believe there would be many scripters open to such collaboration?
Thank you!
