Hi! I created the following module event script below for a test add-in module I'm playing around with, and it seems to add items to the player character, but only because I test against EVENT_TYPE_CHARGEN_END. When I test against EVENT_TYPE_MODULE_LOAD, nothing happens. I've searched everywhere and testing against the module load event seems to work for everyone else, so I'm honestly stumped

. Any help would be most appreciated. Thanks!
#include "log_h"
#include "utility_h"
#include "wrappers_h"
#include "events_h"
#include "scr_quickitems_h"
void main()
{
event ev = GetCurrentEvent();
int nEventType = GetEventType(ev);
Log_Events("", ev);
switch(nEventType)
{
case EVENT_TYPE_CHARGEN_END:
{
AddQuickItemsToInventory();
break;
}
}
}
Modifié par invalidCRC, 07 janvier 2010 - 06:44 .