• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need Help im MapMaker -> Europe !

Status
Not open for further replies.
Level 2
Joined
Jun 29, 2004
Messages
19
If anyone ever played Europe map, he knows whats happening when u r attacking castle and take it life to 25% - u take control of it !! How to make a trigger for that ?? I cant imagine any :( And i need to know it for my new map :)

Plz help :D
 
Level 13
Joined
May 5, 2004
Messages
1,330
Two ways

Untitled Trigger 006
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacked unit)) Equal to Castle
(Life of (Attacked unit)) Less than [value, not something like 25%]
Actions
Unit - Change ownership of (Attacked unit) to (Owner of (Attacking unit)) and Change color

Probably runs too often, but easier

2. way

Untitled Trigger 007
Events
Unit - Castle's life becomes Less than [specific value, not something like 25%]
Conditions
Actions

With this one I'm not quite sure how to refer to the attacker
 
Level 7
Joined
Mar 26, 2004
Messages
350
to 2.
in my opinion, only "triggering unit" refers to it, so i see no possibility to use the 2. way
 
Level 2
Joined
Jun 29, 2004
Messages
19
Very Big THX DarkShadow. I tried many triggers of my own, but never thought about unit-type = castle :oops:

IT WORKS !!
 
Status
Not open for further replies.
Top