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

Zone Buff

Status
Not open for further replies.
Level 3
Joined
Feb 29, 2012
Messages
26
Hello im Ncthechurch and i am currently working on a mod. However i have run into 2 small problems and i am wondering if any experianced Editor could help me with this.

Alrighty so first problem. I want to make a spell which works like this:

Unit activates the spell, placing a ward on a selected area. While in this area the Unit which used the spell gains some buffs.

So here is what i have tried so far.

1. Adding buff auras to the ward it self. However by doing this then that means that all allied units also gain the buff when only the caster is supposed to gain the buff.

2. Triggers. I am not super experienced with triggers. The most advanced one i have made is a knock back spell :3 but i tried anyway by trying to spawn a Region at the selected area around the ward. No such option was available.

SECOND SPELL.

nothing much just a minor question. I want to make an item which reduces healing effects on target with the use of an ACTIVE ability however i found no spell in the game which i could base it off.

Thanks in advance

-Nc The Church
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
nothing much just a minor question. I want to make an item which reduces healing effects on target with the use of an ACTIVE ability however i found no spell in the game which i could base it off.

Thanks in advance

-Nc The Church

because u can decrease the life regeneration rate but for decrease overall healing rate u must do a system+need unit indexer and u must trigger every heal sepll what u use.

example
(dummy abilities are based on channel and unit target, visible etc, so like dummy ability in general)

  • Decrease Heal
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to *your dummy decrease heal ability*
    • Actions
      • Set HealRate[(Custom value of (Target unit of ability being cast))] = (HealRate[(Custom value of (Target unit of ability being cast))] - 0.10)
  • Heal ability
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to *your dummy heal ability*
    • Actions
      • -------- set heal rate --------
      • Set Heal = ((Real((Level of (Ability being cast) for (Triggering unit)))) x 100.00)
      • -------- reduce the heal --------
      • Set Heal = (Heal x (1.00 + HealRate[(Custom value of (Target unit of ability being cast))]))
      • -------- execute the heal --------
      • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + Heal)
      • -------- make special effect --------
      • Special Effect - Create a special effect attached to the overhead of (Target unit of ability being cast) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
      • Special Effect - Destroy (Last created special effect)
spawn a Region at the selected area around the ward

  • Summon ward
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to Sentry Ward
    • Actions
      • Set point = (Position of (Summoned unit))
      • Set Region[(Player number of (Triggering player))] = (Region centered at point with size (100.00, 100.00))
      • Custom script: call RemoveLcation(udg_point)
 
Status
Not open for further replies.
Top