• 🏆 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 that causes wc3 to close

Status
Not open for further replies.
Level 4
Joined
Aug 26, 2009
Messages
65
whenever this trigger is ran warcraft 3 forcequits, does anyone know how i can get it working
  • FlameThrower Drop
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Unit-type of (Hero manipulating item)) Equal to Survivor With a Flamethrower
      • (Item-type of (Item being manipulated)) Equal to Flamethrower
    • Actions
      • Unit - Replace (Hero manipulating item) with a Survivor Normal using The old unit's relative life and mana
      • Hero - Set (Last created unit) experience to (Hero experience of (Hero manipulating item)), Hide level-up graphics
or... does anyone know an alternative that will still keep the items and HP the same
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
Try putting a wait before replacing the hero and see if the game still crashes. (this is for debugging).
If it does not then obviously you can not remove the triggering unit in response to that event (how replace works). Thus you may have to use a timer with 0 seconds delay (0.0000) to give some kind of delay before removing the unit.
 
Status
Not open for further replies.
Top