All pastes #728009 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-10-06 16:36 UTC
rendered paste body
/*
===================================================================
  If you uncomment the following line YSI will be compiled with
  filterscript options, this is VERY important if you do use it as
  one, otherwise certain features may not work
===================================================================
*/

#define FILTERSCRIPT

/*
===================================================================
  If you uncomment one of the following lines YSI will not include,
  those files in compiling.
  So if you E.G. dont use objects in your script,
  you could uncomment the line #define YSI_NO_OBJECTS,
  and it would leave the Object files out.
  
  Note: Not every combination has been tested (there are currently
  131072 combinations, if you find one which doesn't compile due to
  cross-file dependencies please say.
  
  Also note that excluding either checkpoints or areas will exclude
  properties instantly.  You can also exclude all unwritten new
  libraries for future compatability using:

  #define YSI_VERSION <version>
  
  Where version is the version you are compiling against, current
  ids are:
  
  2 - YSI 0.2 or earlier
  3 - YSI 0.3
===================================================================
*/

#define YSI_VERSION 3
  
#define YSI_NO_TEXT
#define YSI_NO_COMMANDS
#define YSI_NO_SYSTEM
#define YSI_NO_TRACKING
#define YSI_NO_CALLBACKS
#define YSI_NO_MASTER
#define YSI_NO_CLASSES
#define YSI_NO_PICKUPS
#define YSI_NO_STANDARD
#define YSI_NO_MODULES
//#define YSI_NO_OBJECTS
#define YSI_NO_RACES
#define YSI_NO_CHECKPOINTS
#define YSI_NO_AREAS
#define YSI_NO_GROUPS
#define YSI_NO_PROPERTIES
#define YSI_NO_ZONES

#include <YSI>

#if defined FILTERSCRIPT

Script_OnFilterScriptInit()
{
    print("\n------------------------------------");
    print(" this should come up");
    print("------------------------------------\n");
*******************
I PUT THE OBJECTS HERE
*******************
    Langs_AddLanguage("EN", "English");
    Langs_AddFile("core", "YSI");
    return 1;
    #endif
}

Script_OnFilterScriptExit()
{
    return 1;
}