Staredit Network

Staredit Network -> UMS Assistance -> [SOLVED] Cant have more than one door?
Report, edit, etc...Posted by Zorgges on 2007-01-20 at 19:13:59
Please help. When i place two doors in xtra editor or starforge and put in a trigger to make them open, how come only one of the doors open?
Report, edit, etc...Posted by SomeIdiotNerd on 2007-01-20 at 20:17:53
i've had that problem too, but i figured it out awhile ago

Use these triggers:

Trigger
Description:
Disabling door
Players:
¤ P1
Conditions:
¤ P1 brings 1 civ to "Doors"
Actions:
¤ Disable doodad state for 1 Door at "Doors" for P1
¤ Give 1 Door owned by P1 to P8
¤ Disable Doodad state for 1 door at "Doors" for P1
¤ Wait 0 milliseconds
¤ Give 1 door owned by P1 to P8
¤ Preserve Trigger


And to close the doors, do it in reverse, for example:

Trigger
Description:
Enabling door
Players:
¤ P1
Conditions:
¤ P1 brings 0 civ to "Doors"
Actions:
¤ Enable doodad state for 1 Door at "Doors" for P8
¤ Give 1 Door owned by P8 to P1
¤ Enable Doodad state for 1 door at "Doors" for P8
¤ wait 0 milliseconds
¤ Give 1 door owned by P8 to P1
¤ Preserve Trigger


i believe that should work, if not, i'm delusional
Report, edit, etc...Posted by CheatEnabled on 2007-01-21 at 12:30:14
This should go to UMS assistance. But I think SomeIdiotNerd got it right.
Report, edit, etc...Posted by Laser_Dude on 2007-01-21 at 14:09:41
The problem is that the trigger always opens the same door over and over. What you need is a location for each door.
Report, edit, etc...Posted by SomeIdiotNerd on 2007-01-21 at 15:14:23
i didn't quite understand what you said, can you explain why?

ADD: oh wait my guess is that your saying, it will only effect one door? Thats not true because the door was given to player 8, and it will only effect the door owned by player 1. and since the location will only effect the door closest to the bottom left of the location, it should all work out
Report, edit, etc...Posted by PCFredZ on 2007-01-21 at 16:41:45
QUOTE(SomeIdiotNerd @ Jan 21 2007, 02:14 PM)
i didn't quite understand what you said, can you explain why?

ADD: oh wait my guess is that your saying, it will only effect one door? Thats not true because the door was given to player 8, and it will only effect the door owned by player 1. and since the location will only effect the door closest to the bottom left of the location, it should all work out
[right][snapback]616552[/snapback][/right]

What you had affects multiple doors, but they all open or close at once. The simplest way to have multiple doors open separately is with multiple locations.

There are more complex ways to open multiple doors separately without multiple locations, but in most cases they're not worth the effort.
Report, edit, etc...Posted by SomeIdiotNerd on 2007-01-21 at 20:35:40
i'll try making a test happy.gif

EDIT:
i don't know what you were thinking because this worked perfectly
[attachmentid=22670]

ADD: OHHH ok i see what your saying, but i don't think the thread creator was looking to open them seperately. Opening them seperately could still use one location
Report, edit, etc...Posted by Falkoner on 2007-01-21 at 21:38:01
I'm pretty sure in the DLDB there is a download of triggers that you can import into your map, one of them is disable all units at location. Can someone find this?
Report, edit, etc...Posted by PCFredZ on 2007-01-21 at 22:10:18
Any editor beyond the regular vanilla StarEdit can make those triggers.
Report, edit, etc...Posted by Zell.Dincht on 2007-01-21 at 22:12:55
Theres a tutorial. I hope that helps out some way.
Report, edit, etc...Posted by Falkoner on 2007-01-21 at 22:48:32
AHA, found it, it even uses the disable all units at location as an example.

Here it is.
Report, edit, etc...Posted by SomeIdiotNerd on 2007-01-22 at 13:07:00
i don't mean to say this in a rude way, but that tutorial is wrong. No such action exists that says:
Disable "All" left pit door at location "door_loc"
the only action that exists is:
Disable doodad state for left pit door for P1 at location "door_loc"

So you must use a different method too open two doors in the same place with one location, like my method, except you can do it that way too, bringing your unit to the door and it automatically opens.

QUOTE
Any editor beyond the regular vanilla StarEdit can make those triggers.

Yes any editor, i still don't see the point that you are making.

this thread has been resolved, and it might as well just be closed.

Edit: by the way i made changes to the test.
Report, edit, etc...Posted by rockz on 2007-01-22 at 13:16:01
I know its solved, but I didn't see anyone say the obvious: You can only disable 1 unit with the same owner/unit/location. Note I say 1, you will need another trigger action with a different owner/unit/location do be able to disable it.
Report, edit, etc...Posted by PCFredZ on 2007-01-22 at 15:47:10
QUOTE(SomeIdiotNerd @ Jan 22 2007, 12:07 PM)
Yes any editor, i still don't see the point that you are making.
[right][snapback]617070[/snapback][/right]

My point was that Falkoner didn't need to find a trigger pack for it.

The question's been answered. Either open/close all the doors at once or use separate locations.

>>Topic solved
Next Page (1)