add locust through triggers?

LightChaosma

New Member
Reaction score
60
a whole lot of questions in the last 2 hours:p, anyway, is it possible to add locust to a unit through triggers?

earlier i searched for locust in the object editor, but couldnt find it... neither does it appear in the list of the trigger editor...
 

TooSlowFcker

New Member
Reaction score
10
You mean the crpyt lor'ds ultimate with all the bug's flying around?
well try searching that guy, then look at his abilities
you could be searching for the wrong title
 

black.sheep

Active Member
Reaction score
24
I think you have to add it via custom script, im not sure what the custom script is, probaly somthing like.
call AddAblityuLoc(udg_GetTriggerUnit) Or somthing like that.
Damn beaten to it, and wrong.
 

LightChaosma

New Member
Reaction score
60
ok, i have no jass knowledge, but this should be okay:D

lemme see, correct this please, i want the event repsonse - summoned unit to get this ability:

JASS:
call UnitAddAbility(getSummonedUnit,'Aloc')


no need for the custom script speech and stuff, i DO know that:D

EDIT:

wohoo, my first edited JASS line that works :p
 

LightChaosma

New Member
Reaction score
60
ok, next question:

i want to add it, and remove it, adding no problem, removing, no clue.

2nd problem: i chaned the reciever a bit...

the recievier would become:

circlecastertype[tempint[1]]

where circlecastertype is a unit array

some JASSer help plz:)
 

Flare

Stops copies me!
Reaction score
662
i want to add it, and remove it, adding no problem, removing, no clue.
Only way to (partially) remove Locust and it's effects
JASS:
call ShowUnit (whichUnit, false)
call UnitRemoveAbility ('Aloc', whichUnit)
call ShowUnit (whichUnit, true)

i.e.
Code:
Hide <unit>
Custom script: call UnitRemoveAbility (...)
Unhide <unit>

It only works partially though, I don't think you can select the unit by clicking them (not sure about drag-selection)

circlecastertype[tempint[1]]
JASS:
call UnitAddAbility (&#039;Aloc&#039;, udg_circlecastertype[udg_tempint[1]])
 

LightChaosma

New Member
Reaction score
60
k, the logic for remove would be this right?

JASS:
call UnitRemoveAbility (&#039;Aloc&#039;, udg_circlecastertype[udg_tempint[1]])


hmmi got as far as noticing removal didnt work... lest see, another way to make a unit temporary unselectable... is there any?

if possible i dont wanna use a separate trigger to do this, the spell i'm working on already has 10 triggers to keep it functional...
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
there is an other possibility as hide/unhide. i am using dummy units with locust and chaos to turn the dummy in the actual unit. same effect but i like it more.
 

LightChaosma

New Member
Reaction score
60
this is not about a dummy, this is about the main hero... if it is controlable during a few seconds the user can abort the spell, and gain an inmense movement speed boost... unselectable would do the trick here.
 

woot

New Member
Reaction score
8
this is not about a dummy, this is about the main hero... if it is controlable during a few seconds the user can abort the spell, and gain an inmense movement speed boost... unselectable would do the trick here.

don't use locust, it wont work.. removing it causes issues.. once its added you can't really remove it


instead create a dummy unit (that has locust) that looks like your hero.. hide your hero from the player.. do the thing you want to do with the dummy unit.. and when the effect is over move the hero to where the dummy unit is, remove the dummy unit, and unhide your hero (and select your hero)
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
well, it doesnt matter for which unit. you dont even need any trigger, make a dummy unit with locust and the chaos ability. you can even preplace it and it will become the hero, i got a nice test map about it:

Check it out.
 

LightChaosma

New Member
Reaction score
60
there comes a part in my spell where the hero gains a speed of 522, and this speed is reduced to normal agian when he reaches his target, i want it to be uncontrolable in any way in this period...

if the unit is ordered to stop during that period, he wont get his speed back to normal, wich is why it will be spell imune in that period for stun and stuff.

dont ask me to post triggers, you'll be busy for an hour trying to figure out what happens, trust me

i already saw that map in one of my other threads ;)
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
ahm. you cannot make the "unselectable" effect of locust timed. if you add and remove locust the effect will stay forever.
 

LightChaosma

New Member
Reaction score
60
well, i just need a way to prevent the player from using that unit for like 3 seconds or less, depeniding on distance between caster and target... my last hope is giving the unit to neutral passive for a brief moment...
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
how about pausing the player? could look a little bit bad but it will work.

if you change the owner remember this will make the unit lose all its current orders.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top