HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Triggering help needed

09-17-2003, 04:02 PM#1
Ironboy
Well, i don't think it's possible,
but some people here seems to be very creative, and well... who knows... someone might come up with something @@"

well, what I want is...

a trigger that lets me specify where a building can be built

i mean, sea-pathable or unblight or pathable options of we is not enough for what I want to do

i need to be able to set regions, that are where each specify building can be built.


example:

my worker have 5 types of buildings buildable

I have all the same terrain

but, i want each of those buildings ONLY being able to be built in a specify region of the map (set regions).


Now, it's all yours. Im not really a genius at being creative....
09-18-2003, 12:14 AM#2
Shiik
I just had an idea. i dont know if itll work for u, but here it goes...

Events

Unit- A unit owned by Player X Finishes construction.

Conditions

(Constructed Structure) Equal to (Building type)

Actions

Unit - Move (Constructed structur) instantly to (center of(Region where you want the building to go)



Well, that should do it. Unless you just want them to build in a general area. But if u want a specific building to go in a specific place, then that should work. I havnt tested it. SHould though...
09-18-2003, 11:00 AM#3
Ironboy
no........
that's not what I want...

that'd be no problem at all...

the problem is, i want the building only being able to be built at specified regions.... no moving the building after being built...

im making a map with a theme of real world and i dont want it have rare things happen... i want to make it as real as possible...

so... farm is only being built near some place....forces at diff... etc...


got it?
09-18-2003, 12:27 PM#4
ChaoticPeasant
Construction
Events
Unit - A unit Begins construction
Conditions
(Unit-type of (Constructing structure)) Equal to Footman
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Farm Area <gen> contains (Constructing structure)) Equal to False
Then - Actions
Unit - Remove (Constructing structure) from the game
Else - Actions
Do nothing

I forgot how to display that yellow text, but will this work?
09-18-2003, 01:18 PM#5
Ironboy
no........that won't work the way I required... thanks anyway



darn, i think i was right, it's impossible............ not even the best triggerer could do that I guess....
09-18-2003, 08:55 PM#6
ChaoticPeasant
Why won't it work?
09-18-2003, 09:18 PM#7
cideh
Well, you _could_ create a custom tileset with unbuildable tiles(but then there must be no other unbuildable tiles placed) looking like the normal tiles, and have the building only constructable at unbuildable...

I don't see how this has to do with triggers really... Well, what you could do is disable the structure when the unit leaves the region. That would probably work.