SphereCommunity
Kill to Death Ratio in a DIALOG - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Kill to Death Ratio in a DIALOG (/Thread-Kill-to-Death-Ratio-in-a-DIALOG)



Kill to Death Ratio in a DIALOG - x77x - 01-07-2015 07:20 AM

in a dialog, i have kills and deaths stored on a guildstone


Code:
Kills: <eval <uid.040004000.morex>> - Deaths: <eval <uid.040004000.morey>>- Ratio: (<eval (<uid.040004000.morex>/<uid.040004000.morey>))//wei

ratio = morex divided by morey please

how do i calculate math?


RE: Kill to Death Ratio in a DIALOG - Extreme - 01-07-2015 08:22 AM

Kills: <eval <uid.040004000.morex>> - Deaths: <eval <uid.040004000.morey>>- Ratio: (<eval (<uid.040004000.morex>/<uid.040004000.morey>)>)//wei


RE: Kill to Death Ratio in a DIALOG - x77x - 01-07-2015 08:55 AM

Code:
Kills: <eval <uid.040004000.morex>> - Deaths: <eval <uid.040004000.morey>> - Ratio: <eval (<uid.040004000.morex> / <uid.040004000.morey>)>


any way to get this to display in fractions?

Ratio: 1.09
Ratio: 0.76

ect...


RE: Kill to Death Ratio in a DIALOG - Extreme - 01-07-2015 10:04 AM

Try fval instead eval.


RE: Kill to Death Ratio in a DIALOG - x77x - 01-07-2015 02:44 PM

its in 10ths...

so i tricked it


Code:
Kills: <eval <uid.040004000.morex>> - Deaths: <eval <uid.040004000.morey>> - Ratio: <fval (<uid.040004000.morex> / <uid.040004000.morey>) * 10))>


thank you! =)