Play Now Login Create Account
illyriad
  New Posts New Posts RSS Feed - Illy Math for non-mathmeticians
  FAQ FAQ  Forum Search   Register Register  Login Login

Illy Math for non-mathmeticians

 Post Reply Post Reply
Author
Tensmoor View Drop Down
Postmaster General
Postmaster General
Avatar

Joined: 07 Apr 2015
Location: Scotland
Status: Offline
Points: 1829
Post Options Post Options   Thanks (3) Thanks(3)   Quote Tensmoor Quote  Post ReplyReply Direct Link To This Post Topic: Illy Math for non-mathmeticians
    Posted: 24 Oct 2021 at 08:48
In this thread im going to try and post solutions to math problems that come up fairly often in Illy but that non-mathematicians (me included) sometimes struggle with.

Where I know who created/published the tip I'll give a link to it.

Lets start with the problem of 'Is that nice group of NPCs within 5 tiles of that players town?'.
The commonly given answer is to use pythagoras to calculate the distance and while that works it does mean calculating the square root which if you don't have a calculator at your fingertips is way beyond me so I was overjoyed to recently find a video on youtube explaining several very mathy ways to select a random point within a circle. the reason I was so happy was that the very first method whilest based on pythagoras only needs you to do some subtraction and multiplication!

  1. Get the difference in the x coords of the two tiles (x1 - x2) which I'll call dx.
  2. Do the same for the y coords (y1-y2) and call that dy.
  3. Multiply the two differeces by each other (dx * dx and dy * dy). I'll call these sx and sy respectively.
  4. Add these together (sx + sy). I'll call that sh.
  5. If sh is greater than 25 then the tile is more than 5 tiles away from the town!
Why greater than 25? Well it's 5*5 and since we're checking to see if it is within 5 tiles. If you want to see if it is within 10 tiles you just compare it to 100 instead of 25.

Big thanks to nubdotDev for creating the video that explained it all in a way even I could understand! and a link to the video: http://https://youtu.be/4y_nmpv-9lI (warning - it contains some very mathy stuff!!!)

Tens
Back to Top
Bep Cow View Drop Down
New Poster
New Poster
Avatar

Joined: 01 Jul 2021
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bep Cow Quote  Post ReplyReply Direct Link To This Post Posted: 04 Nov 2021 at 23:12
Nice math lessons for those learning math! lol

Good explaination
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.