Jump to content

getXP


StonedWizard

Recommended Posts

I try call getXP method, but always return nil. 

function AgeFactorNamespaceCore.OnStartGame()	local checkTraits = true;		--for set multiplies, set by age check	local player = getPlayer();	player:setAge(25);	--only for testing		--here check and update age!!!						if getPlayer():HasTrait("Teenager") then		player:setAge(AgeFactorNamespaceCore:GetAge());				local xp = player:GetXP(); -- it not work and "getPlayer():getXP()" too	endend

what's wrong? "addXP" menhod works fine!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...