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

- 13.8K All Categories
- 7.4K General
- 21 Announcements
- 5.9K Off Topic
- 1.1K Playground
- 336 Suggestions & Bug Reports
- 1.9K General Discussion
- 697 Help
- 783 Bug Reports
- 1.7K Suggestions
- 97 Legacy
- 13 General Discussion
- 20 Help
- 37 Bug Reports
- 27 Suggestions
- 858 Idle Game Maker
- 109 Beta
- 46 Help
- 352 Developer's Lounge
- 351 Games
- 335 RandomGen
- 335 General Discussion
- 40 Nested
- 40 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
Posts: **19**Member ✭✭

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

9,652Member ✭✭✭✭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

11Member ✭