Acquision can't be decreased throught triggers

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
i tried to decrease the acquision range through the trigger action:
Set unit acquision range
and i set it to 0 and when i checked it didn't worked (i checked throught displaying a messege containing the current acquision after it)

and i tried also in JASS actually it started as JASS prob but i found out it's not related to JASS and even GUI is not working (my JASS problem - Here)

+Rep for any1 who helps me find the solution :cool:
 

Rinpun

Ex TH Member
Reaction score
105
Pardon, but what happens when you lower the acquisition range? Does the archer still automatically attack nearby enemies?
 

Steel

Software Engineer
Reaction score
109
You can't change it in game, I've tried it before myself. It just doesn't function properly, so I have no idea why its there.

Ive done this for increasing range, but not decreasing, you might want to give it a try. Use the upgrade from the rifle man that increases ranged, but make it a negative value. Or I guess start it out high and reduce the levels. Hope that helps
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
Pardon, but what happens when you lower the acquisition range? Does the archer still automatically attack nearby enemies?
well it happens fast u know with pausing and everything but i see that they are about to attack and then get paused and i want them to walk stright without any change so i tried to lower acquision.
Ive done this for increasing range, but not decreasing, you might want to give it a try. Use the upgrade from the rifle man that increases ranged, but make it a negative value. Or I guess start it out high and reduce the levels. Hope that helps
mabye i should set the deafult to 0 and increase it instead after i finish?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Hm. How did you do that?

I tried this, on some test map, with the following trigger:
Code:
Untitled Trigger 001
    Events
        Time - Every 5.00 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Current acquisition range of Blood Mage 0001 <gen>) Greater than or equal to 100.00
            Then - Actions
                Unit - Set Blood Mage 0001 <gen> acquisition range to ((Current acquisition range of Blood Mage 0001 <gen>) - 90.00)
                Game - Display to (All players) the text: (Lowered to:  + (String((Current acquisition range of Blood Mage 0001 <gen>))))
            Else - Actions
                Game - Display to (All players) the text: Done.
                Trigger - Turn off (This trigger)

And, well, it did show, in order: 510, 420, ... in steps of 90, as expected.
Once it stopped, I moved him, really slowly, towards some Creep, and, indeed, he had to be nearly at touching distance before he started to shoot at it.
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
well when i tried setting 0 and show it, it gave me the deafult one but mabye if i would try to do it like u and do something like:
Code:
Unit - Set Blood Mage 0001 <gen> acquisition range to ((Current acquisition range of Blood Mage 0001 <gen>) - 1000.00)
would it work?

Edit: i tried 1 it didn't work either.....
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
well after checking it i found out that i can't go below 51 acquision and if i try to put in a number less then 50 it won't affect it at all and leave it the same as it was anyway thx for any1 here trying to help me +Rep :D

btw AceHart u sure u reached 0 in the end?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
No. Stopped at 60. Didn't go, even when forced to, below 50...
Rather weird.

Well, even a Peasant already has a range of 90. And that's definitely not any "ranged".


What you need this for anyway?
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
so 51 is the minimum i guess

>What you need this for anyway?

just wanna make sure my monsters won't try to attack and stand still
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
i do pause them but i first order them to walk to certain point and i wanna make sure they won't change their rotation in order to attack be4 i manage to stop them.
 
L

lordpredator

Guest
the adqusition range and range have to be greater than the collition size of the unit... thats why the units have a minimum of 90 in range, even when they are melee, if you give the unit a adq range of 51 it can´t attack any unit even if the unit is very close, because 51 in range is greater than his collition size.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top