- Joined
- Jul 10, 2011
- Messages
- 562
hey all
i have a little problem with one of my puzzles.
of the following 3 triggers the last one isnt working :
if it would work it should do the following :
in every section of the puzzle are 3 of the GreenLightDummys and just one port you to the next section (MTPPoint[X]) the 2 others shall port you to the start (MTPPoint[0]). the GreenLightDummy 0461 <gen> is the in the final section porting you nack to the beginning to get out again.
thanks in advance
greetz clapto
i have a little problem with one of my puzzles.
of the following 3 triggers the last one isnt working :
-
Mysterious Tree Puzzle Preset
-
Events
- Time - Elapsed game time is 0.00 seconds
- Conditions
-
Actions
- Unit Group - Add DummyGreenLight 0452 <gen> to MTP[1]
- Unit Group - Add DummyGreenLight 0453 <gen> to MTP[1]
- Unit Group - Add DummyGreenLight 0454 <gen> to MTP[1]
- -------- ----------------------------------------- --------
- Unit Group - Add DummyGreenLight 0455 <gen> to MTP[2]
- Unit Group - Add DummyGreenLight 0457 <gen> to MTP[2]
- Unit Group - Add DummyGreenLight 0456 <gen> to MTP[2]
- -------- ----------------------------------------- --------
- Unit Group - Add DummyGreenLight 0459 <gen> to MTP[3]
- Unit Group - Add DummyGreenLight 0460 <gen> to MTP[3]
- Unit Group - Add DummyGreenLight 0458 <gen> to MTP[3]
- -------- ----------------------------------------- --------
- Set MTPPoint[0] = (Center of MTP0 <gen>)
- Set MTPPoint[1] = (Center of MTP1 <gen>)
- Set MTPPoint[2] = (Center of MTP2 <gen>)
- Set MTPPoint[3] = (Center of MTP3 <gen>)
- -------- ----------------------------------------- --------
- Set MTPUnit[1] = No Unit
- Set MTPUnit[2] = No Unit
- Set MTPUnit[3] = No Unit
-
Events
-
Mysterious Tree Puzzle Set
-
Events
- Time - Elapsed game time is 1.00 seconds
- Time - Every 240.00 seconds of game time
- Conditions
-
Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
- Set MTPUnit[(Integer A)] = (Random unit from MTP[(Integer A)])
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to 3, do (Actions)
-
Events
-
Mysterious Tree Puzzle
-
Events
- Unit - A unit comes within 50.00 of DummyGreenLight 0452 <gen>
- Unit - A unit comes within 50.00 of DummyGreenLight 0453 <gen>
- Unit - A unit comes within 50.00 of DummyGreenLight 0454 <gen>
- Unit - A unit comes within 50.00 of DummyGreenLight 0455 <gen>
- Unit - A unit comes within 50.00 of DummyGreenLight 0456 <gen>
- Unit - A unit comes within 50.00 of DummyGreenLight 0457 <gen>
- Unit - A unit comes within 50.00 of DummyGreenLight 0458 <gen>
- Unit - A unit comes within 50.00 of DummyGreenLight 0459 <gen>
- Unit - A unit comes within 50.00 of DummyGreenLight 0460 <gen>
- Unit - A unit comes within 50.00 of DummyGreenLight 0461 <gen>
- Conditions
-
Actions
- Set TempPoint = (Position of (Triggering unit))
-
Set TempPoint2 = (Position of DummyGreenLight 0461 <gen>)
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
- (Distance between TempPoint and TempPoint2) (<=) 50.00
-
'THEN'-Actions
- Unit - Move (Triggering unit) instantly to MTPPoint[0]
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: call RemoveLocation(udg_TempPoint2)
-
'ELSE'-Actions
-
Custom script: call RemoveLocation(udg_TempPoint2)
-
Do Multiple ActionsFor each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in MTP[(Integer A)] and do (Actions)
-
Loop - Actions
-
Set TempPoint2 = (Position of (Picked unit))
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
- (Distance between TempPoint and TempPoint2) (<=) 50.00
-
'THEN'-Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
- (Picked unit) (==) MTPUnit[(Integer A)]
-
'THEN'-Actions
- Unit - Move (Triggering unit) instantly to MTPPoint[(Integer A)]
-
'ELSE'-Actions
- Unit - Move (Triggering unit) instantly to MTPPoint[0]
-
'IF'-Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- 'ELSE'-Actions
-
'IF'-Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Custom script: call RemoveLocation(udg_TempPoint2)
-
Set TempPoint2 = (Position of (Picked unit))
-
Loop - Actions
-
Unit Group - Pick every unit in MTP[(Integer A)] and do (Actions)
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to 3, do (Actions)
- Custom script: call RemoveLocation(udg_TempPoint)
-
Custom script: call RemoveLocation(udg_TempPoint2)
-
'IF'-Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
if it would work it should do the following :
in every section of the puzzle are 3 of the GreenLightDummys and just one port you to the next section (MTPPoint[X]) the 2 others shall port you to the start (MTPPoint[0]). the GreenLightDummy 0461 <gen> is the in the final section porting you nack to the beginning to get out again.
thanks in advance
greetz clapto