Go down
xRiotZx
xRiotZx
SSG
SSG
Posts : 36
realm_1
Réputation : -1
Simple Yet Devilish Math Problem Pp_mem10
Regist Date : 2010-06-19

Simple Yet Devilish Math Problem Empty Simple Yet Devilish Math Problem

Mon 18 Apr 2011, 21:00
I've been trying to decipher the answer to this math question for over a month. It's based on a question that arose from a spell I was trying to make via GUI.

Spell: Attack Dogs
Levels: 5
Dogs Spawn Per Lvl: 1 for lvls 1-2 2 for lvls 3-4 and 3 for lvl 5.

Were there 6 lvls, and of each 2, 2 dogs were spawned this would be simple.. But having an uneven factor makes it extremely complex. Anyone who may be better at math than me, come forward and answer this legendary inquire.

The final equation can be a decimal, but can not be a fraction of a number, or else it will register as 0. As far as I know if you have an integer and you use a real to set it the real being 0.60 for instance, it will register as 0, because integers only accept whole numbers..
Sick
Sick
PVT
PVT
Posts : 6
realm_1
Réputation : 0
Simple Yet Devilish Math Problem Pp_vis10
Regist Date : 2011-03-27

Simple Yet Devilish Math Problem Empty Re: Simple Yet Devilish Math Problem

Tue 19 Apr 2011, 14:36
.. what exactly do you want to know?
xRiotZx
xRiotZx
SSG
SSG
Posts : 36
realm_1
Réputation : -1
Simple Yet Devilish Math Problem Pp_mem10
Regist Date : 2010-06-19

Simple Yet Devilish Math Problem Empty Re: Simple Yet Devilish Math Problem

Tue 19 Apr 2011, 15:04
How to produce the number of dogs that the levels have been designated using math.

Usually you would just go, for each 5 levels, multiply once by the level of the ability. But that would create 5 dogs, I want three dogs using 5 levels, which I haven't figured out how to do mathematically.

There are easier ways to do it rather than an equation, but I want to know the answer to this divine question.
TitanDeath
TitanDeath
SGFC
SGFC
Posts : 55
realm_1
Réputation : 3
Simple Yet Devilish Math Problem Pp_vis10
Regist Date : 2010-10-09

Simple Yet Devilish Math Problem Empty Re: Simple Yet Devilish Math Problem

Tue 19 Apr 2011, 21:29
Maybe it could be something like this.

1x1=1
2x.5=1
3x.7=2.1
4x.5=2
5x.6=3

The devilish 3 doesn't want to be whole Sad.
s3rius
s3rius
LTG
LTG
Posts : 1916
realm_3
Réputation : 57
Simple Yet Devilish Math Problem Pp_adm10
Regist Date : 2006-02-11

Simple Yet Devilish Math Problem Empty Re: Simple Yet Devilish Math Problem

Wed 20 Apr 2011, 01:04
When an integer is converted to a Real it is always rounded down.
So 0.6 becomes 0 and 1.6 becomes 1.

The formula:

( level / 2) + 0.5

Lvl 1: ( 1 / 2 ) + 0.5 = 0.5 + 0.5 = 1
Lvl 5: ( 5 / 2 ) + 0.5 = 2.5 + 0.5 = 3
xRiotZx
xRiotZx
SSG
SSG
Posts : 36
realm_1
Réputation : -1
Simple Yet Devilish Math Problem Pp_mem10
Regist Date : 2010-06-19

Simple Yet Devilish Math Problem Empty Re: Simple Yet Devilish Math Problem

Thu 21 Apr 2011, 23:37
Excellent Math, mine for that matter sucks.
Sponsored content

Simple Yet Devilish Math Problem Empty Re: Simple Yet Devilish Math Problem

Back to top
Permissions in this forum:
You cannot reply to topics in this forum