Warcraft III resources & community, 2003–2006 · archived

Need help with triggers!

4 posts
#1

Need help with triggers!

Hi! I´m not so good with triggers and need help how to fix some things in my map.

1: How to make trees invulnerable? If it can´t be that, I want to know how to make the to regrow.
2: How to make it unable to teamkill?
3: How to make that an item not can be droped in a special region?
4: Also need help with recipes! How to make 3 items to 1 greater item?

If you know how to do some one of this plz send it.
#2
1: Make trees have: Combat - Targetted as invulnerable
2: Make every unit have: Attack 1 or 2 Targets Allowed: ground, enemy, (air), Debris, item, Ward
3: Event: Generic unit loses an item. AND [If Boolean: Region contains losing unit // If item type: item type of dropped item == bla]
Then: give dropped item to dropping unit
4: Meh. Lame. You'd need to be more specific.
#3
IggyZ1: Make trees have: Combat - Targetted as invulnerable
2: Make every unit have: Attack 1 or 2 Targets Allowed: ground, enemy, (air), Debris, item, Ward
3: Event: Generic unit loses an item. AND [If Boolean: Region contains losing unit // If item type: item type of dropped item == bla]
Then: give dropped item to dropping unit
4: Meh. Lame. You'd need to be more specific.

Unable to teamkill did not worked! Are you sure it is that you must do to make it unable?
#4
You can set it up so that it sets your health low/kills you for attacking allied units :wink:
that should work something like

Event
A unit is attacked
Condition
((Triggering unit) belongs to an ally of (triggering player)) Equal to True
Action
unit - Set (either Healthor Mana) of (attacking unit) to (w/e)
OR
unit - Kill (attacking unit)
or you could set it up for each individual player

Event
A unit is attacked
Condition
(attacked unit) belongs to player 1 (red)
(attacking unit) belongs to an ally of player 1 (red)
etc.

The second method would take longer but me much more likely to succeed.