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

[Trigger] Trigger problems

Status
Not open for further replies.
Level 3
Joined
Jun 30, 2008
Messages
25
In my map, the character starts out with three units: two hero's and one support caster. The first thing you fight is a lich that, at 75% life, flee's to the other side of the map and begins spawning undead like mad. This much is working, however, the next part the lich is supposed to flee again into a mausoleum. He flees and is gone, but all the undead he spawned aren't dying like I've specified and the triggers for the spawns aren't turning off either. My entire trigger think looks like this (because idk how to take a screenshot of it):

Map Initialization - Special Effect: Sword (just an attachment is in this trigger)
Nightfall Guardian
- Damage 1
- Events - Unit Necromancer004 <gen> takes damage
- Conditions - (life of Necromancer004 <gen>) less than or equal to 7500
- Actions - Quest - Display to (all players) the Warning message: Nightfall Guardian flees!
- Special Effect - Create a special effect at (center of region 000 <gen>) using war3mapimported\darkpillar.mdx
- Unit - move Necromancer004 <gen> instantly to (center of region 001 <gen>)
- Unit - make Necromancer 004 invulnerable (this is so your hero's stop chasing him. I would just issue them to stop, but im lazy)
- Wait 2 seconds
- Unit - make Necromancer 004 vulnerable
- Trigger - Turn on Undead spawn <gen>
- Trigger - Turn on Undead spawn 2 <gen> (this spawns a different type of undead)
- Trigger - Turn off Damage 1
- Undead Spawn
- Events
- Time - Every 20 seconds of game time
- Actions
- Unit - Create 1 Putrid Horror for Player 6 (orange) at (center of region 002)
- Unit Group - Order (Units of type Putrid Horror) to attack Harvester 0005 <gen>
- Special Effect - Create a special Effect at (center of region 002) using Abilities\Spells\Orc\Devour\DevourEffectArt.mdl
- Undead Spawn 2 (its just the same as undead spawn 1 except using a ghoul and at region 003)
- Damage 2
- Events
- Unit - Necromancer 004 <gen> takes damage
- Conditions
- (life of Necromancer004 <gen> less than or equal to 2500
- Actions
- Quest - Display to (all players) the Warning message: Nightfall Guardian flees into the mausoleum!
- Unit - make Necromancer004 <gen> invulnerable
- Unit - move Necromancer004 <gen> instantly to (center of region 005)
- Trigger - Turn on Nightfall Guardian <gen>
- Trigger - Turn off damage 2
Ending Cinimatic
- Nightfall Guardian
- Events
- Unit - A unit enters Region 005
- Conditions
- (triggering unit) Equal to Necromancer 004 <gen>
- Actions
- Unit - hide Necromancer 004 <gen>
- Unit - Remove Necromancer 004 <gen> from the game
- Special Effect - Create a special effect at (center of region 005) using war3mapimported\DarkPillar.mdx
- Trigger - Turn on Cinimatic <gen>
- Trigger - Turn off Undead spawn 2
- Trigger - Turn off Undead spawn
- Cinimatic
- Actions
- Unit Group - Pick every unit in (units of type Putrid Horror) and do (kill(triggering Unit))
- Unit Group - pick every unit in (units of type (Swamp zombie)) and do (kill(triggering Unit))

I realize in the Cinimatic trigger that it needs an action, but I moved them out of the Nightfall Guardian trigger because they didnt work there either and I thought something like this would fix it. obviously not.

If there is a duplicate thread its because it might have been moved here. Posted one like this on the world editor help then told it was wrong place :gg:
 
Level 7
Joined
Jul 20, 2008
Messages
377
- Unit Group - Pick every unit in (units of type Putrid Horror) and do (kill(triggering Unit))
- Unit Group - pick every unit in (units of type (Swamp zombie)) and do (kill(triggering Unit))

Triggering Unit should be Picked Unit.
 
Level 3
Joined
Jun 30, 2008
Messages
25
- Unit Group - Pick every unit in (units of type Putrid Horror) and do (kill(triggering Unit))
- Unit Group - pick every unit in (units of type (Swamp zombie)) and do (kill(triggering Unit))

Triggering Unit should be Picked Unit.
Yeah i did that before and it didnt work. but ill try again.

Edit: tried and didn't work. :sad:
 
Level 12
Joined
Aug 22, 2008
Messages
911
Wrong!
  • Unit Group - Pick every unit in (Units in (Playable Map)or whatever matching (Unit type of (Matching Unit) equal to Putrid Horror)) and do (Actions)
    • Actions
      • Unit - Kill (Picked Unit)
      • -------- Or --------
      • Unit - Order (Picked Unit) to Attack Harvester (or even better) Attack-Move to (Position of Harvester)
-You don't remove your special effects! Apart from it being a humongous leak it's ugly sometimes.
-I never knew there's a "takes damage" event, good job finding that.

P.S. Please type your triggers in GUI code next time... For all our sakes. :)
 
Status
Not open for further replies.
Top