jaykelvik Posted October 26, 2010 Author Share Posted October 26, 2010 Hello one and all , just started to use the eclipse engine stable version.And when leveling up u aquire stats but when you add the stats to your choosen atrabute ie: str mp ect instead of the stat number going down its go`s upAm i doing something wrong ? is there a fix for this.My apolagies if this has been posted before i did use the search and found 1 other topic but was not my question.Regards Jay. Link to comment Share on other sites More sharing options...
jaykelvik Posted October 27, 2010 Author Share Posted October 27, 2010 *bump* Link to comment Share on other sites More sharing options...
Krumelz Posted October 27, 2010 Share Posted October 27, 2010 Hello jaykelvik.Try that:Go to your Server Folder -> Scripts -> Events -> Usingstatpoints.when you open it,It should look like this:```'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Module: UsingStatPoints.ess '' Author: Stephan J.R. van Schaik '' Date: August 30th, 2009. '' Version: 1.0.0 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Function: UsingStatPoints '' Brief: executes when a player uses a stat point. '' Parameters: '' Index: the index number of the player. '' Type: the stat type to increment. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''Sub UsingStatPoints(Index, StatType) Select Case StatType Case STAT_STRENGTH If GetPlayerSTR(Index) + 1 >= MAX_STAT Then Call BattleMsg(Index, "You have maxed your strenght!", BRIGHTRED, LEFT) Exit Sub End If Call SetPlayerSTR(Index, GetPlayerSTR(Index) + 1) Call BattleMsg(Index, "You have gained more strenght!", WHITE, LEFT) Case STAT_DEFENCE If GetPlayerDEF(Index) + 1 >= MAX_STAT Then Call BattleMsg(Index, "You have maxed your defence!", BRIGHTRED, LEFT) Exit Sub End If Call SetPlayerDEF(Index, GetPlayerDEF(Index) + 1) Call BattleMsg(Index, "You have gained more defence!", WHITE, LEFT) Case STAT_MAGIC If GetPlayerMAGI(Index) + 1 >= MAX_STAT Then Call BattleMsg(Index, "You have maxed your magic!", BRIGHTRED, LEFT) Exit Sub End If Call SetPlayerMAGI(Index, GetPlayerMAGI(Index) + 1) Call BattleMsg(Index, "You have gained more magic!", WHITE, LEFT) Case STAT_SPEED If GetPlayerSPEED(Index) + 1 >= MAX_STAT Then Call BattleMsg(Index, "You have maxed your speed!", BRIGHTRED, LEFT) Exit Sub End If Call SetPlayerSPEED(Index, GetPlayerSPEED(Index) + 1) Call BattleMsg(Index, "You have gained more speed!", WHITE, LEFT) Case Else Call PlayerMsg(Index, "Unknown stat type.", BRIGHTRED) Exit Sub End Select Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) - 1)End Sub```Now check if the "-" at the```Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) - 1)```is there, if theres an +, change it.this should fix your problem.yours sincerely-krumelz. Link to comment Share on other sites More sharing options...
jaykelvik Posted October 27, 2010 Author Share Posted October 27, 2010 thank you very much , much apreciated all working now ty again , Jay Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now