| Mirage Source http://miragesource.net/forums/ |
|
| Raising Stats (HP, MP, SP) http://miragesource.net/forums/viewtopic.php?f=210&t=906 |
Page 1 of 1 |
| Author: | Elmrok [ Thu Dec 21, 2006 12:46 am ] |
| Post subject: | Raising Stats (HP, MP, SP) |
Can someone tell me what I have to do to make the class max hp raise up. right now it is like 1 + class str / 2 + class str * 2 or something like that. i want them to be class str * class def can anyone tell me how to do this? |
|
| Author: | Leighland [ Sat Dec 23, 2006 2:15 pm ] |
| Post subject: | |
in your server code, in mod gamelogic replace this: Code: Function GetClassMaxHP(ByVal ClassNum As Long) As Long GetClassMaxHP = (1 + Int(Class(ClassNum).STR / 2) + Class(ClassNum).STR) * 2 End Function with this: Code: Function GetClassMaxHP(ByVal ClassNum As Long) As Long
GetClassMaxHP = Class(ClassNum).STR * Class(ClassNum).DEF End Function I think thats what you're trying to achieve, if not, post again. |
|
| Author: | Elmrok [ Sat Dec 23, 2006 3:53 pm ] |
| Post subject: | |
That helped some, but the characters stats don't save correctly. My stats are 10 each so the HP and MP shoud be 100 but the character stats are like 32 - 36. Do you know whats wrong with that? |
|
| Author: | Leighland [ Sat Dec 23, 2006 9:48 pm ] |
| Post subject: | |
You probably need to change it in the GetPlayerMaxHP Sub as well, so change this: Code: Function GetPlayerMaxHP(ByVal index As Long) As Long Dim Charnum As Long Dim i As Long Charnum = Player(index).Charnum GetPlayerMaxHP = (Player(index).Char(Charnum).Level + Int(GetPlayerSTR(index) / 2) + Class(Player(index).Char(Charnum).Class).STR) * 2 End Function To this: Code: Function GetPlayerMaxHP(ByVal index As Long) As Long
GetPlayerMaxHP = GetPlayerSTR(index) * GetPlayerDEF(Index) End Function |
|
| Author: | Elmrok [ Sun Dec 24, 2006 4:09 am ] |
| Post subject: | |
Thanks, this helped me a lot. I got it working now. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|