• 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] Need help with a spell help me

Status
Not open for further replies.
i got a small pr... i got 2 small problems...
1) i wanna make a spell that the caster lose life
-the spell heal all of ur own units (except the caster) anywhere in the map
-the caster lost 10% of the Max life whenever he/she uses this skill
-this skill "could" kill the caster if its overused

2)(i think i shouldn't ask this here...) i need to make an item
-give you +500 armor
-give you -1000 hp
-give you -25% movement speed
-give you 20% line of sight (LOS)
-give you +10% damage
the problem is... i can't punch in negative number ... does any1 kno how 2 overide this ... problem?
thanks!
 
Alright, I hope this helps. (Of course it will help :grin:)
 

Attachments

  • Negitive Values.jpg
    Negitive Values.jpg
    96.6 KB · Views: 108
Also, for your mass heal, I wrote you a trigger.
  • Mass Heal
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area) matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is alive) Equal to True)) and ((((Matching unit) belongs to an ally of (Owner of (Casting unit))) Equal to True) and ((Matching unit) Not equal to and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (50.00 + (10.00 x (Real((Level of Berserk for (Casting unit)))))))
          • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
          • Special Effect - Destroy (Last created special effect)
      • Unit - Set life of (Casting unit) to ((Percentage life of (Casting unit)) - 10.00)%
      • Special Effect - Create a special effect attached to the origin of (Casting unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
      • Special Effect - Destroy (Last created special effect)
Pretty simple, really :grin:
 
i got a question about the negative ... number thingy
i did wat u told me (the check box thingY)
then i went 2 the object editor, then ability, then i made a new ability based on life bonus, in the ... "editing" part, there is this "life gain" and i tried to punch in a minus sign and some number ... it still won't uhm... take in the "in put"... help me plz
 
Level 10
Joined
Sep 6, 2007
Messages
440
Your trigger won't make the caster die if his health is under %10 of his max health. There your spell goes. Well it has leaks. Expect a Jass version/MUI since I can do jass. WEEE!
  • MassHeal
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to MassHeal (2)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of (Casting unit)) Less than ((Max life of (Casting unit)) / 10.00)
        • Then - Actions
          • Special Effect - Create a special effect attached to the origin of (Casting unit) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • Unit - Order (Casting unit) to Stop
          • Unit - Kill (Casting unit)
        • Else - Actions
          • Trigger - Run Heal <gen> (ignoring conditions)
*****AND****
  • Heal
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is alive) Equal to True))) and do (Actions)
        • Loop - Actions
          • Unit - Cause (Casting unit) to damage (Casting unit), dealing ((Max life of (Casting unit)) / 10.00) damage of attack type Spells and damage type Normal
          • Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Position of (Picked unit)) facing Default building facing degrees
          • Unit - Order (Last created unit) to Human Priest - Heal (Picked unit)
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
          • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • -------- Above Trigger is to delete the heal's bonus. Set it to Dummy unit's heal amount. --------
      • Trigger - Turn off (This trigger)
The one above is NOT INITIALLY ON SO tick it when you copy it. I felt like adding a map too. :grin: Just in case you do something wrong -.-
 

Attachments

  • MassHeal.w3x
    18.3 KB · Views: 45
Status
Not open for further replies.
Top