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

Status
Not open for further replies.
Level 5
Joined
Aug 11, 2007
Messages
153
Hey i need help to my map. Ok now i will ask a question. Have you play dota? If yes then when you pick a hero the rest heros in the tavern disappear for the player that picks a hero please can you help me with that i need it to in my map and can you show it in triggers.
Second question: When you pick a Hero on dota then it comes up exempel: John1112 has picked Dragon Knight. Like that can you help me with that too and the name can be the colors player like John1112 are blue then it comes up with he's name blue. Help Please
 
Level 13
Joined
Sep 14, 2008
Messages
1,408
1. Dunno (You could make it like normal wc3 so you can get only 1 hero till you upgrade your base) (create for example an upgrade called "Only 1 Hero" and set heros second tech tree need to that upgrade...)

2. To get colored text you can use this Link It's a great tool to create colored text for wc3.
 
Level 11
Joined
Feb 22, 2006
Messages
752
For number 1:

Make a trigger that runs on map init, and limit training of heroes for all players to 1. Then, go to gameplay constants (under the advanced tab) and scroll to near the bottom. Edit the Dependency Equivalents - Heroes (or something like that) field to include all the custom units you want to count as heroes.
 
Level 15
Joined
Aug 14, 2007
Messages
936
anznricepuff is totally right,

Set Hero Limit to One, so that when the player pick a hero, te tarvern heroes automatically go black

Theres more, if there is ever a -repick, set hero limit to +1 which makes 2, so that the heroes are back to avaliablility for that particular player

Theres more, If you want the hero picked to disappear in other player's view of tarvern. Simply follow, Trigger when unit is sold, condition Boolean: Unit is a hero is true, Action: Pick all players and do action: Make Unit unavaliable for training/buying for Picked Player
 
Read my username please.
Oh yah, and here's two better triggers
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set ColoredText[1] = |CFFFF0000
      • Set ColoredText[2] = |CFF0000FF
      • Set ColoredText[3] = |CFF18E7BD
      • Set ColoredText[4] = |CFF520084
      • Set ColoredText[5] = |CFFFFFF00
      • Set ColoredText[6] = |CFFFF8A08
      • Set ColoredText[7] = |CFF18BE00
      • Set ColoredText[8] = |CFFE759AD
      • Set ColoredText[9] = |CFF949694
      • Set ColoredText[10] = |CFF7BBEF7
      • Set ColoredText[11] = |CFF086142
      • Set ColoredText[12] = |CFF4A2800
  • Hero Pick
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • ((Sold unit) is A Hero) Equal to True
    • Actions
      • Game - Display to (All players) the text: ((ColoredText[(Player number of (Owner of (Buying unit)))] + (Name of (Owner of (Buying unit)))) + (|r just bought + (Name of (Sold unit))))
This will make it so that when a player buys a hero from the lodge, their name will apear and the correct color will show along side it.
 
Status
Not open for further replies.
Top