Red
New Member
- Reaction score
- 0
How do i create 1 dummy for 1 effect another dummy for other effect. So that it has 2 effects.
Trigger:
- Plasma Field
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to PFAbilityMain
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- PFCustomValue Less than 100
- Then - Actions
- Set PFCustomValue = (PFCustomValue + 1)
- Else - Actions
- Set PFCustomValue = 1
- If - Conditions
- Set PFCaster[PFCustomValue] = (Triggering unit)
- Set PFBoolean[PFCustomValue] = False
- Set PFRealMin = (40.00 + (40.00 x (Real((Level of PFAbilityMain for (Triggering unit))))))
- Set PFRealMax = (70.00 + (70.00 x (Real((Level of PFAbilityMain for (Triggering unit))))))
- Set PFRealDamageAdd[PFCustomValue] = ((PFRealMax - PFRealMin) / 56.00)
- Set PFRealDamage[PFCustomValue] = (PFRealMin / 2.00)
- Set PFRealDistance[PFCustomValue] = 0.00
- Set TempPoint = (Position of (Triggering unit))
- Set TempReal = 0.00
- For each (Integer A) from 1 to 36, do (Actions)
- Loop - Actions
- Set TempReal = (TempReal + 10.00)
- Set TempOffset = (TempPoint offset by PFRealDistance[PFCustomValue] towards TempReal degrees)
- Unit - Create 1 PlasmaFieldDummy for (Owner of (Triggering unit)) at TempOffset facing TempReal degrees
- Unit - Set the custom value of (Last created unit) to (Integer(TempReal))
- Unit Group - Add (Last created unit) to PFUnitGroup[PFCustomValue]
- Custom script: call RemoveLocation(udg_TempOffset)
- Loop - Actions
- Unit - Create 1 HiddenDummy for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
- Unit - Set the custom value of (Last created unit) to PFCustomValue
- Unit Group - Add (Last created unit) to PFDummyGroup
- Custom script: call RemoveLocation(udg_TempPoint)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- Plasma Field Periodic
- Events
- Time - Every 0.04 seconds of game time
- Conditions
- Actions
- Unit Group - Pick every unit in PFDummyGroup and do (Actions)
- Loop - Actions
- Set TempInt = (Custom value of (Picked unit))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- PFBoolean[TempInt] Equal to True
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- PFRealDistance[TempInt] Less than or equal to 0.00
- Then - Actions
- Unit Group - Remove all units from PFDamagedGroup[TempInt]
- Unit Group - Pick every unit in PFUnitGroup[TempInt] and do (Actions)
- Loop - Actions
- Set TempPoint = (Position of (Picked unit))
- Unit - Remove (Picked unit) from the game
- Special Effect - Create a special effect at TempPoint using war3mapImported\Static_Remnant_FX.mdx
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_TempPoint)
- Loop - Actions
- Unit - Remove (Picked unit) from the game
- Else - Actions
- Set PFRealDamage[TempInt] = (PFRealDamage[TempInt] - PFRealDamageAdd[TempInt])
- Set PFRealDistance[TempInt] = (PFRealDistance[TempInt] - 25.00)
- Set TempPoint = (Position of PFCaster[TempInt])
- Unit Group - Pick every unit in PFUnitGroup[TempInt] and do (Actions)
- Loop - Actions
- Set TempReal = (Real((Custom value of (Picked unit))))
- Set TempOffset = (TempPoint offset by PFRealDistance[TempInt] towards TempReal degrees)
- Unit - Move (Picked unit) instantly to TempOffset, facing (TempReal - 180.00) degrees
- Set TempUnitGroup = (Units within 100.00 of TempOffset matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of PFCa
- Unit Group - Pick every unit in TempUnitGroup and do (Actions)
- Loop - Actions
- Unit - Cause PFCaster[TempInt] to damage (Picked unit), dealing PFRealDamage[TempInt] damage of attack type Spells and damage type Magic
- Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\Bolt\BoltImpact.mdl
- Special Effect - Destroy (Last created special effect)
- Unit Group - Add (Picked unit) to PFDamagedGroup[TempInt]
- Loop - Actions
- Custom script: call DestroyGroup(udg_TempUnitGroup)
- Custom script: call RemoveLocation(udg_TempOffset)
- Loop - Actions
- Custom script: call RemoveLocation(udg_TempPoint)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- PFRealDistance[TempInt] Greater than or equal to 700.00
- Then - Actions
- Unit Group - Remove all units from PFDamagedGroup[TempInt]
- Set PFBoolean[TempInt] = True
- Else - Actions
- Set PFRealDamage[TempInt] = (PFRealDamage[TempInt] + PFRealDamageAdd[TempInt])
- Set PFRealDistance[TempInt] = (PFRealDistance[TempInt] + 25.00)
- Set TempPoint = (Position of PFCaster[TempInt])
- Unit Group - Pick every unit in PFUnitGroup[TempInt] and do (Actions)
- Loop - Actions
- Set TempReal = (Real((Custom value of (Picked unit))))
- Set TempOffset = (TempPoint offset by PFRealDistance[TempInt] towards TempReal degrees)
- Unit - Move (Picked unit) instantly to TempOffset, facing TempReal degrees
- Set TempUnitGroup = (Units within 100.00 of TempOffset matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of PFCa
- Unit Group - Pick every unit in TempUnitGroup and do (Actions)
- Loop - Actions
- Unit - Cause PFCaster[TempInt] to damage (Picked unit), dealing PFRealDamage[TempInt] damage of attack type Spells and damage type Magic
- Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\Bolt\BoltImpact.mdl
- Special Effect - Destroy (Last created special effect)
- Unit Group - Add (Picked unit) to PFDamagedGroup[TempInt]
- Loop - Actions
- Custom script: call DestroyGroup(udg_TempUnitGroup)
- Custom script: call RemoveLocation(udg_TempOffset)
- Loop - Actions
- Custom script: call RemoveLocation(udg_TempPoint)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Loop - Actions
- Unit Group - Pick every unit in PFDummyGroup and do (Actions)
- Events