I have a shop system set up on my map and created multiple "folders" which are actually shop based units, but the problem is one of the folders will not work. (The Recipes folder). Here is what I am using. Does this trigger not allow for more than two folders?
-
Green Store
-
Events
-
Unit - A unit Sells an item (from shop)
-
-
Conditions
-
Actions
-
-------- Recipes --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Sold Item)) Equal to Recipes
-
-
Then - Actions
-
Set Temp_Point = (Position of (Selling unit))
-
Set Temp_Group = (Units within 512.00 of Temp_Point matching ((Unit-type of (Matching unit)) Equal to Recipes))
-
Unit Group - Pick every unit in Temp_Group and do (Actions)
-
Loop - Actions
-
Selection - Select (Picked unit) for (Owner of (Buying unit))
-
-
-
Custom script: call DestroyGroup (udg_Temp_Group)
-
Custom script: call RemoveLocation (udg_Temp_Point)
-
-------- The Custom scripts are necessary to remove memory leaks. --------
-
-
Else - Actions
-
-------- Armor --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Sold Item)) Equal to Armor Items
-
-
Then - Actions
-
Set Temp_Point = (Position of (Selling unit))
-
Set Temp_Group = (Units within 512.00 of Temp_Point matching ((Unit-type of (Matching unit)) Equal to Armor Items))
-
Unit Group - Pick every unit in Temp_Group and do (Actions)
-
Loop - Actions
-
Selection - Select (Picked unit) for (Owner of (Buying unit))
-
-
-
Custom script: call DestroyGroup (udg_Temp_Group)
-
Custom script: call RemoveLocation (udg_Temp_Point)
-
-------- The Custom scripts are necessary to remove memory leaks. --------
-
-
Else - Actions
-
-------- Damage --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Sold Item)) Equal to Damage Items
-
-
Then - Actions
-
Set Temp_Point = (Position of (Selling unit))
-
Set Temp_Group = (Units within 512.00 of Temp_Point matching ((Unit-type of (Matching unit)) Equal to Damage Items))
-
Unit Group - Pick every unit in Temp_Group and do (Actions)
-
Loop - Actions
-
Selection - Select (Picked unit) for (Owner of (Buying unit))
-
-
-
Custom script: call DestroyGroup (udg_Temp_Group)
-
Custom script: call RemoveLocation (udg_Temp_Point)
-
-------- The Custom scripts are necessary to remove memory leaks. --------
-
-
Else - Actions
-
-
-
-
-
-
-