• 🏆 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!

[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,201
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