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

[Solved] Portal

Status
Not open for further replies.
Level 10
Joined
Jun 20, 2017
Messages
329
Any ideas + Rep

What's wrong with this portal?! All the special effects are shown.
Why not only show special effects for that portal?
  • Portal Units AFK
    • Events
      • Unit - A unit enters 015 Portal Units AFK <gen>
      • Unit - A unit enters 016 Portal Units AFK <gen>
      • Unit - A unit enters 019 Portal Units AFK <gen>
      • Unit - A unit enters 020 Portal Units AFK <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to (==) False
      • ((Owner of (Entering unit)) is in PlayerGroup_Vampires) Equal to (==) False
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Unit - Move (Entering unit) instantly to (Center of 013 AFK Pool <gen>)
          • Special Effect - Create a special effect at (Center of 015 Portal Units AFK <gen>) using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
          • Special Effect - Destroy (Last created special effect)
        • Else - Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Unit - Move (Entering unit) instantly to (Center of 013 AFK Pool <gen>)
          • Special Effect - Create a special effect at (Center of 016 Portal Units AFK <gen>) using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
          • Special Effect - Destroy (Last created special effect)
        • Else - Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Unit - Move (Entering unit) instantly to (Center of 013 AFK Pool <gen>)
          • Special Effect - Create a special effect at (Center of 019 Portal Units AFK <gen>) using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
          • Special Effect - Destroy (Last created special effect)
        • Else - Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Unit - Move (Entering unit) instantly to (Center of 013 AFK Pool <gen>)
          • Special Effect - Create a special effect at (Center of 020 Portal Units AFK <gen>) using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
          • Special Effect - Destroy (Last created special effect)
        • Else - Actions
 
Last edited:
The conditions for your if blocks.
  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • -------- THESE ONES --------
    • Then - Actions
      • Unit - Move (Entering unit) instantly to (Center of 013 AFK Pool <gen>)
      • Special Effect - Create a special effect at (Center of 015 Portal Units AFK <gen>) using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
      • Special Effect - Destroy (Last created special effect)
    • Else - Actions
Without conditions, all the actions of the "Then" block will run by default.

Unfortunately, there is no way to get the triggering region so you're going to have to either create one trigger per region or create the effect at the position of the triggering unit instead.
  • Portal Units AFK
    • Events
      • Unit - A unit enters 015 Portal Units AFK <gen>
      • Unit - A unit enters 016 Portal Units AFK <gen>
      • Unit - A unit enters 019 Portal Units AFK <gen>
      • Unit - A unit enters 020 Portal Units AFK <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to False
      • ((Owner of (Triggering unit)) is in PlayerGroup_Vampires) Equal to False
    • Actions
      • Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Move (Triggering unit) instantly to (Center of 013 AFK Pool <gen>)
 
Status
Not open for further replies.
Top