Jump to content

Event override-


jonpetro

Recommended Posts

All I'm trying to do is change the char's starting points from 5 to 10. I've already updated the M2DA, but I can't get anything to work.

 

#include "events_h"
#include "sys_chargen_h"

void main()
{
   event   ev      = GetCurrentEvent();
   int     nEvent  = GetEventType(ev);
   object  oOwner  = GetEventCreator(ev);

   switch(nEvent)
   {
       case EVENT_TYPE_CHARGEN_START:
       {
           int     nMode   = GetEventInteger(ev, 0);
           object  oChar   = GetEventObject(ev, 0); 
          
           if(nMode == CHARGEN_MODE_CREATE)
           {
               SetCreatureProperty(oChar, PROPERTY_SIMPLE_ATTRIBUTE_POINTS, 10.0, PROPERTY_VALUE_BASE);
               break;    
           }
           else
           {
               break;
           }
       }
   }
}

Edited by jonpetro
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...