case EVENT_TYPE_CHARGEN_ASSIGN_ATTRIBUTES:
{
int nAttribute = GetEventInteger(ev,0);
int nPoints = GetEventInteger(ev,1);
if (nPoints >= 13)
{
}
else {
// -----------------------------------------------------------------
// Subtract from available points to spend
// -----------------------------------------------------------------
Chargen_ModifyCreaturePropertyBase(oChar, PROPERTY_SIMPLE_ATTRIBUTE_POINTS, IntToFloat(nPoints*-1));
// -----------------------------------------------------------------
// Spend it.
// -----------------------------------------------------------------
Chargen_SpendAttributePoints(oChar,nAttribute,nPoints,FALSE);
}
break;
}
Modifié par gordonbrown82, 06 mai 2010 - 11:34 .





Retour en haut






