HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Lightening Cinematic doodad.

12-27-2003, 10:03 PM#1
Bulletbutter
How does one go about using this. I am tryig to make a part in my map with the effect of a thunderstorm but I can't get the lightening bolt to work correctly. I saw the creater of CoTn use this perfectly. I opened his map to see if I could figure it out, but I can't. Anyone please help me.
12-27-2003, 11:15 PM#2
drezman
you mean when lighting randomly hits the ground?
12-28-2003, 06:31 AM#3
Bulletbutter
Exactly.
12-28-2003, 05:48 PM#4
drezman
that's easy, you just make a trigger making a loop that randomly creates a lightning doodad in playable map area, then wait 2 seconds or w/e, remove doodad, and loop.
12-28-2003, 07:25 PM#5
Dead-Inside
Ultimate effect trigger would be something like:

Event
Every 0.40 seconds
Condition
Actions
Create LightningDoodadHere at (Random Point in(YourRegionHere))
Set (Last created unit/doodad) = YourArrayVariableHere[Integer]
Set Integer = (Integer + 1)

Then you need to remove aswell... Have this turned on a bit later (After 4 bolts or so are created)

Event
Every 0.40 seconds
Conditions
Actions
Remove YourArrayVariableHere[Integer2]
Set Integer2 = (Integer2 + 1)

Play this for however long you want it to, then stop the first trigger first, and let the second one remove them all. Then set the Integer and Integer2 to 0 again (If you're going to use this again).

Regards
Dead-Inside
01-31-2004, 03:32 PM#6
Shimrra
Try using a periodic event, like Dead-Inside said, only create it as a special effect. That way, the game automatically removes it after it flashes, so you don't have have a separate trigger to remove it.

Event: Every (Time Here) seconds

Condition: None

Event: Special Effect: Create 1 Lightning Bolt at Random Point in (Region)
01-31-2004, 07:16 PM#7
renao
Following the thread, could anyone help me to make a nice rain, with flashes and sounds of thunder working together? how to make flashes in the screen, like in a storm?
01-31-2004, 08:35 PM#8
Shimrra
To make rain, create a region covering the area you want it to rain in. Then open the region options box and check weather effect. Set it to Ashenvale Rain (Light or Heavy). This will make it rain in the area.

If you want to be able to start and stop the rain, via triggers, the do not check the weather effect. Create a trigger that runs at map initialization and set the action like this:

Events: Map Initialization

Conditions: None

Actions: Environment - Create Weather Effect in (RAIN REGION) using Ashenvale Rain (Light or Heavy)
Set (Rain Variable) to Last Created Weather Effect

To turn on the rain just use the Environment - Enable\Disable Weather Effect to turn the rain on and off. For the lightning, just do what I said before. You might also want to consider loop-playing MonsoonRainLoop.wav for the sound effects. Unfortunately, I am not familiar with flashes. I know that it is a very short fade filter (under cinematic) but I couldn't tell you how to use it.