• 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.

[Trigger] Is it possible to change the acquisition range of a tower?

Status
Not open for further replies.
Level 1
Joined
Jun 25, 2007
Messages
2
I'm working on a map, and I have game modes where towers that are constructed will have their acquisition range halved or set to the minimum. However I can't get either to work.

Code:
Manual Aim
    Events
        Player - Player 1 (Red) types a chat message containing ma as A substring
    Conditions
        (Substring((Entered chat string), 1, 1)) Equal to -
    Actions
        Trigger - Turn on Turn Acquisition Off <gen>
        Quest - Display to (All players) the Quest Update message: |cFFFF0000MANUAL AI...
        Trigger - Turn off (This trigger)
Code:
Turn Acquisition Off
    Events
        Unit - A unit Finishes construction
    Conditions
    Actions
        Unit - Set (Constructed structure) acquisition range to 70.00
Code:
Limited Aim
    Events
        Player - Player 1 (Red) types a chat message containing la as A substring
    Conditions
        (Substring((Entered chat string), 1, 1)) Equal to -
    Actions
        Trigger - Turn on Turn Acquisition Down <gen>
        Quest - Display to (All players) the Quest Update message: |cFFFF0000LIMITED A...
        Trigger - Turn off (This trigger)
Code:
Turn Acquisition Down
    Events
        Unit - A unit Finishes construction
    Conditions
    Actions
        Unit - Set (Constructed structure) acquisition range to ((Current acquisition range of (Constructed structure)) / 2.00)

I can't see why this isn't working.

(I've checked my triggers with quest messages to make sure they all fire, and they do)
 
Status
Not open for further replies.
Top