I'm putting up a code bounty of
500 credits for Nexus for astrology, similar to Shedrin's script where the in-game DATE is used to calculate the position of the astrological bodies in relation to the constellations. The script will be made public so all astrologers regardless of client can pewpew with the power of stars and space rocks.
Shedrin's mudlet script, for comparison, is here:
https://drive.google.com/file/d/1mVBo7KDKXM2sUOwcQUm-O_y2NWPmM1cq/view?usp=sharing
Comments
https://drive.google.com/drive/folders/1IS6gIRwW66ER0PF414kOLnlSY6OllktH?usp=sharing
Explorer (80%), Achiever (53%), Socializer (53%), Killer (13%)
Bartle Taxonomy
(test yourself)
Currently it only tells you right now, but I will be making it able to tell you for any date/time you specify.
Also, I need some advice from an astrologer about how the other parts of this output are determined:
The yellow text at top: how do I know that the Sun being in Dolphin means cold damage, for instance? Is there a lookup table someone can point me to?
The grid at bottom: How do I figure any of that out?
local result=math.abs(sphere-affecter)
if result>6 then
result=12-result
end
Additional Notes: The effects of spheres are as follows:
Further, each planet impacts the sphere differently:
-Sun determines the strength of the sphere, either for good or ill.
-Moon determines the duration of the sphere.
-Eroee determines the cost of mana for casting the sphere.
-Sidiak determines the equilibrium time for casting the sphere.
-Tarox determines the health loss or gain for casting the sphere.
-Papaxi effects some part of casting the sphere randomly.
-Aapek determines the cost of power for casting the sphere.
I'm about 98% sure I have the astrolabe readings right now, though.
There's no help command because there's only one syntax: ASTROLABE to do the reading for right now, or ASTROLABE yyy-mm-dd-hh to check another date and time (you can include only as much as you want; if you do ASTROLABE 585-01-03 it'll give you the reading for that date at the same time as it is now). You really should have a watch, so that the GMCP info of the time is accurate; otherwise, you could be off by a bit when the signs change in the middle of the day.
Note that at this point I have not proven 100% that it's doing all the calculations correctly, but if someone who can do Astrology and read an Astrolabe can start using and and test it, and it turns out I have some calculation wrong, just let me know what it said, what it should have said, and for what date, and I will be able to fix it.
Explorer (80%), Achiever (53%), Socializer (53%), Killer (13%)
Bartle Taxonomy
(test yourself)
Looks great - though I think you're out by '1' somewhere in your code (maybe how you numbered spheres?)