• 🏆 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!

need help

Status
Not open for further replies.
Level 3
Joined
May 3, 2008
Messages
16
if i want a unit to change into a new unit by buying a tome would i need to do a trigger(i can do most bacis triggers) or do i just need to make a fancy special tome if its a trigger would it look something like this

events
unit buys a item
conditions
unit equal to
item equal to
actions
create unit at triggering unit
remove triggering unit

and would that work?
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
You need to make a trigger for that. And the trigger concept you posted is good, but I suggest you use the 'Unit - Specific Unit Acquires an item', so you don't need the condition, and 'Unit - Replace Unit' Action instead of creating and removing the unit. :wink:
 
Level 3
Joined
Mar 12, 2007
Messages
62
  • Untitled Trigger 001
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Unit-type of (Hero manipulating item)) Equal to Your Unit
      • (Item being manipulated) Equal to Your Item
    • Actions
      • Unit - Replace (Hero manipulating item) with a Your unit using The new unit's default life and mana
I think this should work but im not 100% sure as its from the back of my head ^^
 
Status
Not open for further replies.
Top