void main()
{
event ev = GetCurrentEvent();
int nEvent = GetEventType(ev);
switch (nEvent)
{
case EVENT_TYPE_MODULE_START:
{
// get the object which contains the player
object oPlayer = GetHero();
// Levelup script
RewardXP(oPlayer, RW_GetXPNeededForLevel(12), TRUE, FALSE);
SetAutoLevelUp(oPlayer, 0);
break;
}
default:
{
break;
}
}
}
This doesn't do anything though.. I tried the same with EVENT_TYPE_MODULE_LOAD instead and it works fine but it means I need to reload the game after creating a character for it to take effect and I want it to happen directly after Character Generation. What am I doing wrong? Is the module not properly intercepting the MODULE_START event? Do I have to intercept character generation too, and if so how?
I know that I could simply just give the player the XP with console commands but I want to know why this doesn't work so I can learn how the Toolset actually works.. Thanks in advance!
Modifié par Bofra, 15 avril 2010 - 01:10 .





Retour en haut






