Scripting For Wind

This section will explain using wind and how to script for it in your level.
The only assumption I'm making is that you have Dallas up and running
and that you know how to put your script into the .mn3 file.

First some rules about wind.
1) Wind is a room property and applies to the entire room.
2) It blows in one direction per room.  It doesn't swirl.
3) You can script changes in the wind's direction and or speed caused by an event.
4) A speed of 10 is faster than a player ship.
5) You can set wind in Room Properties (not scripting)but that is always on and cannot be changed.
Lets get started.  First I'll make a small level.

It's made of  2 rooms: one is U shaped the other is other is a simple rectangle.  That's the room we'll put the wind in.

The room has to have a name so we can script to it.

Make it the current room.  Then while in 'Current Room View' go to Windows-Room Properties.  In the upper left corner you see Name and the button says (none).  Click on the button and assign it a name. (see example below).
Notice that once you have given the room a name it appears in the Current Room View title bar.

Save it and start up Dallas.  We'll put our wind script in the level start.
First go into 'Then Perform New Action' and 'Add a New Action'.  Wind is a room property
so go to 'Rooms'.  Pick the "Set wind in room.." action.  Below depicts how to get to it.
(I cut down the Rooms list keep the picture size down.)

To get to the variables we need to set click on the + sign and the branch will open.
Right-click Room and a dialog appears with a list of all the named rooms in your level.  (left)
Pick the room.

X, Y, and Z are your directions.  We'll set the wind to blow as shown to the right by setting Y to 1.

Set the speed to 6.
 

Thats' it.  Save the script, compile it and put it your mission.