I made a day night cycle with trigger. Is there a way to extend it to all maps by default via mods?

I made a day night cycle with trigger. Is there a way to extend it to all maps by default via mods?

Thank you!

2 Likes

You can and it is very simple. XS scripts.
but can i ask how you did it?

It’s much easier to do it on a scenario than on a RMS.
With a scenario you need a simple effect while with the RMS you have to code and know the syntax of XS scripting to build it in each RMS script :stuck_out_tongue:

I did it with simple scripts cycling in the scenario editor.

The issue is that I am looking for a way to make it default for all maps and not limited to the map in the scenario editor.

yeah sure, but you cant implement trigger from the editor to a random map xs script. He need to do it in RMS.

Im thinking about this to, and the easiest way would be with a godpower and a timer via rmTriggerAddScriptLine

One easy way to port over your triggers is by playtesting the scenario and looking into the temptrig.xs file (which contains the generated xs for triggers for the currently scenario or random map you’re currently playing). Generally, you can copy those triggers over in rmTriggerAddScriptLine indeed and it should work mostly out of the box.

I don’t remember on the top of my head where the temptrig.xs file is located…