HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Condition-Unit In Region=X

02-25-2005, 03:01 AM#1
yuripro84
how do i make the condition for....
Region XXX contains 1 of a certain unit
02-25-2005, 03:06 AM#2
Guest
You could be a bit more specific, that would help.

I Guess maybe is this what you want:
Conditions
(<Region> contains (<Unit>)) Equal to True

It's a boolean comparission. Then you select the function, Unit - Unit in Region.
Hope i helped ^_^
02-25-2005, 04:59 AM#3
yuripro84
sort of, thats almost exactly what i wanted, but i want it to be so that its something like "when a footman is in region XXX" not "when triggering player is in region XXX", get it??anyway, THANX

for the second time ^_^
02-25-2005, 05:06 AM#4
Guest
Your Welcome, just do it something like, Event (Unit Enters Region) and the condition (must be footman)

It will work =D
02-25-2005, 07:43 AM#5
Guest
Unit of type (footman) in (region) (superior) to (1)?
02-25-2005, 09:35 PM#6
yuripro84
i think so BFD, but i know your wronf renard, but thanx for trying! Heres what i want

A unit enters region XXX, and as long as theres a certain unit in XXX region, it will summon XXX unit in a certain spot. If you wanna see examples of what i mean, i can take some screenshots of it??cause its hard to explain, but i think badfurday knows what im talking about, just need to know the exact condition ^_^
02-25-2005, 09:45 PM#7
Azhag
I think I know what your talking about.

Code:
Event- Unit- unit enters region XXX
Condition- Boolean Comparison- ((Region XXX) contains (Random unit from (Units in (Region XXX) matching ((Unit-type of (Picked unit)) Equal to Unit XXX)))) Equal to True
Actions- Create Units Facing Angle- Unit - Create 1 Unit XXX for Player X (XXX) at (Center of (Region XXX)) facing Default building facing degrees

Hope that helps.
02-25-2005, 11:36 PM#8
yuripro84
ok, thanx, this gave me some ideas, and i just thiought of how to do it with if/then/else, i even made it REALLY confusing, so you need to know triggers and you need to be really smart, along with being happy, since it;ll give u a headache!!i had to write it all down cause i had too many!!!!! lol

thanx for trying everybody!!! Trying is just as good, it shows something :\