[Under Consideration] Calculate Function

FuzzySadist

New member
JFF Member
Nov 18, 2017
31
2
0
58
Add a calculate function...

example:
SETVAR bloodmoon_date = CALCULATE("{gametime_day} + {bloodmoon_days}")
say "next bloodmoon day is on {bloodmoon_date}"
 
I came here to recommend something similar. So, I'll just combine it with this idea. However, I'd be happy with something slightly simpler than allowing variables.

One example is I'd like to create a message that announces when the trader has restocked. Something like:

Trader's will restock in [{bloodmoon_next} + 1] days!
Or perhaps that could be written as... If there was a {gameday} token.

Trader's will restock in [{gameday}%4] days!
(assuming he restocks every 4th day after the beginning of the game. I don't recall what the actual frequency is).
This could also be useful if you had a special event that you wanted to count down. Maybe something like...

The PVP cage match starts in [{2018-02-18} - {gameday}] days!
(of course you'll probably want something like a DATEDIFF() or DATEADD() type function for this)
Thanks!
Ian