#include "events_h"
#include "global_objects_h"
void main()
{
event ev = GetCurrentEvent();
int nEventType = GetEventType(ev); //extract event type from current event
int nEventHandled = FALSE; //keep track of whether the event has been handled
switch(nEventType)
{
case EVENT_TYPE_MODULE_START:
{
PreloadCharGen(); //preloads resources needed for character generation
StartCharGen(GetHero(),0); //initiates character generation
break;
}
}
if (!nEventHandled) //If this event wasn't handled by this script, let the core script try
{
HandleEvent(ev, RESOURCE_SCRIPT_MODULE_CORE);
}
}
with following error:
E: 20:05:30 - testscript.nsc - Unable to get the resource information for "events_h" of type "nsc"
the include-script i can find in a directory, but the program doesn't find it?
Modifié par ModWriter, 29 novembre 2009 - 09:40 .





Retour en haut






