• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Invulnerable Building "Our allies town needs help!" issue.

Status
Not open for further replies.
Level 12
Joined
Jan 30, 2020
Messages
875
Hello there !

Still working on improving my map, I added a building that lets you improve you Hero Builder custom attributes, and recently added an upgrade to the building that increases the hero range (and sight range so that it works) by 50 for every level.

Now everything works fine, excepted that this building, although invulnerable, still sends a 'Our allies town needs help!" vocal warning with a blinking red spot on the minimap, every time an attacking creep gets near it.

This is annoying as for some reason, the ally towers that are not invulnerable don't even issue that warning !!!

Is there a specific entry in the object editor that triggers this warning ?

If I set the field "Is a building" to false, everything still works fine and the warning goes away, but then the upgrade looses its research progress bar, and as these researched upgrades are not instant, this is pretty annoying !

Anyone would have an idea before i have to start making a dedicated trigger in Lua to emulate the upgrade ?

Notes :
- the building's "Targeted as" field is empty.
- I don't want to make it neutral passive as I made a custom model just for that building, with Team Color

EDIT : SOLVED !

After doing some digging in config() and blizzard.j, I added these lines to my Initialization function :

Lua:
    for i=0,3 do
        for j=0,3 do
            if (i~=j) then
                SetPlayerAlliance(Player(i), Player(j), ALLIANCE_HELP_REQUEST,  false)
                SetPlayerAlliance(Player(i), Player(j), ALLIANCE_HELP_RESPONSE,  false)
            end
        end
    end

Not sure the RESPONSE part is needed, but the issue has gone completely :)
 
Last edited:
Status
Not open for further replies.
Top