Warcraft III resources & community, 2003–2006 · archived

Need Help with triggers!!

9 posts
#1

Need Help with triggers!!

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!
#2
@ oz02/Darky28

Sorry for the shadow topic in the news-forum, my mistake
#3
So you mean hero/loading features?
Don't know how to do them but I saw someone wrote a script but it didn't out well... :roll:
#4
no, he means enabling the training of a certain hero

use the player - set trainig/constructing availability of unit function
#5
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]
#6
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.
#7
By "Value" , there's a list for the type the hero is of, correct? And on the right site of this, there's a list "melee, campaign, custom"

Select "custom"

(and of course the race the custom hero is of)
#8
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.
#9
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.