• 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] Why does this shut down wc3 tft?

Status
Not open for further replies.
Level 10
Joined
Jul 22, 2008
Messages
363
Im working on a game and one of the thigns is that you can pick up items and then your hero changes to fit the item you pick up. Example is
  • Untitled Trigger 005
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • Base Ball Bat Equal to (Item-type of (Item being manipulated))
    • Actions
      • Unit - Replace (Triggering unit) with a John using The old unit's relative life and mana
I dont know if there is a leak or somethign and if there is can someone give me a script to fix it. Help is appreciated.:grin:
 
Level 12
Joined
Mar 26, 2005
Messages
790
if trigger shut down wc3, it means that once the triger will start, it will repeat again and again (exactly infinity times) so the procesor cannot make infinity actions during one moment, so it will shut down wc3

problem is that when it replaces unit with another, the replaced unit also recieved that item, so the triger will start again


you can solve it making one more condition to that triger

Unit type of Triggering (or smthng else that triggering, I dont have WE opened) is Not equal to John
 
Status
Not open for further replies.
Top