Spell Help [invisibility while close to another ally]

b_ray210

Active Member
Reaction score
1
Hey guys, I was wondering if someone could help me make a spell that when my hero comes close to an ally unit (within 400/500/600/700 range) it gets the ability "permant invisibility". I can make all the durations and everything else how i want it but can someone help me with the trigger please?
 

FireBladesX

Eating my wings!
Reaction score
123
You could run a slow periodic trigger checking if a unit has a specific buff (an aura). Add the units to a group and add the invisibility if they have the buff and are not in the group, and if they are in the group and don't have the buff, remove them from the group and remove the ability. Not MUI, but MPI if you use an integer array for the player numbers.

Ask if you don't understand, please.
 

b_ray210

Active Member
Reaction score
1
If i understood corecctly it sounded like you mean it makes many units invisible. In my game there will only be one hero that has this spell and i just want to make him invisible while he is close to any ally. Im somewhat new so it would help alot if you set it up like an actual trigger.
 

Weegee

Go Weegee!
Reaction score
102
What u need to do is when in range it gives ur hero permenent invisibility and if this is an ult or something what u can do is remove that ability then add permanent invisibility with the same icon and name and when u are out of range u do vice verse.
 

b_ray210

Active Member
Reaction score
1
yea i understand that but how would i make the first part about coming close to another ally. That's the part that i need more in detail explanation. :(
 

FireBladesX

Eating my wings!
Reaction score
123
I see, I misread. You could do the same, but give all allied units the aura instead of the hero. I was thinking of the arbiter in Starcraft, you see. You can make the aura invisible using a spellbook*, and make it hit only heroes.
Every 1 seconds of game time

YourHero has specific buff Invisibility aura equal to true

If, then, else.
If YourHero has specific buff Invisibility aura equal to true
Then:
If, then, else.
---If Invis equal to False
-----Unit - add Permanent Invisibility to YourHero
-----Set Invis equal to True
Else:
Unit - remove Permanent Invisibility from YourHero
Set Invis equal to False

Invis is a boolean variable, and YourHero is a unit variable.
You probably know this, but permanent invisibility has no icon.
BTW, <3 @ Marcel :)


*Hide the spellbook through Player - disallow casting of Ability for Player, or something like that.
 

Marcel

New Member
Reaction score
12
Unit comes 400.00 of <That fool unit>
Add permament Invisiblity to triggering unit

EDIT: Posts: 100 ^^ and this trigger was wrong FireBladesX Got right trigger
 

b_ray210

Active Member
Reaction score
1
Yea I understand what you mean firebladesX but wouldnt there just be an easier way of doing it like everytime a unit comes close add +1 to a variable and everytime a unit gets far away add-1 to a variable and if the variable equal to 0 then take away the permanent invisibility?
i would do what you said but there will be alot of people and i dont fully understand how, it just seems like it could possible be buggy.
 

FireBladesX

Eating my wings!
Reaction score
123
Hm, go for it. I dunno what event to use for a unit coming close, however.

But, adding on to what I said earlier:

E: Unit enters Playable Map Area
C: Entering Unit is an ally of owner of YourHero equal to true
A: Unit - add Spellbook to Triggering Unit

That way, any unit he approaches bestows the aura.



To level it up:
Unit Levels Up an ability
Ability equal to SneakCloak (whatever your ability is called)
Player - pick every player in All Players and do Player - set current research level of InvisAura to (current research level of InvisAura + 1)

That upgrade would have an ability level bonus for all units, and level up the radius of the dummy aura. The only problem is that you have to modify for Upgrades Used: you need to add the InvisAura upgrade.
 

b_ray210

Active Member
Reaction score
1
Ok yea i guess i will try what you are saying.
My question: For the upgrade part, Couldn't i just do something like:
Unit Group - Pick every unit in All Players and do Unit - Set level of ability for picked unit to level of blend for leveling unit.
 

FireBladesX

Eating my wings!
Reaction score
123
Well, that wouldn't hit new units that came in to the map, unless you made it periodic. Which would work perfectly fine.

And not all players, Units in Playable Map Area. Sorry for correcting, :(
 

b_ray210

Active Member
Reaction score
1
Yea ill try it like this because i dont really understand upgrades. So it would be:

Every 1 second of gameplay

and now im lost....
maybe i should just try something different i think this spell is above my level...
 

b_ray210

Active Member
Reaction score
1
For G should i make it
Set G: units in playable map area matching conditions: ally, not structure, alive

And could you explain the spellbook thing really briefly because i think thats the most confusing part to me.
by the way definately + rep
 

FireBladesX

Eating my wings!
Reaction score
123
Yes, those would be ideal conditions. Tyvm, btw.

There is an ability based off of an item ability called Spellbook. It contains the spells Dispel Magic, Entangling Roots, and Roar. Remove those, and add your ability. Change it to a unit ability as well. Then go to the trigger editor, and on map initiation, do Player – pick every player in All Players and do:
Player – restrict casting of Spellbook for Picked Player, or something like that.
 

b_ray210

Active Member
Reaction score
1
Thanks for all your help today, i can't test it tonight but ill definately repost tomorrow because i will definately have more questions once i actually start trying to make it.
 

FireBladesX

Eating my wings!
Reaction score
123
Kay.
Been multitasking this, writing a poem for spanish at same time :p
I'll be home at about 7 (this hour, minus 3:30, for whatever time zone you're in)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top