If multiple campaigns match a visitor's profile to display content, campaign priorities are used. See Campaign Priority in Target Help for more information.
Scripts generally involve Adobe consulting to provide assistance to ensure a proper implementation and prevent loss of revenue. Contact your organization's account manager for details.