- Joined
- Mar 9, 2012
- Messages
- 1,557
How to replace haunted goldmine via trigger at gamestart without duplicating it ? I have to do this for my Nerubians.
What currently happens is that the original goldmine becomes a normal one, and next to it appears the altered haunted goldmine i wanted to replace the default one with.
EDIT: Since it became evident to me nobody understand, the question here is:
How to replace a haunted goldmine with a custom one via trigger at gamestart ? How i need to expand upon the trigger to accomplish this ?
Relevant part of the trigger i use:
What currently happens is that the original goldmine becomes a normal one, and next to it appears the altered haunted goldmine i wanted to replace the default one with.
EDIT: Since it became evident to me nobody understand, the question here is:
How to replace a haunted goldmine with a custom one via trigger at gamestart ? How i need to expand upon the trigger to accomplish this ?
Relevant part of the trigger i use:
-
Blood Elves Selected
-
Ereignisse
- Dialog - A dialog button is clicked for DialogBloodElves
- Bedingungen
-
Aktionen
- -------- A player clics a button, so, the player is ready, check what player clicked and set him ready --------
- If ((Triggering player) Gleich Spieler 1 (Rot)) then do (Set ReadyPL1 = True) else do (Do nothing)
- If ((Triggering player) Gleich Spieler 2 (Blau)) then do (Set ReadyPL2 = True) else do (Do nothing)
- -------- Someone decides to use the Blood Elves, so the Blood Elf units are created for that player --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
- (Clicked dialog button) Gleich ButtonBelf
-
'THEN'-Aktionen
- -------- Replaces the units normal workers with Blood Elf workers --------
- Set TempGroup = (Units owned by (Triggering player) matching (((Matching unit) is Eine Einheit vom Typ Peon) Gleich True))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Replace (Picked unit) with a Artisan using Neue Einheit: Standard - life and mana)
- -------- Replaces the normal town-hall with Blood Elf town-hall --------
- Set TempGroup = (Units owned by (Triggering player) matching (((Matching unit) is Eine Einheit vom Typ Rathaus) Gleich True))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Replace (Picked unit) with a Arcanum Dome (Bloodelf) using Neue Einheit: Standard - life and mana)
- -------- Check Trigger Comment --------
- -------- 1.1 --------
- If ((Race of (Triggering player)) Gleich Untoter) then do (Einheit - Create 2 Artisan for (Triggering player) at ((Triggering player) start location) facing Vorgabe für Gebäude-Ausrichtung degrees) else do (Do nothing)
- -------- 1.2 --------
- Set TempGroup = (Units owned by (Triggering player) matching ((Unit-type of (Matching unit)) Gleich Ghul))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Remove (Picked unit) from the game)
- Set TempGroup = (Units owned by (Triggering player) matching ((Unit-type of (Matching unit)) Gleich Verhexte Goldmine))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Remove (Picked unit) from the game)
- -------- 1.3 --------
- Set AllUnits = (Units in (Playable map area))
- Einheitengruppe - Pick every unit in AllUnits and do (Einheit - Pause ein (Picked unit))
- 'ELSE'-Aktionen
-
'IF'-Bedingungen
- -------- Someone decides to use the Nerubians, so the Nerubian units are created for that player --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
- (Clicked dialog button) Gleich ButtonNerubian
-
'THEN'-Aktionen
- -------- Replaces the units normal workers with Nerubian workers --------
- Set TempGroup = (Units owned by (Triggering player) matching (((Matching unit) is Eine Einheit vom Typ Peon) Gleich True))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Replace (Picked unit) with a Devourer using Neue Einheit: Standard - life and mana)
- -------- Replaces the normal town-hall with Nerubian town-hall --------
- Set TempGroup = (Units owned by (Triggering player) matching (((Matching unit) is Eine Einheit vom Typ Rathaus) Gleich True))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Replace (Picked unit) with a Necrophage (Nerubian) using Neue Einheit: Standard - life and mana)
- -------- Check Trigger Comment --------
- -------- 1.1 --------
- If ((Race of (Triggering player)) Gleich Untoter) then do (Einheit - Create 2 Air Barge for (Triggering player) at ((Triggering player) start location) facing Vorgabe für Gebäude-Ausrichtung degrees) else do (Do nothing)
- -------- 1.2 --------
- Set TempGroup = (Units owned by (Triggering player) matching ((Unit-type of (Matching unit)) Gleich Ghul))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Remove (Picked unit) from the game)
- Set TempGroup = (Units owned by (Triggering player) matching ((Unit-type of (Matching unit)) Gleich Verhexte Goldmine))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Replace (Picked unit) with a Haunted Goldmine (hopefully funtions) using Neue Einheit: Standard - life and mana)
- -------- 1.3 --------
- Set AllUnits = (Units in (Playable map area))
- Einheitengruppe - Pick every unit in AllUnits and do (Einheit - Pause ein (Picked unit))
- 'ELSE'-Aktionen
-
'IF'-Bedingungen
- -------- Someone decides to use the Horde, so the Horde units are created for that player --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
- (Clicked dialog button) Gleich ButtonHorde
-
'THEN'-Aktionen
- -------- Replaces the units normal workers with Horde workers --------
- Set TempGroup = (Units owned by (Triggering player) matching (((Matching unit) is Eine Einheit vom Typ Peon) Gleich True))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Replace (Picked unit) with a Peon (Custom) using Neue Einheit: Standard - life and mana)
- -------- Replaces the normal town-hall with Blood Elf town-hall --------
- Set TempGroup = (Units owned by (Triggering player) matching (((Matching unit) is Eine Einheit vom Typ Rathaus) Gleich True))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Replace (Picked unit) with a Great Hall (Custom) using Neue Einheit: Standard - life and mana)
- -------- Check Trigger Comment --------
- -------- 1.1 --------
- If ((Race of (Triggering player)) Gleich Untoter) then do (Einheit - Create 2 Peon (Custom) for (Triggering player) at ((Triggering player) start location) facing Vorgabe für Gebäude-Ausrichtung degrees) else do (Do nothing)
- -------- 1.2 --------
- Set TempGroup = (Units owned by (Triggering player) matching ((Unit-type of (Matching unit)) Gleich Ghul))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Remove (Picked unit) from the game)
- Set TempGroup = (Units owned by (Triggering player) matching ((Unit-type of (Matching unit)) Gleich Verhexte Goldmine))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Remove (Picked unit) from the game)
- -------- 1.3 --------
- Set AllUnits = (Units in (Playable map area))
- Einheitengruppe - Pick every unit in AllUnits and do (Einheit - Pause ein (Picked unit))
- 'ELSE'-Aktionen
-
'IF'-Bedingungen
- -------- Someone decides to use the Dwarves, so the Dwarf units are created for that player --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
- (Clicked dialog button) Gleich ButtonDwarf
-
'THEN'-Aktionen
- -------- Replaces the units normal workers with Dwarf workers --------
- Set TempGroup = (Units owned by (Triggering player) matching (((Matching unit) is Eine Einheit vom Typ Peon) Gleich True))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Replace (Picked unit) with a Crafter using Neue Einheit: Standard - life and mana)
- -------- Replaces the normal town-hall with Blood Elf town-hall --------
- Set TempGroup = (Units owned by (Triggering player) matching (((Matching unit) is Eine Einheit vom Typ Rathaus) Gleich True))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Replace (Picked unit) with a Great Hall (Dwarf) using Neue Einheit: Standard - life and mana)
- -------- Check Trigger Comment --------
- -------- 1.1 --------
- If ((Race of (Triggering player)) Gleich Untoter) then do (Einheit - Create 2 Crafter for (Triggering player) at ((Triggering player) start location) facing Vorgabe für Gebäude-Ausrichtung degrees) else do (Do nothing)
- -------- 1.2 --------
- Set TempGroup = (Units owned by (Triggering player) matching ((Unit-type of (Matching unit)) Gleich Ghul))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Remove (Picked unit) from the game)
- Set TempGroup = (Units owned by (Triggering player) matching ((Unit-type of (Matching unit)) Gleich Verhexte Goldmine))
- Einheitengruppe - Pick every unit in TempGroup and do (Einheit - Remove (Picked unit) from the game)
- -------- 1.3 --------
- Set AllUnits = (Units in (Playable map area))
- Einheitengruppe - Pick every unit in AllUnits and do (Einheit - Pause ein (Picked unit))
- 'ELSE'-Aktionen
-
'IF'-Bedingungen
- -------- Run the trigger that decides to start or not the game --------
- Auslöser - Run Start Game <gen> (checking conditions)
-
Ereignisse
Last edited: