• 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.

[Help]Is there any Leaks?

Status
Not open for further replies.
here's the triggers

  • Ion Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ion Cannon
    • Actions
      • Set Ion_Caster = (Casting unit)
      • Set Ion_Target = (Target unit of ability being cast)
      • Special Effect - Create a special effect at (Position of Ion_Target) using war3mapImported\IonCannon.mdx
      • Set Ion_Fx[1] = (Last created special effect)
      • Unit - Pause Ion_Target
      • Unit - Make Ion_Target Invulnerable
      • Set Ion_Int = 0
      • Trigger - Turn on Ion Int <gen>
======================================================

  • Ion Int
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Set Ion_Int = (Ion_Int + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Ion_Int Equal to 14
        • Then - Actions
          • Set Ion_Int = 0
          • Unit - Make Ion_Target Vulnerable
          • Unit - Unpause Ion_Target
          • Unit - Create 1 Dummy Ion for (Owner of Ion_Caster) at (Position of Ion_Target) facing Default building facing degrees
          • Set Ion_Dummy[1] = (Last created unit)
          • Unit - Add a 1.00 second Generic expiration timer to Ion_Dummy[1]
          • Unit - Add Dummy Stun (dummmy) to Ion_Dummy[1]
          • Unit - Order Ion_Dummy[1] to Orc Tauren Chieftain - War Stomp
          • Unit Group - Pick every unit in (Units within 600.00 of (Position of Ion_Target)) and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Picked unit) Not equal to Ion_Caster
                • Then - Actions
                  • Set Ion_Stun = (Picked unit)
                  • Unit - Cause Ion_Dummy[1] to damage Ion_Stun, dealing 1000.00 damage of attack type Hero and damage type Universal
                • Else - Actions
          • Set Ion_Target = No unit
          • Set Ion_Caster = No unit
          • Set Ion_Dummy[1] = No unit
          • Special Effect - Destroy Ion_Fx[1]
          • Trigger - Turn off (This trigger)
        • Else - Actions
 

Rheiko

Spell Reviewer
Level 25
Joined
Aug 27, 2013
Messages
4,121
Set Ion_Caster = (Casting unit)
-> change to triggering unit
Special Effect - Create a special effect at (Position of Ion_Target) using war3mapImported\IonCannon.mdx
it leaks change it to
->
  • Set PointVariable = (Position of Ion_Target)
  • Special Effect - Create a special effect at (Position of Ion_Target) using war3mapImported\IonCannon.mdx
  • Custom scripts: call RemoveLocation(udg_PointVariable)
don't use pause unit

Unit - Create 1 Dummy Ion for (Owner of Ion_Caster) at (Position of Ion_Target) facing Default building facing degrees
-> do the same as before

  • Unit Group - Pick every unit in (Units within 600.00 of PointVariable) and do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Picked unit) Not equal to Ion_Caster
        • Then - Actions
          • Set Ion_Stun = (Picked unit)
          • Unit - Cause Ion_Dummy[1] to damage Ion_Stun, dealing 1000.00 damage of attack type Hero and damage type Universal
->
  • Set GroupVariable = Pick every unit in (Units within 600.00 of PointVariable)
  • Unit Group - Pick every unit in GroupVariable and do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Picked unit) Not equal to Ion_Caster
        • Then - Actions
          • Set Ion_Stun = (Picked unit)
          • Unit - Cause Ion_Dummy[1] to damage Ion_Stun, dealing 1000.00 damage of attack type Hero and damage type Universal
  • Custom scripts: call DestroyGroup(udg_GroupVariable)
this is not MUI, it means.. it may bug when two units use it together
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
If you're not getting what Daffa means from the SetUnitProp, although it is quite simply maybe you don't have not spent enough time here learning. So, we'll use Rheiko's suggestion and use Channel.

I also changed the special effect to be "on" the unit, just in case you didn't know, if you attach the special effect to the unit, it will "follow it". Which is why I think you wanted to pause the unit. You don't need to though, to test use this test map and just turn off the "Add "Pause" ability and "Order unit to cast" and attack the unit you cast on and watch it follow the unit. I also changed the targets so you can cast on yourself to see how the pseudo pause works atm.

Questions or concerns just msg back.
 

Attachments

  • testmap.w3x
    29.8 KB · Views: 49
Status
Not open for further replies.
Top