• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Help with my spell: Hexing Bolt

Status
Not open for further replies.
Level 11
Joined
May 13, 2010
Messages
167
Hello there! my recently created spell is not working and i really want to finish it and upload it here on hive, lil' help?

Spell description:

Throws an enchanced bolt. The bolt flyes across the battlefield until it reaches its target, damaging it by X times the intelligence of the hero, where X is the ability level of Hexing Bolt. Once the bolt hits its target, there is a chance to hex it for a short period of time (lasts less on heroes) and another 35% chances of creating a fresh new bolt to seek for new targets in a 200 units AoE. The bolts are perishable.

Level 1 - 15% chance to hex for 4 seconds. Each bolt lasts 6 seconds.
Level 2 - 30% chance to hex for 8 seconds. Each bolt lasts 12 seconds.
Level 3 - 45% chance to hex for 12 seconds. Each bolt lasts 18 seconds.


Triggers:

  • HexingBolt Init
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to |cff99b4d1Hexing Bolt|r
    • Actions
      • -------- Here we set the basic configuration: Caster, Target, Locations, Spell Damage, Missile Duration and Hex Chance (change if needed) --------
      • Set HBcaster = (Triggering unit)
      • Set HBtarget = (Targeted unit)
      • Set HBlocation[1] = (Position of HBcaster)
      • Set HBlocation[2] = (Position of HBtarget)
      • Set HBdamage = ((Real((Intelligence of HBcaster (Include bonuses)))) x (Real((Level of |cff99b4d1Hexing Bolt|r for HBcaster))))
      • Set HBduration = ((Real((Level of |cff99b4d1Hexing Bolt|r for HBcaster))) x 6.00)
      • Set HBhexchance = ((Real((Level of |cff99b4d1Hexing Bolt|r for HBcaster))) x 15.00)
      • -------- Do not touch anything below this line unless you know what you are doing --------
      • Unit - Create 1 HexingBolt Dummy for (Owner of HBcaster) at HBlocation[1] facing Default building facing degrees
      • Set HBdummy = (Last created unit)
      • Unit - Add a HBduration second Generic expiration timer to HBdummy
      • Unit - Add Hex (Dummy) to HBdummy
      • Unit - Set level of Hex (Dummy) for HBdummy to (Level of |cff99b4d1Hexing Bolt|r for HBcaster)
      • Unit - Order HBdummy to Move To HBlocation[2]
  • HexingBolt Loop
    • Events
      • Time - Every 0.06 seconds of game time
    • Conditions
      • (Distance between (Position of HBdummy) and (Position of HBtarget)) Less than or equal to 10.00
    • Actions
      • -------- Do not touch anything below this line unless you know what you are doing --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random real number between 0.00 and 100.00) Less than or equal to HBhexchance
        • Then - Actions
          • Unit - Order HBdummy to Orc Shadow Hunter - Hex HBtarget
          • Unit - Remove HBdummy from the game
          • Special Effect - Create a special effect attached to the origin of HBtarget using Abilities\Spells\Items\AIil\AIilTarget.mdl
          • Unit - Cause HBcaster to damage HBtarget, dealing HBdamage damage of attack type Spells and damage type Normal
          • Special Effect - Destroy (Last created special effect)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random real number between 0.00 and 100.00) Less than or equal to 35.00
            • Then - Actions
              • Unit - Create 1 HexingBolt Dummy for (Owner of HBcaster) at HBlocation[2] facing Default building facing degrees
              • Set HBdummy = (Last created unit)
              • Set HBlocation[2] = (Position of (Random unit from (Units within 200.00 of HBlocation[2] matching (((Triggering unit) belongs to an enemy of (Owner of HBdummy)) Equal to True))))
              • Unit - Add a HBduration second Generic expiration timer to HBdummy
              • Unit - Add Hex (Dummy) to HBdummy
              • Unit - Set level of Hex (Dummy) for HBdummy to (Level of |cff99b4d1Hexing Bolt|r for HBcaster)
              • Unit - Order HBdummy to Move To HBlocation[2]
            • Else - Actions
        • Else - Actions
          • Unit - Remove HBdummy from the game
          • Special Effect - Create a special effect attached to the origin of HBtarget using Abilities\Spells\Items\AIil\AIilTarget.mdl
          • Unit - Cause HBcaster to damage HBtarget, dealing HBdamage damage of attack type Spells and damage type Normal
          • Special Effect - Destroy (Last created special effect)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random real number between 0.00 and 100.00) Less than or equal to 35.00
            • Then - Actions
              • Unit - Create 1 HexingBolt Dummy for (Owner of HBcaster) at HBlocation[2] facing Default building facing degrees
              • Set HBdummy = (Last created unit)
              • Set HBlocation[2] = (Position of (Random unit from (Units within 200.00 of HBlocation[2] matching (((Triggering unit) belongs to an enemy of (Owner of HBdummy)) Equal to True))))
              • Unit - Add a HBduration second Generic expiration timer to HBdummy
              • Unit - Add Hex (Dummy) to HBdummy
              • Unit - Set level of Hex (Dummy) for HBdummy to (Level of |cff99b4d1Hexing Bolt|r for HBcaster)
              • Unit - Order HBdummy to Move To HBlocation[2]
            • Else - Actions
The orb just stands there and dies when it has to (doesn't move at all), but without damaging or hexing anyone.

The skill is based on Storm Bolt, and the movespeed of the orb dummy is 400. I can upload the test map if needed.

Also, i am not sure how to spot and delete leaks, help with this will also be very kind! :D Cheers!

Nobody?
 
Last edited by a moderator:
Level 7
Joined
Jan 28, 2012
Messages
266
well targeted unit should be changed to spelltarget, to make it move,

You shouldn't order the bolt to move to a point you should order it to attack the target unit, that way it tracks


Also before thinking about uploading anything to the spells section you need to make it MUI, as in you can have multiple casts going on at the same time.

also you are leaking a lot of points.
 
Status
Not open for further replies.
Top