So uh, this is some really messy code.
Spell Template Copy Copy
I basically copied the code from the Circle Spell Template, and added a few things. I can't figure out how to destroy all the flames I created as a special effect either, and I want them there until everything's done. I know it'd be impossible to make this MUI, so I don't expect that.
What I'd like help with:
Removing all the Breath of Fire special effects.
General trigger cleanup.
Leak removal.
Thanks in advance for anyone able/willing to help.
Spell Template Copy Copy
Trigger:
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Warth of Flames
- Actions
- Set Wait = 0.00
- Set WoF_Caster = (Casting unit)
- Set WoF_CasterLocation = (Position of WoF_Caster)
- -------- The time between which effect and damage occurs. --------
- Set Offset = 450.00
- -------- The radius of the circle. --------
- Set VertexCount = 60
- -------- The number of vertices your "circle" has. --------
- Set Damage = 100.00
- -------- The damage each vertex does at level 1 --------
- Set DamageLevelFactor = 1.50
- -------- The increase in damage per level. --------
- Set Range = 100.00
- -------- The area that damage occurs around each vertex. --------
- Set RangeLevelFactor = 1.00
- -------- The change per level in range. --------
- Set Points[361] = (Position of (Triggering unit))
- For each (Integer A) from 1 to VertexCount, do (Actions)
- Loop - Actions
- Set VertexConvert = ((Integer A) x (360 / VertexCount))
- Set Points[(Integer A)] = (Points[361] offset by Offset towards (Real(VertexConvert)) degrees)
- Special Effect - Create a special effect at Points[(Integer A)] using Abilities\Spells\Other\BreathOfFire\BreathOfFireDamage.mdl
- Set WoF_CircleEffect[1] = (Last created special effect)
- Special Effect - Create a special effect at Points[(Integer A)] using Units\Demon\Infernal\InfernalBirth.mdl
- -------- This is the SFX that shows up at each vertex. --------
- Special Effect - Destroy (Last created special effect)
- Set Group = (Units within 510.00 of WoF_CasterLocation matching (((Matching unit) belongs to an enemy of (Owner of WoF_Caster)) Equal to True))
- Unit Group - Pick every unit in Group and do (Actions)
- Loop - Actions
- Custom script: call RemoveLocation(udg_Points[bj_forLoopAIndex])
- Custom script: call DestroyGroup(udg_Group)
- Trigger - Turn on Wrath of Flames2 <gen>
- Wait Wait seconds
- -------- Disable this if you have "Wait" set to 0.00 --------
- Loop - Actions
- Custom script: call RemoveLocation(udg_Points[361])
- Wait 15.00 seconds
- Special Effect - Destroy WoF_CircleEffect[(1 + 1)]
I basically copied the code from the Circle Spell Template, and added a few things. I can't figure out how to destroy all the flames I created as a special effect either, and I want them there until everything's done. I know it'd be impossible to make this MUI, so I don't expect that.
What I'd like help with:
Removing all the Breath of Fire special effects.
General trigger cleanup.
Leak removal.
Thanks in advance for anyone able/willing to help.