• 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] do you think this leak or I am idiot? :D

Status
Not open for further replies.
My map is a battle ground 6v6 heroes. I made AI to order automatically to the computer-controlled heroes to attack-move to a region. That's OK. Then i begun to make AI for spell casting - i made 3 units when attacked to learn and use a spell so far. Well - when i tested this in WC3 and i set all slots to computers - guess what - the units meet and begin to fight. that's not the problem - but when my hero(doesn't matter who) went to the melee the game crashed!

Here I post the code for the mountain king. (the others are paladin and archmage)

  • Events
  • Unit - mountain king is attacked
  • Conditions
  • Player 3 controller equal to computer
  • Actions
  • Countdown timer - expiring time as one-shot timer will expire in 2.00 seconds
  • Hero - learn skill for mountain king : human mountain king - storm bolt (attacking unit)
  • unit - order paladin human paladin holy light mountain king
 
You're most likely running into an infinite loop. It is a bit difficult to tell since you wrote the trigger by hand in the post rather than with right click-copy as text. :p

An infinite loop can occur when triggers fire each other constantly, e.g. if you have an event that registers when a unit is issued an immediate order, and in the actions your order the unit to "stop", it will cause an infinite loop. (the stop order fires the event, and then that triggers another stop, etc. until wc3 crashes)

Anyway, post the full the trigger of that, and post the triggers for when a unit casts that holy light ability and/or that storm bolt ability. It could also be anything that responds to an issue order event.
 
Status
Not open for further replies.
Top