HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adding weather effects to starting buildings

10-16-2003, 05:04 AM#1
Unsung Hero
I was able to develop a trigger (w/ help) that allows me to add weather effects to constructed buildings


Event
Unit owned by player 1 finishes construction

Conditions
Unit-type of consturcted structure equal to ziggurat

Actions
Center Region 000 <gen> on Position of Constructed Structure

and I created a weather effect and turned it on.

I want to do a similar thing to starting buildings (town halls, haunted mines, etc.), but I can only do it so that the effects appear if I build the structure. I've been tweaking w/ the map some, but to no avail. Help would be appreciated.
10-16-2003, 05:32 AM#2
ULTIMA_WEAPON_
cool:D Hopefully You learn some good and professional triggers as you continue your journy through WE
10-16-2003, 06:20 AM#3
Unsung Hero
Thanks man, I appreciate the compliment. But, I was wondering if anyone could offer their help? I'm trying to add weather effects to starting buildings, but I don't know how. emote_confused
10-16-2003, 07:04 AM#4
Ligature
Write a trigger that runs on map initialization, or at time elapsed = 1 second, and make it:

-Pick all units in playable map area of type [whatever]

and run your attach weather effect script for each.
10-16-2003, 10:48 AM#5
BlackSlash
Try to use event:

Unit - A unit Begins construction

And refer to this unit in your triggers with "Constructing Building".
10-16-2003, 04:42 PM#6
Unsung Hero
Quote:
-Pick all units in playable map area of type [whatever]

Is that second step an 'Integer Comparison' Ligature?

And, it seems to me I've already tried your suggestion BackSlash. But I'll try it again.

Thanks for your help!
10-16-2003, 05:33 PM#7
cideh
Special FX
Events:
Map Initialization
Actions:
Unit Group - Pick every unit of Type X and do: Create Special Effect