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

Need Help with triggers!!

Status
Not open for further replies.
Level 5
Joined
Jun 18, 2004
Messages
136
ok my question is how would you make it so when you type in a certain phrase in the chat thing a hero at the altar would become available? i know it can be done because there are "password heros" in waugriffs footmen wars" please help!
 
Level 7
Joined
Mar 26, 2004
Messages
350
no, he means enabling the training of a certain hero

use the player - set trainig/constructing availability of unit function
 
Level 1
Joined
Jul 10, 2004
Messages
6
Too add onto RaZoR :

Event :
Player - Player 1(Red) types a chat message containing Make HERO Available as An exact match

Condition :
//Only if you need to make conditions

Action :
Player - Make HERO Available for training/construction by Player 1(Red)[/u]
 
Level 5
Joined
Jun 18, 2004
Messages
136
yeah but how do you make the hero unavailable if its a custom hero? u can go to techtree for normal heros but not custom ones. so if anyone has an answer to this please respond.
 
Level 8
Joined
Apr 3, 2004
Messages
507
If you go into your Gameplay Constants, almost to the end, and find the field that alters which heroes are considered heroes by the game and add yours, and then run a trigger to limit the training of your custom hero to 1 per player, you should have perfectly re-created the training availability behaviors of normal heroes. I'm not sure why that's important, though, if you're doing a text-message-event based trigger to give them that.
 
Level 5
Joined
Jun 18, 2004
Messages
136
actually i found my own better way i think. I made the hero reqire an upgrade called "____ password" where blank is the name of the hero. The upgrade is a dummy upgrade and does nothing. Then i used triggers to make it so when the password was typed in the upgrade was set to level one. therefore enableling the training of the hero. Thx alot for your help though. i put all your help and a little of my own knowledge together to make my trigger. thx again.
 
Status
Not open for further replies.
Top