• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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