Trigger expert help!

 Mulon


Joined:  22 Tháng 6 2011
Posts: 742
đã Post20 Tháng 4 2012 - 3:26 pm
Hi what i need to do is a conquerable base between 2 teams. When an unit stands in an area for 5 sec, buildings of that area swith team. That to be done for both teams for 5 bases. Also if 2 units of differents teams are in that area the buildings wont switch until is conested.
If you are interested contact me.

the map is Empire Wars
Mulon
Đường dẫn | Trả lời | Trích dẫn
 QuackQuackIvI_F


Joined:  9 Tháng 4 2012
Posts: 159
Đã được sửa20 Tháng 4 2012 - 4:22 pm bởiQuackQuackIvI_F
This doesn't sound that hard... just play around with it for a little bit and you'll figure it out. In a couple weeks if you still can't do it post the link here and I'll do it.



Đường dẫn | Trả lời | Trích dẫn
 Mulon


Joined:  22 Tháng 6 2011
Posts: 742
đã Post8 Tháng 8 2012 - 10:17 pm
saw the map but i cant figure out how you did it, too many triggers. Can you help me?
Đường dẫn | Trả lời | Trích dẫn
 BF_Basse


Joined:  13 Tháng 4 2009
Posts: 560
đã Post8 Tháng 8 2012 - 11:41 pm
Trigger 1: Take Area
Starts: ON
Looping: Yes
Condition: Timer: 5
Condition: Objects in area (you put units near the building)
Effect: Change Ownership (from p2 to p1)

This will however activate as soon as you put units at the building since the timer counts down from start. So 5 seconds after start, the building will be instantly converted if units are put near the building.

To prevent this you need this:

Trigger 1: Units on Area
Starts: ON
Looping: NO
Condition: Objects in area (you put units near the building)
Effect: Activate Trigger: Trigger 2: Take Area

Trigger 2: Take Area
Starts: OFF
Looping: NO
Condition: Timer: 5
Condition: Objects in area (you put units near the building)
Effect: Change Ownership (from p2 to p1)
Effect: Activate Trigger: Trigger 1: Units on Area

However, this will bring another problem. If the units close to the building dies before the building is captured, the trigger is still active. So when the next unit go near the building, the building will instantly convert.

There is a better way, but it involves a lot of triggers and other stuff too


Đường dẫn | Trả lời | Trích dẫn
[1]
Hiển thị 1 - 4 ngoài 4 Bài viết
Nhảy Forum
1 User(s) làđọc chủ đề này 30 phút vừa qua
0Thành viên1 Khách

Dân số hiện tại:
AoKTS updates (38 Người chơi)
TDII (30 Người chơi)
Photos of Voobly Players (30 Người chơi)
TIW 2020 Map votes (26 Người chơi)
CBA PathBlood 1.8.2 (12 Người chơi)
Chủ đề tích cực nhất tuần qua: