Potatisbil
New Member
- Reaction score
- 6
Greetings!
I'm one of those people who likes making stuff in WE, but never publishes anything. Anywho, regarding my latest "project":
I'm trying to make a spell that, when cast, spawns 9 graves in a circle around the caster (plus a hidden footman as a dummy at each grave), and after all the graves have been spawned, the dummies are supposed to cast carrion swarm at the center of the circle.
For some reason, carrion swarm doesn't work. I've tried with other point-based spells (shockwave for example, but I don't want to use it (the temporary terrain deformation is annoying)), and they all worked fine, so why won't my carrion swarm work? Also, the only thing I really modified on the spells was setting their mana cost to 0, made it a normal spell instead of hero and gave it 1 level instead of 3.
Should probably also point out that I can cast the carrion swarm on the footmen manually, but trigger don't seem to work. Using the latest WC3:TFT version.
Note: this is just a test map that I use, I don't really bother with fixing memory leaks on it (well, not completely at least), so no need to point them out.
Modified to only include the parts that should have any relevance at all to my question:
Unmodified version:
I'm one of those people who likes making stuff in WE, but never publishes anything. Anywho, regarding my latest "project":
I'm trying to make a spell that, when cast, spawns 9 graves in a circle around the caster (plus a hidden footman as a dummy at each grave), and after all the graves have been spawned, the dummies are supposed to cast carrion swarm at the center of the circle.
For some reason, carrion swarm doesn't work. I've tried with other point-based spells (shockwave for example, but I don't want to use it (the temporary terrain deformation is annoying)), and they all worked fine, so why won't my carrion swarm work? Also, the only thing I really modified on the spells was setting their mana cost to 0, made it a normal spell instead of hero and gave it 1 level instead of 3.
Should probably also point out that I can cast the carrion swarm on the footmen manually, but trigger don't seem to work. Using the latest WC3:TFT version.
Note: this is just a test map that I use, I don't really bother with fixing memory leaks on it (well, not completely at least), so no need to point them out.
Modified to only include the parts that should have any relevance at all to my question:
Trigger:
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Torment
- Actions
- Set Temp_real = 0.00
- Set Temp_pos = (Position of (Triggering unit))
- For each (Integer A) from 1 to 9, do (Actions)
- Loop - Actions
- Unit - Create 1 Footman for Player 1 (Red) at (Temp_pos offset by 600.00 towards Temp_real degrees) facing Default building facing degrees
- Unit - Add Torment (carrion dummy) to (Last created unit)
- Unit Group - Add (Last created unit) to Torment_group
- Unit - Hide (Last created unit)
- Set Temp_real = (Temp_real + 40.00)
- Wait ((Distance between (Position of (Last created unit)) and (Temp_pos offset by 600.00 towards (Temp_real + 40.00) degrees)) / 1100.00) seconds
- Loop - Actions
- Unit Group - Pick every unit in Torment_group and do (Actions)
- Loop - Actions
- Unit - Order (Picked unit) to Undead Dreadlord - Carrion Swarm Temp_pos
- Loop - Actions
Unmodified version:
Trigger:
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Torment
- Actions
- Set Temp_real = 0.00
- Set Temp_pos = (Position of (Triggering unit))
- For each (Integer A) from 1 to 9, do (Actions)
- Loop - Actions
- Unit - Create 1 Spirit (Torment Dummy) for Player 1 (Red) at (Temp_pos offset by 600.00 towards Temp_real degrees) facing Temp_real degrees
- Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Undead\Darksummoning\DarkSummonTarget.mdl
- Set Torment_FX[(Integer A)] = (Last created special effect)
- Unit Group - Add (Last created unit) to Torment_group
- Unit - Turn collision for (Last created unit) Off
- Unit - Order (Last created unit) to Attack Ground (Temp_pos offset by 600.00 towards (Temp_real + 40.00) degrees)
- Unit - Create 1 Footman for Player 1 (Red) at (Temp_pos offset by 600.00 towards Temp_real degrees) facing Default building facing degrees
- Unit - Add Torment (carrion dummy) to (Last created unit)
- Unit Group - Add (Last created unit) to Torment_group
- Unit - Hide (Last created unit)
- Set Temp_real = (Temp_real + 40.00)
- Wait ((Distance between (Position of (Last created unit)) and (Temp_pos offset by 600.00 towards (Temp_real + 40.00) degrees)) / 1100.00) seconds
- Loop - Actions
- Unit Group - Pick every unit in Torment_group and do (Actions)
- Loop - Actions
- Unit - Order (Picked unit) to Undead Dreadlord - Carrion Swarm Temp_pos
- Loop - Actions
- Wait 1.50 game-time seconds
- For each (Integer A) from 1 to 9, do (Actions)
- Loop - Actions
- Special Effect - Destroy Torment_FX[(Integer A)]
- Loop - Actions
- Unit Group - Pick every unit in Torment_group and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit-type of (Picked unit)) Not equal to Footman
- Then - Actions
- Unit - Remove (Picked unit) from the game
- Special Effect - Create a special effect at (Position of (Picked unit)) using Objects\Spawnmodels\Undead\UCancelDeath\UCancelDeath.mdl
- Special Effect - Destroy (Last created special effect)
- Else - Actions
- Unit - Remove (Picked unit) from the game
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions