Mirage Source
Balance - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Balance (/showthread.php?tid=1351)



Balance - katogoon - 18-10-2007

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,


Re: Balance - William - 18-10-2007

What? I dont understand what you mean.

GetPlayerDamage(index) - enemydef = damage Big Grin


Re: Balance - katogoon - 18-10-2007

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.


Re: Balance - William - 18-10-2007

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 MAX_PLAYERS Then
Exit Function
End If

GetPlayerDamage = Int(GetPlayerSTR(Index) / 2)

If GetPlayerDamage 0 Then
WeaponSlot = GetPlayerWeaponSlot(Index)

GetPlayerDamage = GetPlayerDamage + Item(GetPlayerInvItemNum(Index, WeaponSlot)).Data2

Call SetPlayerInvItemDur(Index, WeaponSlot, GetPlayerInvItemDur(Index, WeaponSlot) - 1)

If GetPlayerInvItemDur(Index, WeaponSlot)


Re: Balance - katogoon - 18-10-2007

I'm not sure if understand what i mean, i was wondering if there was a calculation to work out damage amounts.


Re: Balance - William - 18-10-2007

You do know mirage source is actually a source code in visual basic. And unless you know programming, you should use a compilled.


Re: Balance - Robin - 18-10-2007

If you don't know programming, go use Playerworlds Tongue


Re: Balance - William - 18-10-2007

Robin Wrote:If you don't know programming, go use Playerworlds Tongue
Yeah, I would actually recommend Playerworlds, seems like they got some great things going. And hopefully they wont fuck it all up.


Re: Balance - Matt - 18-10-2007

Major Wrote:
Robin Wrote:If you don't know programming, go use Playerworlds Tongue
Yeah, I would actually recommend Playerworlds, seems like they got some great things going. And hopefully they wont [edit] it all up.

Hopefully.


Re: Balance - Reece - 18-10-2007

I think whats hes asking is what defines how much a player does on a NPC and how does he change it?


Re: Balance - Matt - 18-10-2007

William answered that already..