box around an area with doodads

D.K.

New Member
Reaction score
11
How do you create doodads or units in a region that fills it in in a boxy shape? I believe uther party 2 had this in the motar mini game where rocks are created around a region over time, making the field smaller and smaller until it fills up.
 

CungPowCow

Cool Member
Reaction score
6
The only way I can think of is that you have (4)four regions, each creating the same doodads/units. All four regions are very narrow & line-like, connected at their ends by other line-like regions.

The end result creates the illusion of a box of units/doodads.

Example:


Then use triggers to create doodads/units in Rect 1, Rect 2, Rect 3, & Rect 4.

Either this way, or doing the pain-stakingly harder method of creating each individual doodad/unit at specified coordinates.
 

Conal

Member
Reaction score
12
I'll post a map if needed.

Trigger:
  • asdf
    • Events
      • Player - Player 1 (Red) types a chat message containing -blah as An exact match
    • Conditions
    • Actions
      • Set Start = (Point(1280.00, 1280.00))
      • Set Size = 10
      • Set Direction = 1
      • Set Cycle = 0
      • For each (Integer B) from 1 to ((Size x 2) - 1), do (Actions)
        • Loop - Actions
          • For each (Integer A) from 1 to (Size - Cycle), do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Direction Equal to 4
                • Then - Actions
                  • Set Start = (Start offset by (-128.00, 0.00))
                  • If ((Integer A) Equal to (Size - Cycle)) then do (Set Direction = 1) else do (Do nothing)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Direction Equal to 3
                    • Then - Actions
                      • Set Start = (Start offset by (0.00, -128.00))
                      • If ((Integer A) Equal to (Size - Cycle)) then do (Set Direction = 4) else do (Do nothing)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • Direction Equal to 2
                        • Then - Actions
                          • Set Start = (Start offset by (128.00, 0.00))
                          • If ((Integer A) Equal to (Size - Cycle)) then do (Set Direction = 3) else do (Do nothing)
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Direction Equal to 1
                            • Then - Actions
                              • Set Start = (Start offset by (0.00, 128.00))
                              • If ((Integer A) Equal to (Size - Cycle)) then do (Set Direction = 2) else do (Do nothing)
                            • Else - Actions
              • Unit - Create 1 Footman for Player 1 (Red) at Start facing Default building facing degrees
              • Custom script: call TriggerSleepAction( .1 )
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • ((Integer B) mod 2) Not equal to 0
            • Then - Actions
              • Set Cycle = (Cycle + 1)
            • Else - Actions
      • Custom script: call RemoveLocation(udg_Start)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top