• 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 GUI skill

Status
Not open for further replies.
Level 4
Joined
Aug 4, 2008
Messages
76
I'm making a skill which will reduce the armor of any unit (the unit will be hero in this certain map), by 23%.

I set one variable for the caster, one for the targeted Hero but I can't set the variable for the armor reduce... So I could do like this:

Armor_reduce = Real(armor of (variable) - (23/100))

Any ideas???
 
Level 4
Joined
Sep 22, 2011
Messages
70
Unfortunatly, to my knowledge there is no ability or upgrade in the game that reduces armor by a PERCENTAGE, however, if you want an ability to simply reduce armor, you could use farie fire or something like that, however I dont think theres anyway to make it take a percentage of armor away.
 
Level 4
Joined
Aug 4, 2008
Messages
76
That would be far easier indeed, I tried it already but I need a specific percentage... ANyway thx very much for ur help!!!
 
Level 4
Joined
Aug 4, 2008
Messages
76
Bump

I want to make a skill which will shoot two arrow... One behind from the other but with 2-3 secs delay from each other.

Any idea?
 
Level 4
Joined
Sep 22, 2011
Messages
70
make 2 abilities, same exact ability, one with a 2sec cast time(or however long u want the delay to be)
make the trigger
  • Example
  • Events
    • Event - A unit finishes casting an ability
  • Conditions
    • Condition - (Ability being cast) Equal to Shoot Arrow
  • Actions
    • Set CasterPoint = Position of (triggering unit)
    • Set TargetUnit = Target of (ability being cast)
    • Unit - Create 1 ArrowDummy for (Owner of (triggering unit)) at CasterPoint facign default building degrees
    • Unit - Order (Last created unit) to <Base Spell/UseOrderstring>
    • Unit - Add a <delay(spell cast time)+0.5(or 1.0)> second Generic expiration timer to (Last created unit)
    • Custom script: call RemoveLocation(udg_CasterPoint)
    • Custom script: call DestroyGroup(udg_TargetUnit)
CasterPoint is a Point Variable, which will be equal to the position of the unit casting the arrow spell.
TargetUnit is a Unit-Group variable, which will be equal to the target of the first arrow ability.
ArrowDummy is a standard Dummy-unit, which will also have the second arrow ability.(THE ONE WITH THE CAST TIME)
The Caster Unit will have the first arrow ability(One with no cast time)

If you want the base ability to also have a cast time, put it in, then add the cast time to the 2-3(or howevermany) sec u set for the dummy-ability. 2sec cast time for base ability should = 4sec cast time to dummy ability, meaning a 2sec delay between arrows.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
There is nothing impossible.

Download the test map below

It contains Reduce Armor by Percentage spell in it

Just edit these values for controlled testing:
Devotion Aura
Data - Armor Bonus (if you change it to 0.50, it will reduce up to 25% armor, if you change it 1.00, it will reduce up to 50%, and so on)

Reduce Armor Percentage
Stats - Targets Allowed (edit to suit your liking)

It is fully MUI.
 

Attachments

  • Reduce Armor Percentage.w3x
    13.8 KB · Views: 62
Level 4
Joined
Sep 22, 2011
Messages
70
No prob, if you have any issues with what i suggested just PM me or reply on this thread and i'll create a test map for you and make it work then upload it for ya.
 
Status
Not open for further replies.
Top