• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Need help with triggers!

Status
Not open for further replies.
Level 4
Joined
Sep 16, 2004
Messages
71
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.
 
Level 5
Joined
Nov 21, 2005
Messages
100
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.
 
Level 4
Joined
Sep 16, 2004
Messages
71
IggyZ said:
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.
Unable to teamkill did not worked! Are you sure it is that you must do to make it unable?
 
Level 24
Joined
Jun 26, 2006
Messages
3,406
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.
 
Status
Not open for further replies.
Top