It looks like you're new here. If you want to get involved, click one of these buttons!

- 14.9K All Categories
- 7.7K General
- 22 Announcements
- 6.1K Off Topic
- 1.3K Playground
- 358 Suggestions & Bug Reports
- 2.1K General Discussion
- 788 Help
- 939 Bug Reports
- 1.9K Suggestions
- 135 Legacy
- 21 General Discussion
- 30 Help
- 45 Bug Reports
- 39 Suggestions
- 1.1K Idle Game Maker
- 462 Developer's Lounge
- 96 Games
- 50 Suggestions & Bug Reports
- 364 Games - Old
- 366 RandomGen
- 366 General Discussion
- 43 Nested
- 43 General Discussion

Please read the forum rules before posting.

Check if you are posting in the correct category.

The Off Topic section is not meant for discussing Cookie Clicker.

Check if you are posting in the correct category.

The Off Topic section is not meant for discussing Cookie Clicker.

varkarurs
Member Posts: **19** ✭✭

I'd like some mathematical functions to be able to be done! I.E say you have

$species

Human {height:168}

Orc {height: 175}

Gnome {height: 130}

Giant {height: 250}

Fairy {height: 30}

$height

Average {mult:[0.98-1.02]}**//the feature to do a random number between two numbers already exists... but in this case it'd need to be able to do numbers with decimals.**

Slightly Short {mult:[0.95-0.98]}

Short {mult:[0.90-0.95]}

Very Short {mult:[0.85-0.9]}

Tiny {mult:[0.8-0.9]}

Slightly Tall {mult:[1.02-1.05]}

Tall {mult:[1.05-1.10]}

Very Tall {mult:[1.10-1.15]}

Enormous {mult:[1.15-1.2]}

$result

[species, #s], [height, #h], [[#s,as height]*[#h, as mult],#cm]**//This takes the Height attribute from the selected species, and multiplies it by the Mult value from height. Meaning, a Very Tall human could be anywhere from 185 to 193 cm tall **

[[#cm*0.393700787] % 12]'[[#cm*0.393700787] mod 12]"**//the #cm*... formula converts cm to inches. The % 12 divides the inches by 12 and drops the remainder, giving a number in feet. The "mod 12" does the opposite, returning only the remainder. Together, this gives the cm result in feet and inches.**

-----

In addition (heh), long division, exponents, addition, subtraction, absolute values, and square roots could also be used to great effect. I could make a similarly charted $weight attribute, assign average [weight,#w] to the species, and do

[ [[#h, as mult]^3] * [#s, as weight] * [#w, as mult], #lbs]

to calculate the weight of a randomly generated character using the square cube law. (if you double something's size, you octuple its weight. 2^3=8. If I take a smaller number, like 1.2, and cube it, I get a multiplier that I can then throw onto average weight and the weight multiplier from bodytype to get a good estimation for actual weight.)

If you like this idea, shout at Orteil until he implements it!

$species

Human {height:168}

Orc {height: 175}

Gnome {height: 130}

Giant {height: 250}

Fairy {height: 30}

$height

Average {mult:[0.98-1.02]}

Slightly Short {mult:[0.95-0.98]}

Short {mult:[0.90-0.95]}

Very Short {mult:[0.85-0.9]}

Tiny {mult:[0.8-0.9]}

Slightly Tall {mult:[1.02-1.05]}

Tall {mult:[1.05-1.10]}

Very Tall {mult:[1.10-1.15]}

Enormous {mult:[1.15-1.2]}

$result

[species, #s], [height, #h], [[#s,as height]*[#h, as mult],#cm]

[[#cm*0.393700787] % 12]'[[#cm*0.393700787] mod 12]"

-----

In addition (heh), long division, exponents, addition, subtraction, absolute values, and square roots could also be used to great effect. I could make a similarly charted $weight attribute, assign average [weight,#w] to the species, and do

[ [[#h, as mult]^3] * [#s, as weight] * [#w, as mult], #lbs]

to calculate the weight of a randomly generated character using the square cube law. (if you double something's size, you octuple its weight. 2^3=8. If I take a smaller number, like 1.2, and cube it, I get a multiplier that I can then throw onto average weight and the weight multiplier from bodytype to get a good estimation for actual weight.)

If you like this idea, shout at Orteil until he implements it!

Tagged:

1

## Comments

11,211✭✭✭✭✭But I do agree we would need this

## the following link is the best thing that could happen to you: http://forum.dashnet.org/discussions/tagged/brainstormgame

Currently managing a large-based forum game.. DashNet RPG! Play it now: http://forum.dashnet.org/discussion/15882/dashnet-rpg-dashnets-greatest-forum-game-of-all-timeDashnet RPG Pastebin: https://pastebin.com/6301gzzx

14✭✭