Decrease XP per rebirth

05/14/2020 06:32 OptimalSolution#1
Hey guys,

I'm trying to figure out how to implement a function where I'm decreasing the exp rate per rebirth. I'm not entirely sure how to go about this. I've attempted to create a function within EventLua, but it didn't work. I'm trying to do something where the xp rate will be calculated based on the number of rebirths. Any suggestion on what files to edit?

Thanks.
05/14/2020 08:24 Flogolo#2
Quote:
Originally Posted by OptimalSolution View Post
Hey guys,

I'm trying to figure out how to implement a function where I'm decreasing the exp rate per rebirth. I'm not entirely sure how to go about this. I've attempted to create a function within EventLua, but it didn't work. I'm trying to do something where the xp rate will be calculated based on the number of rebirths. Any suggestion on what files to edit?

Thanks.
Check the values in ur rebirth system in ur source files
05/14/2020 14:34 Tweeney#3
on MoverParam.cpp

add this
Code:
#ifdef __REBIRTH
	if( m_nReb > NULL )
	{
		nExp = ( ( nExp / ( m_nReb*4 ) ) );
		if( nExp <= NULL )
			nExp = 100;
	}

#endif //__REBIRTH
on

Code:
BOOL CMover::AddExperience( EXPINTEGER nExp, BOOL bFirstCall, BOOL bMultiPly, BOOL bMonster )