----UPDATE----
Ok so I had to take the night off after my nerd-rage from trying to deal with this. But this morning I tried again and the same results. So I just clicked the atmosphere trigger and looked at the sidebar. It is quite irritating that I cannot copy/paste the GUID, but I just typed it out myself into the TriggerSetAtmosphere call function and it worked.
So essentially I had it set up to be Undead atmosphere inside this Atm trigger. I walk into some random box trigger and it changed the atm trigger to be Fog. So the I got the functionality to work, for anyone who is like me and wants to be able to change the atmosphere from triggers.
With the following code I have simulated a day/night cycle, but I'm not quite sure how the timing works. It seems that the integer is 1ms, so that 1000 is 1 second. So for my following quick example, I have this infinite loop that changes the atmosphere for an atmosphere trigger every 10 seconds. Seems to be working just fine.
Init:
TimerLaunch("atmTimerDay",10000);
KB:
IF
TimerFinished("atmTimerDay")
THEN
TriggerSetAtmosphere("19fda201-7858-43a0-b311-728ab1cc0891","Undead");
TimerLaunch("atmTimerNight",10000);
IF
TimerFinished("atmTimerNight")
THEN
TriggerSetAtmosphere("19fda201-7858-43a0-b311-728ab1cc0891", "Dawn");
TimerLaunch("atmTimerDay",10000);
Now, the GUID is just copied from the sidebar of the trigger, and the "Undead" and "Dawn" can be any atmosphere you want. You can create your own, obviously.
It helps to add something like "PlayEffectAtCharacter("FX_Skills_Air_Storm_Impact_A",CHARACTER_Player1);" into the THEN statement so you can see if the trigger is actually going off. I originally set the integer to 10 and it was changing atmospheres so fast that it wasn't registering. But the lightning effect made my guy look like Raidin, so I was able to realize the problem. I stole this trick from roguelike's video, so I'll give credit where it's due.
However, if anyone can tell me how to get the story editor to recognize the global atmosphere trigger, it would be so much easier to just query the UUID instead of having to type it out. Or, at least tell me how I can copy/paste the GUID since it is error-prone and tedious to just retype it out.
I was attempting to use this:
TriggerGetUUID(TRIGGER_atmTest,_atm1)
which spits out the UUID as a string variable I have labeled _atm1, which would be so much more convenient for scripting. However, as I mentioned, TRIGGER_atmTest is not being recognized.
Again, sorry if this is a newb question. I am quite new to modding.
Edit: One slight bug I notice is if I stand stationary inside the trigger, the atmosphere will not change. So you have to move in order to activate the atmospheric trigger. I suppose this isn't an issue if the day/night cycle is longer than 10 seconds because if you're standing around for 30 minutes straight, you probably aren't at the keyboard. Would be nice to fix this though for other atmospheric changes.
Last edited by Farmer Bob; 30/07/14 06:43 PM.