HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help w/ trigger making doodad reapear

02-26-2006, 09:04 PM#1
cfmonkey45
Hi, I'm making a map where if a unit goes in side a region (the entrance to the cathedral) then the cathedral hides, and when the unit leaves, it reapears. The first part worked great, but i cant get the cathedral to reappear. Here's the triggers:

Trigger:
Enter
Collapse Events
Unit - A unit enters Church Entry <gen>
Conditions
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Collapse Or - Any (Conditions) are true
Collapse Conditions
((Entering unit) is in (Units in (Playable map area)(((((Matching unit) is A Hero) Equal to True) and (((Matching unit) is in (Units in (Playable map area) owned by Player 12 (Brown))) Equal to True)) or ((Owner of (Matching unit)) Equal to Player 11 (Dark Gr Equal to False
(Race of (Entering unit)) Not equal to Undead
Collapse Then - Actions
Animation - Play the hide animation for all doodads of type Cathedral within (Playable map area)
Trigger - Turn on Exit <gen>
Trigger - Turn off (This trigger)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(No Evil <gen> is on) Equal to True
Collapse Then - Actions
Trigger - Run No Evil <gen> (checking conditions)
Collapse Else - Actions
Trigger - Turn on No Evil <gen>
Trigger - Run No Evil <gen> (checking conditions)

Trigger:
Exit
Collapse Events
Unit - A unit leaves Church1 <gen>
Collapse Conditions
((Number of units in (Units in Church1 <gen>((Number of units in (Units in Church1 <gen>((Matching unit) Not equal to (Leaving unit)))) Equal to 0))) Equal to 0) and ((Number of units in (Units in Church2 <gen>)) Equal to 0)
Collapse Actions
Animation - Play the show animation for all doodads of type Cathedral within (Playable map area)
Trigger - Turn on Enter <gen>
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(No Evil <gen> is on) Equal to True
Collapse Then - Actions
Do nothing
Collapse Else - Actions
Trigger - Turn on No Evil <gen>
Trigger - Turn off (This trigger)
02-26-2006, 09:46 PM#2
Anitarf
The condition on the second trigger looks really wierd, you sure you copied that correctly?
02-27-2006, 05:14 AM#3
cfmonkey45
yea, im sure... its on WEU so its a little different... its the "Count units in Rect matching condition" thing. is that the problem?
02-27-2006, 05:36 AM#4
Jacek
Play the show animation? Models don't have these. You meant probably - Show/Hide doodad (change vertex coloring to 15% opacity for some transparency maybe?

Look in this thread also:

http://wc3campaigns.com/showthread.php?t=45482
02-28-2006, 01:07 AM#5
cfmonkey45
Yea i got it to work... i ditched the doodad idea and i replaced it with a unit... it works fine now. thanks for ur help