HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A Travern

01-13-2007, 04:19 PM#1
darkened-angel
I want to make a Travern all players can use without having a unit there. Also once you pick a hero you can't pick anymore. Also if your hero dies it will go to the travern so only you yourself can revive the hero. Is this possible if yes how. Thank before hand for any help.
01-13-2007, 04:43 PM#2
Joker
First of a its "Tavern" not "Travern".

Back on topic, just create a Zone Indicator there (under Neutral Passive units i think) and set the "Stats - Hide Minimap Display" to true. Then just remove the unit when they select one.
01-13-2007, 05:26 PM#3
darkened-angel
Ok i ma having some issues Remove heros from the tavern.

My Trigger Reads
Trigger:
Collapse Events
Unit - A unit enters (Playable map area)
Conditions
((Unit-type of (Entering unit)) is A Hero) Equal to True
Collapse Actions
Neutral Building - Remove (Unit-type of (Entering unit)) from Hero Tavern 0004 <gen>
Unit - Move (Entering unit) instantly to (Player 1 (Red) start location)
Set PickedUnits = (Units of type (Unit-type of (Entering unit)))
Unit - Remove Zone Indicator (Custom Campaign) 0001 <gen> from the game

It does everything but remove the unit from the Tavern. Any help would be great
01-13-2007, 07:10 PM#4
darkwulfv
If im not mistaken, you can't remove things from shops/taverns through triggers unless they were added by triggers. So basically, just add all of the heros at the beginning of the game through triggers.
01-13-2007, 07:23 PM#5
darkened-angel
I will try not right now thank for the fast respond.
01-13-2007, 07:31 PM#6
darkened-angel
Sweet man that worked great. Hmm this is still not working the way i need it. basically if i pick a unit i want to make it i see nothing in the tavern but other player who have not picked a hero can still see heros. So if i have a allied unit in the area it shows the tarven heros to me still. Is there a way to remove that so the tavern does not show one player any heros.
01-13-2007, 07:39 PM#7
Pyrogasm
It's "Heroes", by-the-way.

Try this: instead of removing the hero(es) from the tavern, make an invisible dummy unit for each player next to the tavern, which is then assigned to a variable and put in a unit group.

When a player picks a hero, remove the dummy unit assigned to his variable. When the unit group contains no units, remove the tavern and replace it with a dummy tavern that sells other stuff if desired.
01-13-2007, 07:43 PM#8
darkwulfv
Also, use the "edit" button next time, rather than making a second post. Thats something the staff here gets kinda angry over if you do it alot. So just remember.
Unless your bumping a thread...
01-13-2007, 07:57 PM#9
darkened-angel
Sorry i will use the edit button next time. Hmm i will write out what it should do.

there are 2 players. Player 1 picks a hero and that hero is remove no issues there. Player did not pick a hero yet. Player 2 can click on Tavern and see all the hero that are left. If player 1 clicks on the Tavern he see's nothing. I have seen this done in some maps.
01-13-2007, 08:54 PM#10
Captain Griffen
Hero limit, probably, or disabled the unit for the player. Something along those lines, I'd guess.
01-13-2007, 10:08 PM#11
darkened-angel
Limit is not the issue. I want so more or less they see nothing in that tavern while other can see it. So its clickable and they place a unit infront of it. But it shows them nothing. While showing other hero if they have not picked a hero yet.
01-14-2007, 03:27 AM#12
Joker
Captain Griff is right...
Trigger:
Actions
Player - Limit training of Heroes to -1 for (Owner of (Sold unit))
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
If you do that, then the player that pick that picked the hero wont be able to train or buy anymore heros, and the picked hero wont be available for other players. (Did it in GUI just in case you dont know jass)
01-14-2007, 06:57 AM#13
darkened-angel
Woot Woot thank you so much that worked great. And i am sorry about the post up top. When he said limit i thought he meant stock limit. Sorry you rock Captian Griff. Thank for all your help guys.
01-15-2007, 04:00 AM#14
Joker
Fuck, your gonna want to replace that -1 with a 0.
01-16-2007, 05:45 AM#15
darkened-angel
Yes i read the it on the gui trigger part and put in 0. hehehehehehe thank for the heads up thou. I had another question as well. Is there a way to change a map size. I code half the map and noticed it only half the size i need. If there is a way to change can someone please tell me. Its on 96 X 96 and i need to 256 X 256. If this can't be done just post that and i will just remake the map. Thank everyone for all you help.