• 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] Simple trigger causes Warcraft to close

Status
Not open for further replies.
Level 7
Joined
Jan 18, 2007
Messages
180
  • attack neutral
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Owner of (Target unit of issued order)) Equal to Player 11 (Dark Green)
    • Actions
      • Unit - Order (Ordered unit) to Attack (Target unit of issued order)
I went in to test the trigger, and when I attacked a unit owned by Player 11, Warcraft just closes. No error message or anything.
 
Level 9
Joined
Oct 17, 2007
Messages
547
How about use the "Unit is attacked" event? Check if triggering unit belongs to player 11?

Btw, what does that trigger suppose to do? im confused...
 
Level 4
Joined
Dec 16, 2007
Messages
134
Well is player 11 an enemy? if so then you don't need that trigger.

If it is an ally then try adding a condition if order is move or patrol.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
The event crashes cause it makes an innfinate loop.

You issue an order (the unit to attack) which triggers the event again (which issues another order) and so on.

Thus WC3 crashes.

Try adding a condition like order is not equal to attack and it should no longer crash.
 
Status
Not open for further replies.
Top