| Mirage Source http://web.miragesource.net/forums/ |
|
| Balance http://web.miragesource.net/forums/viewtopic.php?f=201&t=2895 |
Page 1 of 1 |
| Author: | katogoon [ Thu Oct 18, 2007 12:55 pm ] |
| Post subject: | Balance |
Hi, Using all engines from the mirage source, Xtreme worlds, playerworlds ect... Is there anyway of working out any kind of balance for example finding out how much damage you will do on a monster? Thank you, |
|
| Author: | William [ Thu Oct 18, 2007 1:30 pm ] |
| Post subject: | Re: Balance |
What? I dont understand what you mean. GetPlayerDamage(index) - enemydef = damage |
|
| Author: | katogoon [ Thu Oct 18, 2007 2:26 pm ] |
| Post subject: | Re: Balance |
Basicly using the mirage engine, is there anyway to work out some kind of calculation eg. lets say STR is 12, monster DEF 6 you have no weapon for aditional damage, so STR 12 - Monster DEF 6 = 6 then divide by 2 = (3) so the damage on that monster will be 3. Is there any calculation like that to work out damage. |
|
| Author: | William [ Thu Oct 18, 2007 2:29 pm ] |
| Post subject: | Re: Balance |
Search for: Function GetPlayerDamage And you'll find this: Code: Function GetPlayerDamage(ByVal Index As Long) As Long Dim WeaponSlot As Long GetPlayerDamage = 0 ' Check for subscript out of range If IsPlaying(Index) = False Or Index <= 0 Or Index > MAX_PLAYERS Then Exit Function End If GetPlayerDamage = Int(GetPlayerSTR(Index) / 2) If GetPlayerDamage <= 0 Then GetPlayerDamage = 1 End If If GetPlayerWeaponSlot(Index) > 0 Then WeaponSlot = GetPlayerWeaponSlot(Index) GetPlayerDamage = GetPlayerDamage + Item(GetPlayerInvItemNum(Index, WeaponSlot)).Data2 Call SetPlayerInvItemDur(Index, WeaponSlot, GetPlayerInvItemDur(Index, WeaponSlot) - 1) If GetPlayerInvItemDur(Index, WeaponSlot) <= 0 Then Call PlayerMsg(Index, "Your " & Trim$(Item(GetPlayerInvItemNum(Index, WeaponSlot)).Name) & " has broken.", Yellow) Call TakeItem(Index, GetPlayerInvItemNum(Index, WeaponSlot), 0) Else If GetPlayerInvItemDur(Index, WeaponSlot) <= 5 Then Call PlayerMsg(Index, "Your " & Trim$(Item(GetPlayerInvItemNum(Index, WeaponSlot)).Name) & " is about to break!", Yellow) End If End If End If End Function Then you can just search for GetPlayerDamage and you will find all the places that the damage is used. |
|
| Author: | katogoon [ Thu Oct 18, 2007 3:32 pm ] |
| Post subject: | Re: Balance |
I'm not sure if understand what i mean, i was wondering if there was a calculation to work out damage amounts. |
|
| Author: | William [ Thu Oct 18, 2007 3:39 pm ] |
| Post subject: | Re: Balance |
You do know mirage source is actually a source code in visual basic. And unless you know programming, you should use a compilled. |
|
| Author: | Robin [ Thu Oct 18, 2007 3:42 pm ] |
| Post subject: | Re: Balance |
If you don't know programming, go use Playerworlds |
|
| Author: | William [ Thu Oct 18, 2007 3:57 pm ] |
| Post subject: | Re: Balance |
Robin wrote: If you don't know programming, go use Playerworlds Yeah, I would actually recommend Playerworlds, seems like they got some great things going. And hopefully they wont fuck it all up. |
|
| Author: | Matt [ Thu Oct 18, 2007 5:19 pm ] |
| Post subject: | Re: Balance |
Major wrote: Robin wrote: If you don't know programming, go use Playerworlds Yeah, I would actually recommend Playerworlds, seems like they got some great things going. And hopefully they wont [edit] it all up. Hopefully. |
|
| Author: | Reece [ Thu Oct 18, 2007 6:24 pm ] |
| Post subject: | Re: Balance |
I think whats hes asking is what defines how much a player does on a NPC and how does he change it? |
|
| Author: | Matt [ Thu Oct 18, 2007 6:35 pm ] |
| Post subject: | Re: Balance |
William answered that already.. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|