Trigger crashes Warcraft

Status
Not open for further replies.
Level 17
Joined
Apr 24, 2005
Messages
762
I wanted to make a trigger that when a unit picks up an item the unit will turn into a knight. But for some reason the trigger crashes my game. Is there another way to do this? Maybe change model or something? (the warrior is actually a knight and yes the knight is a hero too)

  • Horse
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Horse
    • Actions
      • Unit - Replace (Hero manipulating item) with a Warrior using The old unit's life and mana
 
Then make

  • Test
  • Events
    • Unit -A unit acquires an item
  • Conditions
    • Item carried by (Triggering unit) of type Ring of Protection +5) Equal to (Item being manipulated)
  • Actions
    • Unit - Create 1 BloodMage at position of (triggering unit)
    • Unit - Set life of LastCreatedUnit to life of (triggering unit)
    • Unit - Set mana of LastCreatedUnit to life of (triggering unit)
try this ...
 
If i use that there will be 2 units? And another thing i forgot to mention is that the unit that the hero is supposed to change into is a hero also. And i found out that it works with normal units but doesnt with heroes
 
Status
Not open for further replies.
Back
Top