How to reduce a unit's sight range temporarily

Hegemuffin

New Member
Reaction score
12
Well? The Object Editor does not allow "Item Sight Range Bonus" to take a negative value, so temporarily giving a unit this ability will not work. Short of replacing the unit with a nearsighted lookalike (which would require a duplicate of every targetable unit featured in the map), are there any other alternatives? I tried various visibility modifiers, but I'm pretty sure that unit sight overrides anything else. The idea of a scope fade filter was tempting, but ultimately unrealistic because the map doesn't use a fixed camera, nor can I ensure that each player only controls one unit (due to summons and stuff). Any ideas or professional opinions would be appreciated.

edit: Oh, and I did just think of one alternative; because the sight reduction is triggering by an ability and because it reduces sight to a fixed value, I could just give every unit on the map the reduced value as a default sight range, then use a periodic event to create visibility modifiers on every unit on the map according to what its sight range should be at day and night, respectively. While this solution is slightly better than using a flamethrower to rid one's walls of termites, I'm ideally searching for a more realistic method.

edit2: Okay, I'm just doing this with a somewhat less messy combination of the two ideas, where every unit has a sight range of 300/300, day/night respectively. When a unit is summoned, created, or whatever, it is given a Sight Range Bonus +1100 ability if it is day or +500 if it is night. Whenever it changes from day to night or night to day, all units on the map have the one ability removed and are given the other. I say slightly less messy because it only involves a trigger at dusk, dawn, when the ability is cast, or when a unit comes into play. So I suppose I answered my own question. That said, I would still like to know if there is an easier way, both for curiosity's sake and for the sake of the community (and because in one, short, swift sentence, I was able to portray myself as a theorist, not a pragmatist, and accordingly reap all the benefits of the intellectual elitism that comes with it :p).
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Starting all units with an upgraded sight and removing it when needed doesn't sound that bad.


As a general note, if the editor resists, press and hold shift, then double-click the field of interest.
Sometimes though, there's a reason the editor resists. Putting disturbing values where they really shouldn't be may crash the game...
 
N

nidnad

Guest
click allow negative values in your preferences and it will let you.
 

Hegemuffin

New Member
Reaction score
12
AceHart, I am ebullient! Thank you so much for the "shift" tip; it fixed the problem straightaway.

Unfortunately, I had just finished polishing things up with my other idea (which did indeed work without too much hassle), but I think I'm going to do things with the negative value now, as I had originally intended. That way it'll bug me less later when I come back to it and look at how complicated everything was.

//=======================================================//

On a somewhat related note, I do have another question that's sprung up. I guess this will require me to go into somewhat more detail on the spell at hand. Basically, I have an ability called "Dark Arrows," an autocast arrow effect based on Black Arrow that adds x bonus damage to attacks and reduces the target's sight radius to y for z duration. The conflict, if you hadn't already foreseen it, is that Black Arrow does not produce a buff on heroes (and the buff is essential to how I'm triggering the spell; well, it certainly makes things a lot more convenient and produces the best cosmetic effects). Additionally, I already experimented with the allowable targets field, and as far as I am aware, the problem is unrelated.

So anyway, the question is, which arrow effect, if any, would provide the best base for my "Dark Arrows" spell? From what I know, Searing Arrows cannot produce a buff, Cold/Frost Arrows turns the target blue, and Incinerate deals no bonus damage. I did sort of give up on the problem for the night, and I suppose I should give Cold/Frost Arrows a shot in the morning since one of my triggers removes the original buff within .05 seconds and I'm pretty sure the human eye can only register 14 frames per second (so theoretically, you wouldn't consciously notice your hero turning blue). I'm kind of hoping I won't have to resort to mind games, though. :p

Ideas are welcome.
 

Jazradel

Helping people do more by doing less.
Reaction score
102
Poison Arrows maybe?

A human eye can see more than 60 fps but each image will last for roughly 1/25th of a second which is why you only need about 24 fps to make movies/tv appear smoothly.
 

Hegemuffin

New Member
Reaction score
12
Whoa, whaddaya know, there are Poison Arrows :p. I always thought poison was only a passive orb. Thanks for pointing that out (and for the explanation of the human eye; it's nice someone set my facts straight).
 
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