| 08-12-2004, 12:32 AM | #1 |
ok i have this spelll here, for my avp map... its for the facehugger, and when the chestburster comes out the unit... after 30 seconds it grows up to a runner and then to a drone... but the variables i think mess it up, if you use the same spell at the same time... anyway to go around this, so if the spell is used more then once at the same time it doesnt screw it up... usually 1 alien will grow up while the first stays in the first stage... Code:
Facehug
Events
Unit - A unit Spawns a summoned unit
Conditions
(Unit-type of (Summoned unit)) Equal to Chestburster
Actions
Unit - Replace (Summoned unit) with a Chestburster using The old unit's relative life and mana
Set aliencycle[1] = (Last replaced unit)
Wait 1.00 seconds
Unit - Change color of aliencycle[1] to Gray
Unit - Set life of aliencycle[1] to 100.00%
Cinematic - Ping minimap for (Player group((Owner of aliencycle[1]))) at (Position of aliencycle[1]) for 1.00 seconds
Wait 30.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Unit-type of aliencycle[1]) Equal to Chestburster) and ((Life of aliencycle[1]) Greater than or equal to 10.00)
Then - Actions
Unit - Replace aliencycle[1] with a Runner using The new unit's max life and mana
Set aliencycle[2] = (Last replaced unit)
Wait 1.00 seconds
Unit - Change color of aliencycle[2] to Gray
Unit - Set life of aliencycle[2] to 100.00%
Cinematic - Ping minimap for (Player group((Owner of aliencycle[2]))) at (Position of aliencycle[2]) for 1.00 seconds
Else - Actions
Do nothing
Wait 30.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Unit-type of aliencycle[2]) Equal to Runner) and ((Life of aliencycle[2]) Greater than or equal to 10.00)
Then - Actions
Unit - Replace aliencycle[2] with a Drone using The new unit's max life and mana
Set aliencycle[3] = (Last replaced unit)
Wait 1.00 seconds
Unit - Change color of aliencycle[3] to Gray
Unit - Set life of aliencycle[3] to 100.00%
Cinematic - Ping minimap for (Player group((Owner of aliencycle[3]))) at (Position of aliencycle[3]) for 1.00 seconds
Else - Actions
Do nothing
|
| 08-12-2004, 05:18 AM | #2 |
nvm thnx to the mighty rod of nod... i was helped |
