• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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