• 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.

I Need Trigger Help please...

Status
Not open for further replies.
Level 2
Joined
Jul 9, 2006
Messages
7
I Need Help For A Trigger In My Maps.
Like In Mazes If You Touch An Patrolling Unit Or Something You Die.
How To Do This??
please help
 
Level 8
Joined
Nov 20, 2005
Messages
372
Easiest way to do..

Trigger 1.

Event:map initialisation ( or whenever you want to add the unit to the group which kills the player when hes touching it)
Boolream:/
Event: Add *thepatrolingunit* to PatrolGroup

Trigger 2.

Event:player1 choices a unit
Player2 choices a unit
and so on with all players who could be killed when they touch them
Boolream:Triggering unit is in PatrolGroup equal to true
Event:player-Defeat Triggering player show dialoges show scores
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
ok, heres another way. just make a custom aura ability without effects and 100 range (and targets: enemy, not self)

events: map initiization
conditonos: -----
actions: pick every unit in playable map area owned by player (enemy) and add aura abiliy

events: every 0.01 sec of the game
conditons: -----
actions: pick every unit in playable map area with the buff of the aura and kill picked unit
 
Level 2
Joined
Jul 9, 2006
Messages
7
Its A Good Way But I Cant Find
'pick every unit in playable map area with the buff of the aura and kill picked unit'
Please Say Where It Is

-TornadoFlame
 
Level 1
Joined
Jul 10, 2006
Messages
4
Hi! I'm new here so I'm adjusting. I'm currently on mapping... I think I can help you...

First thing first. Create a variable called "PatrolGroup (Unit Group or Unit)" then use this trigger.

Pur first the unit in the PatrolGroup variable

If the patrolling unit is in the map, then:

Events
A unit comes within (100) range of (Your patrolling unit)
Condition
---Nothing Here---
Actions
Unit - Kill (Triggering Unit) --->If only you will just kill the unit
Game - Defeat --->If you want to kick the player from the game.

Else, if the unit will be created in-game, use this:
YOU NEED DUMMY UNIT FOR THIS.
Events
(The time where you want to create the unit)
Conditions
---Nothing Here---
Actions
Unit - Create (Your patrolling unit) at (where you want to put the unit) facing (Default building facing) degrees
Set "PatrolGroup" = (last created unit) ---> if the variable is a Unit
Unit Group - Put (last created unit) on (PatrolGroup) ---> if the variable is a Unit-Group
Unit - Create 1 (Dummy Unit) at a range of (the range of the patrol) with offset 100.00 (or something) from PatrolGroup --> i forgot about this part. I'll check when I get home.
Unit - Order PatrolGroup to Patrol at Position of last created unit (or store the the dummy unit in a variable if you like.)

Then, do this new trigger:

Events
A unit comes within (100) range of (PatrolGroup)
Condition
---Nothing Here---
Actions
Unit - Kill (Triggering Unit) --->If you want to kill the unit
Game - Defeat --->If you want to kick the player from the game.
 
Level 24
Joined
Jun 26, 2006
Messages
3,406
haha you don't need triggers just make a custom permanent immolation that does like 90000 damage per second and has a range of like 50 or w/e
 
Level 24
Joined
Jun 26, 2006
Messages
3,406
lol I am what you get when you mix wicked intelligence, laziness to the point of being a sin, and ADD
glad to spread new and different ideas =Þ
 
Status
Not open for further replies.
Top