Page 1 of 1
DM2 weather system: explanation?
Posted: Mon Mar 15, 2010 8:11 pm
by Gambit37
I've tried to fathom out how GG set this up but I seem to be failing to grasp it. Has anyone pulled it apart and can explain it -- clearly?
Re: DM2 weather system: explanation?
Posted: Tue Mar 16, 2010 6:14 pm
by Lord_BoNes
The weather system in DM2 works as follows... it triggers the relay chain with a given delay between each "stage" of the weather. When it reaches a given stage, it does a GLOBAL_SWAP_FAST on all the objects that it has to... IE: the "rain" hazes (it swaps out the old haze for a new one, pretty straight forward here)...
The more complex part is how it swaps the wallsets. Each dungeon level has a default wallset (as you know), and you can change this wallset to another one, using ACTION_CHANGE_LEVEL_WALLSET. The object_1 field of the action determines the wallset to change it to... if you check out each of the "wallset objects", you'll find they each have a different "default wallset"... this field sets what the new wallset will be.
EG: If you clone a WALLSET_ALT item (floor or wall, doesn't matter) and you use that object_type for a ACTION_CHANGE_LEVEL_WALLSET, then the dungeon-level of the object that started the relay chain will change wallsets. IE: If you started the relay chain using a FLOORITEM_TRIGGER, then the level that the FLOORITEM_TRIGGER resides on.
I hope that this helps, but I'm sure that I could do a brief tutorial map for ya... keep an eye out over the next few days.
Re: DM2 weather system: explanation?
Posted: Sat Mar 20, 2010 4:33 pm
by Lord_BoNes
Just a quick run-through of the DM2 weather system. This only changes the actual appearance of the environment (no lightning, thunder, etc) simply to illustrate what I said above. I've included "comments" about the workings.
Here is the link.
Re: DM2 weather system: explanation?
Posted: Sat Mar 20, 2010 4:56 pm
by Gambit37
Cool, nice one, I'll check it out
