• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

switch heroes

Status
Not open for further replies.
Level 4
Joined
Jun 17, 2011
Messages
64
in my map you can advance to a different hero but i cant make the trigger work. would i use replace unit? this is my trigger
  • Untitled Trigger 005
    • Events
      • Unit - A unit enters Region 015 <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is A Hero) Equal to True
        • Then - Actions
          • Unit - Remove (Triggering unit) from the game
          • Unit - Create 1 Footman for (Owner of (Triggering unit)) at (Center of after job change 1 <gen>) facing Default building facing degrees
        • Else - Actions
 
Level 6
Joined
Sep 27, 2008
Messages
258
you can't have them the same and before you made them the same did it remove the 1st hero and then create the new unit? or did it crash

if it crashed then job change 1 <gen> could be triggered to do something else which might cause it to loop and crash but a test map would help alot
 
Status
Not open for further replies.
Top