As I feared would happen one day, global script functions are interfering with each other. I'm using Justin's Pegasus Boots script alongside Zepinho's GB Power Bracelet script. I want to add Fox's Freeform Shutter script, and here is where the problem begins.
Fox's script uses one combo type (CT_SCRIPT1), inherent flags to identify shutters and tells them how to act according to the inherent flag placed on top said shutter; these flags go from CF_SCRIPT1 to CF_SCRIPT5 (inherent flags 98 - 102). The problem is, two of these flags are used by Zepinho's and Justin's scripts as well: Inherent flag 98 (CF_SCRIPT1) for the Power Bracelet script, and Inherent Flag 99 (CF_SCRIPT2) for the Pegasus Boots script.
So, let's say I put two shutters on the same screen, one has flag 98 and the other has flag 99. As script developers would guess, one shutter will be able to be picked up by the Power Bracelet and the other shattered by the Pegasus Boots. This, is where the interfering is caused. Certainly, I don't want shutters to be picked up or destroyed, what kind of gameplay is that!?
My question is this. The idea I have is, to add some code to both the Power Bracelet and Pegasus Boots scripts so that they detect if a combo has CT_SCRIPT1 attached to it as well as either inherent flag 98 or 99. If so, the script quits, canceling any interference among these three scripts. But, what lines would I add?
My script file is VERY large, so if anybody is wiling to help me out, post here and I will send you my script file via a dropbox link. Thanks in advance to whoever helps.