Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Problem About Stat Points


TheCrasH
 Share

Recommended Posts

@TheCrasH:

> Hi Everyone.
> I need little but serious problem.
> This stat thing screw my brain.
>
> **Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) + 10)**
> I make this value +10 but it isnt giving +10stat points when a player levels up.
>
> Sorry for my bad English.
> Thanks.

Did you include it in Sub LevelUp / LevelUp.ess? (or whatever it's called)
Link to comment
Share on other sites

@Lightning:

> @TheCrasH:
>
> > Hi Everyone.
> > I need little but serious problem.
> > This stat thing screw my brain.
> >
> > **Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) + 10)**
> > I make this value +10 but it isnt giving +10stat points when a player levels up.
> >
> > Sorry for my bad English.
> > Thanks.
>
> Did you include it in Sub LevelUp / LevelUp.ess? (or whatever it's called)

Yeah I included it.

>! Sub PlayerLevelUp(Index)
Dim PlayerExp
>! If GetPlayerExp(Index) < GetPlayerNextLevel(Index) Then
Exit Sub
End If
>! Do While GetPlayerExp(Index) >= GetPlayerNextLevel(Index)
PlayerExp = GetPlayerNextLevel(Index)
>! Call SetPlayerLevel(Index, GetPlayerLevel(Index) + 1)
Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) + 10)
Call SetPlayerExp(Index, GetPlayerExp(Index) - PlayerExp)
Call SetPlayerHP(Index, GetPlayerMaxHP(Index))
Call SetPlayerMP(Index, GetPlayerMaxMP(Index))
Call SetPlayerSP(Index, GetPlayerMaxSP(Index))
Call SendPlayerData(Index)
Call SendStats(Index)
Call SendHP(Index)
Call SendMP(Index)
Call SendSP(Index)
Call SendPTS(Index)
Loop
>! Call BattleMsg(Index, "You have " & GetPlayerPOINTS(Index) & " stat points.", BRIGHTBLUE, LEFT)
End Sub
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
 Share

×
×
  • Create New...