• 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.

Another ability I need help with~

Status
Not open for further replies.
Level 7
Joined
Dec 14, 2012
Messages
192
Creating an Armor-reducing field on Attack

Hello~

I need help with a certain ability "acidious bile".
The Ability is simple: It is based off the Orc Ability "Burning Oil", creating a damaging field on attacks.
I want to add to my ability, that it also reduces armor for units, which are taking damage from this ability.
I tried, with my limited knowledge of triggers, to create this ability. After all, I would merely have to add the armor-reducing debuff to the ability. However, I cannot figure out how to do it~ I couldn't find a function, that reduces armor and I do not know how handle such AoE spells with triggers. Also, I am always bit confused~ Does "Starts the effect of an ability" also apply to such passive on-hit effects?
If someone could explain to me how to do it or show me an example, I would be grateful.

I also already tried it with the Meat Wagons' Disease Cloud, creating an invisible unit on hit that is unmovable, lasts for 4 seconds and reduces enemies' armor through Negative Devotion Aura.
Problem is, for some reason, not even the normal Meatwagon-skill takes effect. Not at all. I really cannot figure out why, though(Sat there for half an hour, testing things).
 
Last edited:
Level 7
Joined
Dec 14, 2012
Messages
192
I suggest you rather base it on the Meat Wagon's Disease Cloud, which creates a unit on attack.

Give this unit a Permanent Immolation-based ability for the damage field, and a Devotion Aura-based ability for the armour reduction.
Using a dummy unit, I guess? Well, that seems possible. I only hope the animation will still look as nice~
 
Level 7
Joined
Dec 14, 2012
Messages
192
I suggest you rather base it on the Meat Wagon's Disease Cloud, which creates a unit on attack.

Give this unit a Permanent Immolation-based ability for the damage field, and a Devotion Aura-based ability for the armour reduction.
Tried it and for some reason, it does not work at all.
I don't know why but~ The attacks of my unit simply do not spawn the disease cloud or any other unit. I changed things around, tried a lot, but it simply does not work.
 
Level 7
Joined
Dec 14, 2012
Messages
192
post your triggers

I have no triggers so far, as nothing works at all.
I couldn't find a function that reduces armor - and that's the main problem. If I would find something like that, I could easily create a trigger to reduce the armor of units with the corresponding buff~
 
Level 7
Joined
Dec 14, 2012
Messages
192
I'm just going to refer you to a previous post I made in another thread:
#3
Hm~ I see what you are getting at but~ How exactly is this done then? I mean, I need an on-hit-AoE-armor-reduce. As I mentioned, I am not that experienced with triggering at all, so some outlining and elaborating would be necessary ^^"
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
Well in order to add an item ability to a unit you have to use a Jass custom script line.

This script line looks like this:
  • Custom script: call UnitAddAbility(udg_your_unit, 'ABIL')
udg_your_unit is a unit variable in GUI called: your_unit.
You set it to the unit that got hit.
(remember that in order to get an on-hit event you need to use something that is called a: damage detection system)

the 'ABIL' is the RAW code of an ability. To see the RAW code of an ability inside the object editor, press ctrl+d.
I think in this case you want to use: 'AId1' which increases or decreases defense.

You do need to realise that the best way of adding these values is by using a BonusMod library. Because you probably want to have different values that you want to add or remove, in which case you need some objects in your object editor that you can add.

A library usually has a documentation at the top of the code explaining which functions can be called from Jass in order to use it.

Here is a BonusMod library: http://www.hiveworkshop.com/forums/graveyard-418/system-bonus-mod-setunitmaxstate-65622/

These library's are graveyarded because Lua doesn't work anymore (a coding language that enables you to create objects in your object editor without having to do anything manually). You can however still import the objects from the map inside your map and use those with the library.

To see how you can use these library's look at my custom script on how it's used and look at the top comments inside the library's.

This is a bit hard to do if you have no experience in triggering so far, so I suggest you learn a bit more about triggering and Jass in general before attempting this.

Trigger (GUI) Editor Tutorials
JASS/AI Scripts Tutorials
 
Level 7
Joined
Dec 14, 2012
Messages
192
Hm, i see, this surely seems rather complex.
Then, I'd like to ask: Are there no other methods to create the ability? Or could you create this skill for me then? I tend to learn well with examples and also, I would at least have the ability then. It would only be important to tell/show me, how to manipulate the armor reduction and the radius(for balancing reasons, mainly)
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
The thing is: you'll need a different ability for the amount of armor added to the units if you want to do it in a simple way.
It's rather simple to accomplish this. Simply base the ability off Defense and set it to different values. Then use the custom script I showed earlier to add the ability to the unit.

If you want to do this dynamically through code then you should use the BonusMod library I mentioned.
This mod basically creates a few items that utilize stats with a power of two in which case you don't need a HUGE amount of objects in your object editor for all the different stats in order to add it to the unit.

I'll give an example when I get home. I don't have the editor here.
 
Level 7
Joined
Dec 14, 2012
Messages
192
The thing is: you'll need a different ability for the amount of armor added to the units if you want to do it in a simple way.
It's rather simple to accomplish this. Simply base the ability off Defense and set it to different values. Then use the custom script I showed earlier to add the ability to the unit.

If you want to do this dynamically through code then you should use the BonusMod library I mentioned.
This mod basically creates a few items that utilize stats with a power of two in which case you don't need a HUGE amount of objects in your object editor for all the different stats in order to add it to the unit.

I'll give an example when I get home. I don't have the editor here.
Okay, thank you very much for the upcoming example. It will surely be helpful~ So thank you again^^ Hopefully I get to create this ability~

Sidequestion: Do you have any idea, why the meatwagons' disease cloud ability won't work? The unit I use(Siege Hydra) is also a siege unit with attack-type artillery and well~ It just does not work at all. It would be easy if it would work(I'd simply need to adjust the unit spawned a little bit)
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
Okay, thank you very much for the upcoming example. It will surely be helpful~ So thank you again^^ Hopefully I get to create this ability~

Sidequestion: Do you have any idea, why the meatwagons' disease cloud ability won't work? The unit I use(Siege Hydra) is also a siege unit with attack-type artillery and well~ It just does not work at all. It would be easy if it would work(I'd simply need to adjust the unit spawned a little bit)

@Lucy: another option is what rulerofiron99 suggested for the armor:
use a negative value with devotion aura. http://www.hiveworkshop.com/forums/world-editor-help-zone-98/can-i-reduce-armor-devotion-aura-86355/
This probably accomplishes the same thing that can be accomplished through adding the Defense item ability.
(which is better but harder to accomplish, the defense item ability can stack... Devotion aura can not.)

I'm not sure about the disease cloud ability. I'm not so famillair with it.
 
Level 7
Joined
Dec 14, 2012
Messages
192
@Lucy: another option is what rulerofiron99 suggested for the armor:
use a negative value with devotion aura. http://www.hiveworkshop.com/forums/world-editor-help-zone-98/can-i-reduce-armor-devotion-aura-86355/
This probably accomplishes the same thing that can be accomplished through adding the Defense item ability.
(which is better but harder to accomplish, the defense item ability can stack... Devotion aura can not.)

I'm not sure about the disease cloud ability. I'm not so famillair with it.
Well, the ability itself wouldn't need any stacking anyway. Using the devotion aura, I would need to be able to create a dummyunit at the center of the attack, that has a customized devotion aura. As the Disease Cloud does not work for some reason I do not understand, I probably would have to trigger that effect. However, I do not know how to trigger that effect exactly~ I searched around and found no way.

Another thing I thought about is: Checking for buffs and reducing the armor of any unit with the corresponding buff~ As the field also gives a buff, it would be possible. Problem is, I do not know which event to use for that, as I cannot target any specefic unit, and that I do not know how to reduce armor via triggers.
 
Status
Not open for further replies.
Top