Page 2 of 2

Re: Date dependent fun condition

Posted: 18 Feb 2018, 02:50
by Lobby
Date condition works on the absolute date, so that's not suited here.

I recommend to use the current frame of your building instead as some sort of a counter. You can increase it on a daily basis and when it reaches a specific value you can execute the replacement action.

Re: Date dependent fun condition

Posted: 26 Apr 2018, 20:26
by Kulche
Wait, how can action be executed at random day of the year? :calc

Re: Date dependent fun condition

Posted: 13 Jul 2021, 07:50
by Yakka
I want add sound fun for nature+ Plugin,it depends on time,such as at day it plays daytime sound when is night it play nighttime sounds, please provide me with code samples

Re: Date dependent fun condition

Posted: 06 Sep 2023, 04:38
by CERRERA

Code: Select all    Reset

"random fun":[ {"condition":{"type":"and","inner":[ {"type":"date","min":0,"max":5}, {"type":"building","id":"$rusty_industry_1"} ]}, "actions":[ {"type":"burn","id":"$rusty_industry_1"} ] }]
JSON checker
Check
Hello good day
I have a question about my fun command
Why the building are not burning ?