1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  4. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  5. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  6. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  7. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  8. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Trigger] Spell won't work as intended

Discussion in 'Triggers & Scripts' started by biHmapmaker, Jul 26, 2012.

  1. biHmapmaker

    biHmapmaker

    Joined:
    Oct 10, 2009
    Messages:
    99
    Resources:
    0
    Resources:
    0
    Triggers
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Shadow Souls
    • Actions
      • Set SS_caster_target[0] = (Casting unit)
      • Set SS_caster_target[1] = (Targeted unit)
      • Set SS_damage_leech[0] = (120 + (Intelligence of SS_caster_target[0] (Include bonuses)))
      • Set SS_damage_leech[1] = (20 + (Intelligence of SS_caster_target[0] (Exclude bonuses)))
      • Set SS_points[0] = (Position of SS_caster_target[0])
      • Set SS_points[1] = (Position of SS_caster_target[1])
      • Sound - Play HeroLichYesAttack1 <gen> at 100.00% volume, attached to SS_caster_target[0]
      • Special Effect - Create a special effect attached to the chest of SS_caster_target[0] using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Special Effect - Create a special effect at SS_points[1] using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Cause SS_caster_target[0] to damage SS_caster_target[1], dealing (Real(SS_damage_leech[0])) damage of attack type Spells and damage type Shadow Strike
      • Unit - Set life of SS_caster_target[0] to ((Life of SS_caster_target[0]) + (Real(SS_damage_leech[1])))
      • Special Effect - Create a special effect attached to the overhead of SS_caster_target[0] using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation(udg_SS_points[0])
      • Custom script: call RemoveLocation(udg_SS_points[1])


    Spell does heal as intended and every special effect works, but it doesn't deal damage. It is based on "Chain of Lighting" spell and the number of targets is 3. I know that it has something to to with targets variables but can't click what. Thanks in advance.
     
  2. claptomanic

    claptomanic

    Joined:
    Jul 10, 2011
    Messages:
    562
    Resources:
    0
    Resources:
    0
    dont use targeted unit use target of ability being cast^^ then itll work xD
     
  3. biHmapmaker

    biHmapmaker

    Joined:
    Oct 10, 2009
    Messages:
    99
    Resources:
    0
    Resources:
    0
    Tnx :=)