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

Same target {clone that attacks and casts spells on the same target as the summoner}

Status
Not open for further replies.
Level 13
Joined
Oct 27, 2008
Messages
1,176
Ok roughly what i'm aiming for is this
Hero Summons Clone
Clone attacks and casts skills on the same target as the hero
hope you understand what i'm saying
PS there can be up to 10 of the same hero on my map if you can put that into the trigger to if possible
 
Level 13
Joined
Oct 27, 2008
Messages
1,176
Clone = Custom Skill useing Triggers
the hero/clone both get the same skills
Blizzard, Fire Ball, Briliance Aura
I have
  • Summon
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Clone
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Clone for (Triggering unit)) Equal to 1
        • Then - Actions
          • Set Clone_TempPoint[1] = (Position of (Triggering unit))
          • Unit - Create 1 Jaina (clone) for (Owner of (Triggering unit)) at Clone_TempPoint[1] facing Default building facing degrees
          • Unit - Add Brilliance Aura to (Last created unit)
          • Unit - Set level of Brilliance Aura for (Last created unit) to (Level of Brilliance Aura for (Triggering unit))
          • Unit - Add Sub-Zero Blizzard to (Last created unit)
          • Unit - Set level of Sub-Zero Blizzard for (Last created unit) to (Level of Sub-Zero Blizzard for (Triggering unit))
          • Unit - Add Fire Ball to (Last created unit)
          • Unit - Set level of Fire Ball for (Last created unit) to (Level of Fire Ball for (Triggering unit))
          • Hero - Set (Last created unit) Hero-level to (Hero level of (Triggering unit)), Hide level-up graphics
          • Hero - Modify Strength of (Last created unit): Set to (Strength of (Last created unit) (Exclude bonuses))
          • Hero - Modify Agility of (Last created unit): Set to (Agility of (Last created unit) (Exclude bonuses))
          • Hero - Modify Intelligence of (Last created unit): Set to (Intelligence of (Last created unit) (Exclude bonuses))
          • Unit - Add a 25.00 second Generic expiration timer to (Last created unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Clone for (Triggering unit)) Equal to 2
            • Then - Actions
              • Set Clone_TempPoint[1] = (Position of (Triggering unit))
              • Unit - Create 1 Jaina (clone) for (Owner of (Triggering unit)) at Clone_TempPoint[1] facing Default building facing degrees
              • Unit - Add Brilliance Aura to (Last created unit)
              • Unit - Set level of Brilliance Aura for (Last created unit) to (Level of Brilliance Aura for (Triggering unit))
              • Unit - Add Sub-Zero Blizzard to (Last created unit)
              • Unit - Set level of Sub-Zero Blizzard for (Last created unit) to (Level of Sub-Zero Blizzard for (Triggering unit))
              • Unit - Add Fire Ball to (Last created unit)
              • Unit - Set level of Fire Ball for (Last created unit) to (Level of Fire Ball for (Triggering unit))
              • Hero - Set (Last created unit) Hero-level to (Hero level of (Triggering unit)), Hide level-up graphics
              • Hero - Modify Strength of (Last created unit): Set to (Strength of (Last created unit) (Exclude bonuses))
              • Hero - Modify Agility of (Last created unit): Set to (Agility of (Last created unit) (Exclude bonuses))
              • Hero - Modify Intelligence of (Last created unit): Set to (Intelligence of (Last created unit) (Exclude bonuses))
              • Unit - Add a 30.00 second Generic expiration timer to (Last created unit)
            • Else - Actions
 
Level 6
Joined
Sep 9, 2006
Messages
92
That trigger looks ok, make sure that you can only use this once you have enough lvls to have all other abilities. Then you need to make a trigger that makes the clone cast the same spell when the hero casts a spell. I would also suggest to have some sort of boolean to tell when the spell is active so you know when to make the clone try to ast the spell so it doesnt try if there isnt a clone.
 
Level 2
Joined
Mar 11, 2009
Messages
26
You might want to add the clones to a unit-group so that you can order all units of that unit group to cast a certain spell, you should make a trigger like this:

  • Jaina Casts fireball and orders clones to imitate her
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Jaina_Clone_Group and do (Unit - Order (Picked unit) to Neutral - Firebolt (Target unit of ability being cast))
You will have to make a trigger for each spell as they are based on different abilities and some require a unit and some require a point.
 
Level 2
Joined
Mar 11, 2009
Messages
26
Ah yea, you wanted it to be usable for multiple heroes on a multiplayer map so you might want to add a array to the unit group, also for the blizzard you should use the exact same thing, but instead of "unit - issue order targeting a unit" you should use "unit - issue order targeting a point". Oh and might add a condition to each trigger checking what spell is being cast as it might cause issued on each ability cast.


Here are the triggers just to be clear:

  • Jaina casts fireball
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Fireball
    • Actions
      • Unit Group - Pick every unit in Clone_Unit_Group[(Player number of (Owner of (Triggering unit)))] and do (Unit - Order (Picked unit) to Human Mountain King - Storm Bolt (Target unit of ability being cast))
  • Jaina casts Blizzard
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Blizzard
    • Actions
      • Unit Group - Pick every unit in Clone_Unit_Group[(Player number of (Owner of (Triggering unit)))] and do (Unit - Order (Picked unit) to Human Archmage - Blizzard (Target point of ability being cast))
 
Level 13
Joined
Oct 27, 2008
Messages
1,176
i have it set for multi hero already
heres what i have
  • Attacks
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Fire Ball
        • Then - Actions
          • Unit Group - Pick every unit in Clone[(Player number of (Owner of (Triggering unit)))] and do (Unit - Order (Picked unit) to Neutral - Firebolt (Target unit of ability being cast))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Fire Ball
        • Then - Actions
          • Unit Group - Pick every unit in Clone[(Player number of (Owner of (Triggering unit)))] and do (Unit - Order (Picked unit) to Neutral - Firebolt (Target unit of ability being cast))
        • Else - Actions
and blizzard for some reason isnt a skill i can pick
 
Status
Not open for further replies.
Top