- Joined
- Jun 9, 2008
- Messages
- 308
So this is a WEIRD one. So much so that I started to wonder if I "broke" my map in some other way unrelated to those triggers.
Scenario: I created triggers where the environment changes when a unit ("Hovercone") uses an ability.
Namely, the platforms are either hidden or unhidden.
Problem: It works like a charm for like 20 minutes or so, and then it stops, specifically, the Platforms won't be hidden anymore no matter how I use the ability (rest of the trigger works as normal). And yes I seems to be linked specifically to time elapsed, not how often I use the trigger, because I can use it 20 times in a row and it keeps working fine.
I even deleted all periodical triggers in the map to make sure there is no interference from those.
The platforms (or any destructibles) are not mentioned in any other triggers.
Here are the two relevant triggers:
Platforms are hidden:
Scenario: I created triggers where the environment changes when a unit ("Hovercone") uses an ability.
Namely, the platforms are either hidden or unhidden.
Problem: It works like a charm for like 20 minutes or so, and then it stops, specifically, the Platforms won't be hidden anymore no matter how I use the ability (rest of the trigger works as normal). And yes I seems to be linked specifically to time elapsed, not how often I use the trigger, because I can use it 20 times in a row and it keeps working fine.
I even deleted all periodical triggers in the map to make sure there is no interference from those.
The platforms (or any destructibles) are not mentioned in any other triggers.
Here are the two relevant triggers:
Platforms are hidden:
-
Lower altitude
-
Ereignisse
-
Einheit - A unit begins to cast an ability
-
-
Bedingungen
-
(Ability being cast) Equal Lower Altitude (Neutral feindlich)
-
-
Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Level of Altitude 0 for Hovercone) Equal 1
-
-
'THEN'-Aktionen
-
Einheit - Remove Altitude 0 from Hovercone
-
Einheit - Add Altitude -1 to Hovercone
-
Animation - Change Hovercone flying height to 30.00 at 100.00
-
Gegenstand - Remove (Item carried by Hovercone of type Altimeter: Altitude= 0)
-
Held - Create Altimeter: Altitude= -1 and give it to Hovercone
-
Gegenstand - Make (Last created item) Nicht ablegbar
-
-------- Platforms out --------
-
Destructible - Pick every destructible in (Playable map area) and do (Actions)
-
Schleifen - Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Destructible-type of (Picked destructible)) Equal Aufzug (1) Forest large
-
-
'THEN'-Aktionen
-
Destructible - Hide (Picked destructible)
-
-
'ELSE'-Aktionen
-
-
-
-
-
'ELSE'-Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Level of Altitude 1 for Hovercone) Equal 1
-
-
'THEN'-Aktionen
-
Einheit - Remove Altitude 1 from Hovercone
-
Einheit - Add Altitude 0 to Hovercone
-
Animation - Change Hovercone flying height to 100.00 at 100.00
-
Gegenstand - Remove (Item carried by Hovercone of type Altimeter: Altitude= 1)
-
Held - Create Altimeter: Altitude= 0 and give it to Hovercone
-
Gegenstand - Make (Last created item) Nicht ablegbar
-
-
'ELSE'-Aktionen
-
-
-
-
-
-
Raise Altitude
-
Ereignisse
-
Einheit - A unit begins casting an ability
-
-
Bedingungen
-
(Ability being cast) Equal Raise Altitude
-
-
Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Level of Altitude -1 for (Triggering unit)) Equal 1
-
-
'THEN'-Aktionen
-
-------- Platforms in --------
-
Destructible - Pick every destructible in (Playable map area) and do (Actions)
-
Schleifen - Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Destructible-type of (Picked destructible)) Equal Aufzug (1) Forest large
-
-
'THEN'-Aktionen
-
Destructible - Unhide (Picked destructible)
-
-
'ELSE'-Aktionen
-
-
-
-
Einheit - Add Altitude 0 to (Triggering unit)
-
Einheit - Remove Altitude -1 from (Triggering unit)
-
Gegenstand - Remove (Item carried by Hovercone of type Altimeter: Altitude= -1)
-
Held - Create Altimeter: Altitude= 0 and give it to Hovercone
-
Gegenstand - Make (Last created item) Nicht ablegbar
-
Animation - Change (Triggering unit) flying height to 100.00 at 100.00
-
Einheit - Set (Triggering unit) movement speed to (Default movement speed of (Triggering unit))
-
-
'ELSE'-Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Level of Altitude 0 for (Triggering unit)) Equal 1
-
-
'THEN'-Aktionen
-
Einheit - Remove Altitude 0 from (Triggering unit)
-
Einheit - Add Altitude 1 to (Triggering unit)
-
Animation - Change (Triggering unit) flying height to 150.00 at 100.00
-
Gegenstand - Remove (Item carried by Hovercone of type Altimeter: Altitude= 0)
-
Held - Create Altimeter: Altitude= 1 and give it to Hovercone
-
Gegenstand - Make (Last created item) Nicht ablegbar
-
-
'ELSE'-Aktionen
-
-
-
-
-
Last edited: