Gate Ability

PooBucket

New Member
Reaction score
12
I've been trying to make this trigger work but it won't work. First time it worked alright but with many malfunctions, now it doesn't even work at all! :(Please help me with the trigger. (Also, how do you put the trigger in code format? I'm relatively new.) Here's the trigger.

Gate
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Gate
Actions
Unit Group - Pick every unit in (Units within 500.00 of (Position of (Casting unit)) matching ((((Triggering unit) is A structure) Equal to False) and ((((Triggering unit) is alive) Equal to True) and (((Triggering unit) belongs to an ally of (Owner of (Casting unit))) Equal to True)))) and do (Unit - Move (Picked unit) instantly to (Position of (Target unit of ability being cast)))
 

Atreyu

One Last Breath.
Reaction score
49
Your trigger should work if the...

Code:
[B](((Triggering unit)[/B] belongs to an ally of (Owner of (Casting unit))) Equal to True))))

Would be a matching unit. The only problem is leaks. You should use variables more often. Here is the complete trigger:

Code:
Test
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Gate
    Actions
        Set Caster = (Triggering unit)
        Set Caster_Pos = (Position of Caster)
        Set Target = (Target unit of ability being cast)
        Set Target_Pos = (Position of Target)
        Set Temp_Group = (Units within 500.00 of Caster_Pos matching (((Matching unit) belongs to an ally of (Owner of Caster)) Equal to True))
        Unit Group - Pick every unit in Temp_Group and do (Actions)
            Loop - Actions
                Set Temp_Picked = (Picked unit)
                Unit - Move Temp_Picked instantly to (Position of Target)
                Custom script:   call DestroyGroup(udg_Temp_Group)
                Custom script:   call RemoveLocation(udg_Caster_Pos)
                Custom script:   call RemoveLocation(udg_Target_Pos)

Refer to AceHart first. :D
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> Here is the complete trigger

It should not destroy variables that are still in use...

"Caster" and "Target" are not needed.
However, "Position of Target" leaks a point.
 

PooBucket

New Member
Reaction score
12
I see. Thanks very much. I'm very horrible with variables so I don't use them often. That's why my map triggers leak a lot. xD.
 

PooBucket

New Member
Reaction score
12
Sorry, but two things. Where do I find "loop"? Sorry, I know it's a noob question for a person who does triggers.
 

PooBucket

New Member
Reaction score
12
(Sorry to reply late) It doesn't work properly, buildings move as well, as you saw my leaking code, I don't want structures to move, and the casting unit is a structure not a unit so I don't want that to move either. Units within range of the casting building do move but once at a time. :)
 

cleeezzz

The Undead Ranger.
Reaction score
268
it would be nice if you could post your current trigger so we can look at it :D

and use code tags xd
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> It doesn't work

Damn!
Then again, that explain neither what you did, what you tried, what happened or what should have happened instead.

> I don't want structures to move

Then don't pick them?


Either way, problems with triggers are best helped with by posting said triggers.
 

cleeezzz

The Undead Ranger.
Reaction score
268
same as atreyu's or yours
if its atreyu's, just add a condition in Set Temp_Group, if you look at the trigger you posted originally, you have a condition that checks if the unit is a structure or not, add that condition back into atreyu's code
 

wellwish3r

wishes wells.
Reaction score
52
I'm just wondering, isnt this just a Mass Teleport spell? If so why dont you just use the mass teleport spell, in that case you wouldn't have to trigger anything...
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
no it isnt
mass teleport targets a building not the ground

but there is a premade ability called dark summoning that does the same you want to trigger
 

wellwish3r

wishes wells.
Reaction score
52
no it isnt
mass teleport targets a building not the ground

but there is a premade ability called dark summoning that does the same you want to trigger

Dark Summoning moves the units that are in the area Dark Summoning is cast upon to the caster, not the selected point...

You could use mass teleport with dummies, create a dummy at the target, and at the casting unit, order te casting unit dumym to cast mass teleport on the dummy at the location...
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
you could create a dummy at target point and order it to cast dark summoning on the caster point
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top