Need help getting custom spells working.

Haxxors

New Member
Reaction score
1
I just made a few custom spells that i'm trying to get to work, and i'm pretty noob at all of this so there are definitley problems lol.

I'll post the triggers for the spells and what the spells are supposed to do so hopefully you guys can tell me what I did wrong. Thanks! :D


1. This ability now works and needs checked for leaks or ways to make it more efficient.

Code:
Taunting Blow
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Taunting Blow 
    Actions
        Set TauntingBlowCaster = (Triggering unit)
        Set TauntingBlowCasterLoc = (Position of (Triggering unit))
        Set TauntingBlowTarget[12] = (Target unit of ability being cast)
        Set TauntingBlowDamageReal[12] = (50.00 x (Real((Level of Taunting Blow  for TauntingBlowCaster))))
        Set TauntingBlowTaunt = (Units within 500.00 of TauntingBlowCasterLoc matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True))
        Special Effect - Create a special effect attached to the head of TauntingBlowTarget[12] using Abilities\Spells\Orc\Devour\DevourEffectArt.mdl
        Special Effect - Destroy (Last created special effect)
        Unit - Cause TauntingBlowCaster to damage TauntingBlowTarget[12], dealing TauntingBlowDamageReal[12] damage of attack type Normal and damage type Normal
        Unit Group - Pick every unit in TauntingBlowTaunt and do (Actions)
            Loop - Actions
                Unit Group - Order TauntingBlowTaunt to Attack Once TauntingBlowCaster
                Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Other\HowlOfTerror\HowlCaster.mdl
                Special Effect - Destroy (Last created special effect)
        Custom script:   call RemoveLocation (udg_TauntingBlowCasterLoc)
        Custom script:   call DestroyGroup (udg_TauntingBlowTaunt)


2. This next ability is supposed to cause damage to units around the target unit. I can't get any part of it to work, not even the damage or the animations.

Code:
Holocaust
    Events
        Unit - A unit Stops casting an ability
    Conditions
        (Ability being cast) Equal to Holocaust 
    Actions
        Set HolocaustCaster = (Triggering unit)
        Set HolocaustTarget[12] = (Target unit of ability being cast)
        Set HolocaustTargetLoc = (Position of HolocaustTarget[12])
        Set HolocaustGroup = (Units within 300.00 of HolocaustTargetLoc matching (((Matching unit) belongs to an ally of (Owner of HolocaustTarget[12])) Equal to True))
        Set HolocaustDamage[12] = (150.00 x (Real((Level of Holocaust  for HolocaustCaster))))
        Special Effect - Create a special effect attached to the origin of HolocaustTarget[12] using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
        Special Effect - Destroy (Last created special effect)
        Unit - Cause (Damage source) to damage circular area after 2.00 seconds of radius 300.00 at HolocaustTargetLoc, dealing HolocaustDamage[12] damage of attack type Normal and damage type Normal
        Unit Group - Pick every unit in HolocaustGroup and do (Actions)
            Loop - Actions
                Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
                Special Effect - Destroy (Last created special effect)
        Custom script:   call RemoveLocation (udg_HolocaustTargetLoc)
        Custom script:   call DestroyGroup (udg_HolocaustGroup)



3. This next ability is my most incomplete, because my noob triggering brain has no idea what to do. I'm trying to give a unit a passive effect to be healed for an amount. So like, when a unit is hit by an enemy, there is a chance that the unit being hit will heal. I also want this spell to be 3 ranks. This Is all I have so far, and yes I know it is terrible lol.

Code:
Regenerating Armor
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Regenerating Armor 
        (Level of Regenerating Armor  for (Triggering unit)) Equal to 1
    Actions
        Set RegeneratingArmorCaster = (Triggering unit)
        Set RegeneratingArmorCasterLoc = (Position of RegeneratingArmorCaster)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Random integer number between 1 and 100) Less than or equal to 5
            Then - Actions
                Special Effect - Create a special effect at RegeneratingArmorCasterLoc using Abilities\Spells\Undead\ReplenishMana\SpiritTouchTarget.mdl
                Set Sfx6 = (Last created special effect)
                Special Effect - Destroy Sfx6
                Unit - Set life of UnitVarCaster12 to ((Life of RegeneratingArmorCaster) + 100.00)
            Else - Actions
                Do nothing
        Custom script:   call RemoveLocation (udg_RegeneratingArmorCasterLoc)


4. This ability now works and needs checked for leaks and ways to make it more effecient.

Code:
Holy Storm
    Events
        Unit - A unit Begins channeling an ability
    Conditions
        (Ability being cast) Equal to Holy Storm 
    Actions
        Set HolyStormCaster = (Triggering unit)
        Set HolyStormLoc = (Position of (Triggering unit))
        Set HolyStormGroup = (Units within 900.00 of HolyStormLoc matching (((Matching unit) belongs to an ally of (Owner of (Casting unit))) Equal to True))
        Set HolyStormEnemyGroup = (Units within 300.00 of HolyStormLoc matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True))
        Set HolyStormDamage[12] = (125.00 x (Real((Level of Holy Storm  for HolyStormCaster))))
        Special Effect - Create a special effect attached to the origin of HolyStormCaster using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
        Set Sfx7 = (Last created special effect)
        Wait 1.00 game-time seconds
        Special Effect - Destroy Sfx7
        Unit Group - Pick every unit in HolyStormEnemyGroup and do (Actions)
            Loop - Actions
                Unit - Cause HolyStormCaster to damage (Picked unit), dealing HolyStormDamage[12] damage of attack type Normal and damage type Normal
        Unit Group - Pick every unit in HolyStormGroup and do (Actions)
            Loop - Actions
                Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 150.00)
                Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\Heal\HealTarget.mdl
                Special Effect - Destroy (Last created special effect)
        Custom script:   call RemoveLocation (udg_HolyStormLoc)
        Custom script:   call DestroyGroup (udg_HolyStormGroup)
        Custom script:   call DestroyGroup (udg_HolyStormEnemyGroup)

Thanks everyone :D
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Here's the first one working i believe:
Trigger:
  • Taunting Blow
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Taunting Blow
    • Actions
      • Set Caster = (Triggering unit)
      • Set Target = (Target unit of ability being cast)
      • Set TempPoint = (Position of Caster)
      • Set Temp_Group = (Units within 500.00 of TempPoint matching (((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True))
      • Set Temp_Real = (50.00 x (Real((Level of Taunting Blow for Caster))))
      • Special Effect - Create a special effect attached to the origin of Target using Abilities\Spells\Orc\Devour\DevourEffectArt.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Cause Caster to damage Target, dealing Temp_Real damage of attack type Normal and damage type Normal
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack Target
          • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Other\HowlOfTerror\HowlCaster.mdl
          • Special Effect - Destroy (Last created special effect)
      • Custom script: call DestroyGroup(udg_Temp_Group)
      • Custom script: call RemoveLocation(udg_TempPoint)

And btw, you set position of target but you never used it XD lol, and you mixed both Triggering Unit, Casting Unit and your variable for it, lol why ???

And will check the other ones too ;)
 

13lade619

is now a game developer :)
Reaction score
398
w8.. reading..

1,2 : Waits are not allowed in UnitGroup Loops.

4 : spin is an animation of the blademaster only.
if you're unit is the blademaster, the string is "Attack,Walk,Stand,Spin"

more tips.. use more variables like target of ability.
 

Haxxors

New Member
Reaction score
1
Thanks for the help, I was able to get Holy Storm and Taunting Blow up and running.

I just need to get the other two spells working now :O
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      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