HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Simple question

02-10-2004, 12:51 PM#1
SirSalute
Can I know the exact condition for checking whether region contain buildings?

I can't seem to find a full condition for buildings. All i found is either unit is a structure or unit count is 0.I want to check is the region is free of structures.

Please help me. Thank you.:WD:
02-10-2004, 01:26 PM#2
Alakafizz
Im not sure there's a condition for what you're asking, however, it can be accomplished by other means:

Code:
Untitled Trigger 001
    Events
    Conditions
    Actions
        Set Boolean = False
        Custom script:   set bj_wantDestroyGroup = true
        Unit Group - Pick every unit in (Units in Region matching (((Matching unit) is A structure) Equal to True)) and do (Actions)
            Loop - Actions
                Set Boolean = True
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Boolean Equal to False
            Then - Actions
                (Run actions for no buildings in region)
            Else - Actions
                (Run actions for buildings in region)

Im sure there are better ways than this one, but this is just off the top of my head.
02-10-2004, 02:50 PM#3
SirSalute
sorry Lord Vexorian, I'm don't get you. I quite dumb, so can you kindly eleborate what these custom script do?
oh dear, so many actions for one condition checking. Really appreciate your help, but I don't know what is muliboard. Is it the counter that appear at the top edge of the map? If its that, then I won't need that to appear in my map, or my map will be very congested.

All I need is to check whether region contains buildings, so that i can create a building at exactly where i want to.
02-10-2004, 02:56 PM#4
Vexorian
Quote:
Originally posted by SirSalute
sorry Vexorian, I'm don't get you. I quite dumb, so can you kindly eleborate what these custom script do?
oh dear, so many actions for one condition checking. Really appreciate your help, but I don't know what is muliboard. Is it the counter that appear at the top edge of the map? If its that, then I won't need that to appear in my map, or my map will be very congested.

All I need is to check whether region contains buildings, so that i can create a building at exactly where i want to.


For some evil reason I posted an answer for another question here, And that is strange since I don't remember seeing this question at all. sorry
02-10-2004, 03:15 PM#5
SirSalute
lol, no problem there. I thought you're trying to explain the
set bj_wantDestroyGroup = true script
with the multiboard stuff.

So, there isn't any simpler way to detech whether a specific region has building(s) in it?

EDIT: Heh heh, the triggers are working now, thanks guys.