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

[General] How to make Chat Commands to disable to upgrade building?

Status
Not open for further replies.
Level 3
Joined
Feb 3, 2015
Messages
30
Hello guys.
Im trying to make a chat command where if you type: -nocannontower. It removes the cannon tower from the scout tower upgrades used. How can i do that using triggers? i try to trigger it but it doesn't work. i think my trigger is wrong..
 
Level 21
Joined
Nov 4, 2013
Messages
2,016
Here is the trigger you should do

  • Events
    • Player - Player 1 (Red) types a chat message containing -nocannontower as A substring
  • Conditions
  • Actions
    • Player - Make Cannon Tower Unavailable for training/construction by Player 1 (Red)
For the event:
Player - Chat message ---> Change Text into -nocannontower ---> Change An exact match into A substring

For the action:
Player - Set Training/Construction Availability Of Unit ---> Change Footman into Cannon Tower ---> Change Available into Unavailable

Now you're done! :thumbs_up:
 
Level 3
Joined
Feb 3, 2015
Messages
30
Here is the trigger you should do

  • Events
    • Player - Player 1 (Red) types a chat message containing -nocannontower as A substring
  • Conditions
  • Actions
    • Player - Make Cannon Tower Unavailable for training/construction by Player 1 (Red)
For the event:
Player - Chat message ---> Change Text into -nocannontower ---> Change An exact match into A substring

For the action:
Player - Set Training/Construction Availability Of Unit ---> Change Footman into Cannon Tower ---> Change Available into Unavailable

Now you're done! :thumbs_up:

Thanks a lot Pal!
 
Status
Not open for further replies.
Top