really the wrong direction

#include adds the functions in your script to your main script when compiled, so really you shouldn't be only adding these if you're clicking on a specific button, either add them or don't

any command with # isn't used at runtime, only when compiling, so this really won't work. and, i'm not sure what you are meaning when you say program.


ideally you should have something like:

Code:
//main.c

#define PRAGMA_PATH "Models"
#define PRAGMA_PATH "Sounds"

#include <acknex.h>
#include <default.c>

#include "boxiecredits.c" //no ; required

void main(){
  //whatever needed here
}



Code:
//boxiecredits.c

function show_credits(){
  set(boxie, SHOW);
}



what exactly is the difference in your 2 scripts?