- Joined
- May 2, 2011
- Messages
- 1,351
Hello,
I have tried this trigger and screen will freeze as soon Meat wagon spawn 1 unit.
Is my best option to just remove the unit from the game and then drop a dead peon beneath the wagon and ask him to gather the corpse? but that might interrupt the command.
I tried here, and my trigger refuse to create dead corpse but only create alive one. Here is the trigger:
Edit: Ok for some reason it refuses to place dead units on top of living units, but its fine to create living ones on top of them. so I have to create living unit and then replace it.
is it good though?
I also need to randomize which units are to be spawned, but thats not a big issue.
though this doesnt seem very neat to me.
I have tried this trigger and screen will freeze as soon Meat wagon spawn 1 unit.
-
ExhumeCorpse
-
Events
-
Unit - A unit enters (Playable map area)
-
-
Conditions
-
((Triggering unit) is dead) Equal to True
-
-
Actions
-
Quest - Display to (All players) the Simple Hint message: ANIMATE DEAD
-
Unit - Replace (Triggering unit) with a Peon using The old unit's relative life and mana
-
-
Is my best option to just remove the unit from the game and then drop a dead peon beneath the wagon and ask him to gather the corpse? but that might interrupt the command.
I tried here, and my trigger refuse to create dead corpse but only create alive one. Here is the trigger:
-
ExhumeCorpse
-
Events
-
Unit - A unit enters (Playable map area)
-
-
Conditions
-
((Triggering unit) is dead) Equal to True
-
(Unit-type of (Triggering unit)) Equal to Ghoul
-
-
Actions
-
Quest - Display to (All players) the Simple Hint message: Corpse Found
-
Unit - Remove (Triggering unit) from the game
-
-
-
ExhumeCorpse2
-
Events
-
Unit - A unit owned by Player 1 (Red) Starts the effect of an ability
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Meat Wagon
-
-
Actions
-
Set Temp_Point1 = (Position of (Triggering unit))
-
Unit - Create 1 Peasant for (Triggering player) at Temp_Point1 facing Temp_Point1
-
Unit - Create a Footman corpse for (Triggering player) at TempPoint01
-
Unit - Create a permanent Skeletal Footman corpse for Player 1 (Red) at TempPoint01 facing (Random angle) degrees
-
Custom script: call RemoveLocation(udg_Temp_Point1)
-
Unit - Order (Triggering unit) to Undead Meat Wagon - Get Corpse
-
-
Edit: Ok for some reason it refuses to place dead units on top of living units, but its fine to create living ones on top of them. so I have to create living unit and then replace it.
is it good though?
-
ExhumeCorpse2 Copy
-
Events
-
Unit - A unit owned by Player 1 (Red) Starts the effect of an ability
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Meat Wagon
-
-
Actions
-
Set Temp_Point1 = (Position of (Triggering unit))
-
Unit - Create 1 Peasant for (Triggering player) at Temp_Point1 facing Temp_Point1
-
Set Temp_Point2 = (Position of (Last created unit))
-
Unit - Remove (Last created unit) from the game
-
Unit - Create a Footman corpse for (Triggering player) at Temp_Point2
-
Custom script: call RemoveLocation(udg_Temp_Point1)
-
Custom script: call RemoveLocation(udg_Temp_Point2)
-
Unit - Order (Triggering unit) to Undead Meat Wagon - Get Corpse
-
-
I also need to randomize which units are to be spawned, but thats not a big issue.
though this doesnt seem very neat to me.
btw I also tried offset action trigger with no avail
-
ExhumeCorpse2
-
Events
-
Unit - A unit owned by Player 1 (Red) Starts the effect of an ability
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Meat Wagon
-
-
Actions
-
Set Temp_Point1 = (Position of (Triggering unit))
-
Set Temp_Point2 = (TempPoint01 offset by (Random real number between 1.00 and 25.00) towards (Random angle) degrees)
-
Unit - Create a Footman corpse for Neutral Passive at Temp_Point2
-
Custom script: call RemoveLocation(udg_Temp_Point1)
-
Custom script: call RemoveLocation(udg_Temp_Point2)
-
Unit - Order (Triggering unit) to Undead Meat Wagon - Get Corpse
-
-
Last edited: