• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Complicated GUI Array 'n' Condition issue

Status
Not open for further replies.
Hello! I'm fiddlin' about with a highly complicated regional system, and something prevents it from working. It is too hard to grasp in just some code, so i'll attach the map itself. The problem is, that i want to build farms via the 'construct' abilities on the lotbuilders (whisps) but it doesn't show up on the dialog. I'm almost certain that the problem is related to the fact, that it's only possible to actually build a farm, if the lot is clear of summer tree walls, since when i just 'true''d it, it worked. Okay - this is a big pile of meaningless words, unless you've tried the map. so please, read this again, after you've had a look at the map, and the triggers.

Use the greedisgood cheat to get the 500 gold needed to buy a lot.

+Rep'll be given, of course.
 

Attachments

  • Village chiefs.w3x
    50.4 KB · Views: 52
Onebuilt is never altered, and woodclear is altered in the trigger 'income':

  • Income
    • Events
      • Time - incometimer expires
      • Map initialization
    • Conditions
    • Actions
      • Set Tempinteger = 0
      • Unit Group - Pick every unit in (Units of type Lotbuilder) and do (Actions)
        • Loop - Actions
          • Destructible - Pick every destructible in Lot[(Custom value of (Picked unit))] and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Destructible-type of (Picked destructible)) Equal to Summer Tree Wall
                • Then - Actions
                  • Set Tempinteger = (Tempinteger + 1)
                • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Tempinteger Greater than or equal to 1
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Owner of (Picked unit)) Not equal to Neutral Passive
                • Then - Actions
                  • Destructible - Kill (Random destructible in Lot[(Custom value of (Picked unit))] matching ((Destructible-type of (Matching destructible)) Equal to Summer Tree Wall))
                  • Set Tempinteger = (Tempinteger - 1)
                  • Player - Add Woodgain to (Owner of (Picked unit)) Current lumber
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Tempinteger Less than or equal to 0
                    • Then - Actions
                      • Set Woodclear[(Custom value of (Picked unit))] = True
                    • Else - Actions
                • Else - Actions
            • Else - Actions
              • Set Woodclear[(Custom value of (Picked unit))] = True
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Income
    • Events
      • Time - incometimer expires
    • Conditions
    • Actions
      • Set Temp_Real_1 = (0.81 / 2.00)
      • Unit Group - Pick every unit in (Units of type Lotbuilder) and do (Actions)
        • Loop - Actions
          • Set Tempinteger = 0
          • Destructible - Pick every destructible in Lot[(Custom value of (Picked unit))] and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Current life of (Picked destructible)) Greater than Temp_Real_1
                  • (Destructible-type of (Picked destructible)) Equal to Summer Tree Wall
                • Then - Actions
                  • ...
 
Status
Not open for further replies.
Top