I agree with Zeke. But I;m not a computer programer so I don't know if it would be easy or difficult for MD. but the AI command would probably look something like this:
AI_makeTrigger,timeRepeat,X,X,prjectileColor,(color Variable), (part number), (more part number)