Just wanted to make sure I had this correct before adding it to my breakfast routine... I saw a suggestion made for using this for fullness in another thread, and wanted to see if I had the right idea...
Okay, point being, I'd like to summon 5 candy hearts a day automatically, and no more unless I choose to do so manually. Here's what I have:
I wasn't sure if there was any way to actually just check if a property exists in the first place, or is null. I thought about setting today's property to zero before calling that line, but realized it would essentially null and void that if check if I logged in again... I thought about doing something a bit... "simpler", such as just storing the date as a property, and, if the date did NOT match the current date (i.e., it was set last yesterday), it would summon them, and if not, if wouldn't...
So, as usual, any suggestions?
Edited to fix the title... darn new keyboard typo demons!
Okay, point being, I'd like to summon 5 candy hearts a day automatically, and no more unless I choose to do so manually. Here's what I have:
Code:
if(set_property("candyhearts_" + today_to_string(), "0")) { use_skill(5, $skill[Summon Candy Hearts]); set_property("candyhearts_" + today_to_string(), "1"); }
I wasn't sure if there was any way to actually just check if a property exists in the first place, or is null. I thought about setting today's property to zero before calling that line, but realized it would essentially null and void that if check if I logged in again... I thought about doing something a bit... "simpler", such as just storing the date as a property, and, if the date did NOT match the current date (i.e., it was set last yesterday), it would summon them, and if not, if wouldn't...
So, as usual, any suggestions?

Edited to fix the title... darn new keyboard typo demons!