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

Doors?

Status
Not open for further replies.
Level 3
Joined
May 31, 2005
Messages
26
I want too make a map wheres theres doors are already on the map and you have too capture a town too open and close them.
So basicly the gates will have the abilty "open" and "close"

Also i want them too make it so if there destroyed they have an ability too repair it, >.<

Or i could try and do one of the switch things, but then i dont know how too make it so you can repair if the gate gets destroyed, also there will be a bug where if the gate does get destroyed you flip the switch and the gates respawns.. This bug is in many maps with doors (LOTR, village builder ETC.)
Confusing? yes confued me....

Ive tried many methods too make gates like this, for example i made it so when you healed a unit the gates will have the option too open and close.. failed :(

I tried making triggers too open and close them, which i couldnt get too work, only made em be able too open but not closed :( And then i had a problem with the repair thing.. It also made the map look more messy cause you need the beacons too show where the triggers are too open and close them >.<

Ive seen the open and close abilitys in some maps before but i dunno how too do them, and i dont know how i would do the repair thing >.<

Can anyone help me?
 
Level 2
Joined
Sep 4, 2005
Messages
7
Key method

have you considered of using a key to open ? and a key to close? I havent exactly tinkered with the key method since i just made it up right now lol.
 
Level 4
Joined
Jul 11, 2005
Messages
59
If I understand correctly you want to make it so you can open and close doors by saying or using something and for it to also repair with a certain command. This was one of the first things I tried when I first started with triggers. You need to have a trigger for each function first of all. Now you can have theses trigger by typing in something, walking over a region or using an item. All them are pretty much the same atleast the actions. Anyways, I will show an example of open/close since they are almost identical.

Event:
Player - Chat Message(Type your message in, the player specified part can be fixed, you dont need to make an event for each of them)
Unit - Generic Unit Event - A unit Begins casting an ability(to use items you would use a spell to activate the trigger, this can be a dummy spell, so it has no effects) or
Unit - A Unit Enters Region(you'll need to create a region for this to work)

Conditions:(only for item)
Use an ability camparison to specify the spell on the item that is being used)

Actions:(easy part)
Destructible - Open/Close/Destroy Gate(pick which you like then find the gate you would like the trigger to effect)

Voila! That was easy. Now, there are things that can be changed, you can use variables to specify the user that is controlling the gates using another trigger. Close is exactly the same, pretty much you change the action. Now the repair is a little different, but not by much, like really, not by much. You can keep all of the above events and conditions(if you use the item/spell thing, you will need to make a new item) and if you do use it for the open/close i may need to explain some more on how to do that, since you will need to be turning off and on the close and open triggers.

Actions:
Destructible - Ressurect

You will have to make seperate triggers for each door, I am sure there is a way to specify it more so the use of one trigger is only needed, but i dont feel like explaining. Oh yes, if you want repair time to have a delay, then you can use the action "wait" before the ressurect so that, that action will not go into effect until the time is up.

I hope this helped. :wink:
 
Status
Not open for further replies.
Top