Question: Creating new scripts

Rompeflesk

First time out of the vault
I've run into a problem; I can't manage to make my own, new scripts. I can only manage to modify and use old scripts, but the problem is that then the scripts have their old name (which is annoying and confusing). When I try to make my own scripts from scratch, the '#define NAME SCRIPT_SCRIPTNAME' is where I get errors. What do I do? Where do I define names for the new scripts I make?

Hope I'm not too far off and someone understands what I'm trying to say :P
 
Normally you define it in an include file called scripts.h and then include that file in your script. Scripts.h can be found in the headers directory of your mapper installation.
 
don't forget to add your scripts name to the scripts.lst file.. and keep them in the same order in that file as they are defined in the scripts.h, or else your .msg files will be all out of whack..

( basically, the #define NAME MY_SCRIPT bit works out to a number as defined in the scripts.h file, which coresponds to a line number in the scripts.lst file, which in turn is used to look up the name of the script to find the same named .msg file... or at least that's my understanding of how it works... )
 
Back
Top