This is not possible in the API. API scripts are deliberately prevented from reacting to changes caused by an API script to prevent infinite loops from forming that would lock your game. The only exception to this is chat messages. The way around this is to use an API generated chat message to trigger the follow up script (taking advantage of the aforementioned exception), or to code direct interaction between the two scripts so that one calls the other instead of relying on generated events to trigger the script. Both of these require the author of at least one of the scripts to buy in to the idea, or for you to edit them yourself.