• 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 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
 
Level 8
Joined
May 13, 2007
Messages
392
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 ...
 
Level 17
Joined
Apr 24, 2005
Messages
762
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.
Top