Help with spell please

Sonic

New Member
Reaction score
10
Why do you need to destroy effects after 10 seconds? Destroy them at the beginning of the spell
 

DuelPlayer

Member
Reaction score
21
Mine is just to fix your problem, if u want destroy the special effects, use the method suggested by others or
Trigger:
  • Omnipotentus Praesentia
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Omnipotentus Praesentia
    • Actions
      • Set Omnipotentus_Praesentia_Group = (Units within 900.00 of (Position of (Casting unit)) matching (((Matching unit) belongs to an ally of (Owner of (Casting unit))) Equal to True))
      • Set Omni_Enemy_Group = (Units within 900.00 of (Position of (Casting unit)) matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True))
      • Unit Group - Pick every unit in Omnipotentus_Praesentia_Group and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + ((Real((Intelligence of (Casting unit) (Include bonuses)))) x 10.00)))
      • Unit Group - Pick every unit in Omni_Enemy_Group and do (Unit - Cause (Casting unit) to damage (Picked unit), dealing ((Real((Intelligence of (Casting unit) (Include bonuses)))) x 5.00) damage of attack type Spells and damage type Normal)
      • Unit Group - Pick every unit in Omni_Enemy_Group and do (Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Items\AIta\CrystalBallCaster.mdl) and set Temp_Integer to (Temp_Integer + 1) and set Omni_enemy_spec_effect(Temp_Integer) = (Last created effect)
      • Unit Group - Pick every unit in Omnipotentus_Praesentia_Group and do (Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Items\StaffOfSanctuary\Staff_Sanctuary_Target.mdl) and set Omni_ally_spec_effect(Temp_Integer) = (Last created effect)
      • Wait 10.00 seconds
      • Trigger - Run Omnipotentus 2



And the second one :
Trigger:
  • Omnipotentus 2
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Omnipotentus_Praesentia_Group and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + ((Real((Intelligence of (Casting unit) (Include bonuses)))) x 10.00)))
      • Unit Group - Pick every unit in Omni_Enemy_Group and do (Unit - Cause (Casting unit) to damage (Picked unit), dealing ((Real((Intelligence of (Casting unit) (Include bonuses)))) x 5.00) damage of attack type Spells and damage type Normal)
      • For each integer A, do 1 to (Temp_Integer)
        • Special Effect - Destroy Omni_ally_spec_effect(Loop A)
        • Special Effect - Destroy Omni_enemy_spec_effect(Loop A)
      • Set Temp_Integer to 0
      • Custom script: call DestroyGroup(udg_Omnipotentus_Praesentia_Group)
      • Custom script: call DestroyGroup(udg_Omni_Enemy_Group)

Hand written tho
pwned below hehe
 

Sonic

New Member
Reaction score
10
Try this It must work
Trigger:
  • Actions
    • Unit Group - Pick every unit in you variable and do actioms
      • set Index = Index + 1
      • Special Effect - create a special effect at point using the model
      • set SE[Index] = last created special effect





Timer Expires
Trigger:
  • Actions
    • For each Integer A from 1 to Index
      • Special Effect - Destroy SE[Integer A}
 

Lifee

New Member
Reaction score
46
I tryed one other thing,that one friend told me,it was close to your

but in trigger 2 i needed to do this :

Trigger:
  • Omnipotentus 2 Copy 2
    • Events
      • Time - Omni_Timer expires
    • Conditions
    • Actions
      • Set Omni_Index_Ally = 0
      • Unit Group - Pick every unit in Omnipotentus_Praesentia_Group and do (Actions)
        • Loop - Actions
          • Set Omni_Index_Ally = (Omni_Index_Ally + 1)
          • Special Effect - Destroy Omni_ally_spec_effect[Omni_Index_Ally]
      • Set Omni_Index_Ally = 0



Edit : thank you for trying to help me i will give you reps
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top