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.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top