"Crusader" effect (chance to heal on attack)

D

domg839

Guest
I want to add a abiltiy to a weapon so when you hit someoen there is a chance to give back hp. So like a 5% chance to give the hero 100 hp.
 

waaaks!

Zinctified
Reaction score
255
theres a trigger that i didnt remembered

or jus go to Hero1231516's( the number isnt right ) stacking orb effects, he used triggers for that, like by chance... go to spells section maybe theres the thread
 

ArmedCitizen

Kisses Cats
Reaction score
198
Code:
    [U][B]Events[/B][/U]
        Unit - A unit Is attacked
    [U][B]Conditions[/B][/U]
        (Unit-type of (Attacking unit)) Equal to Crusader
    [U][B]Actions[/B][/U]
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Random integer number between 1 and 20) Equal to 1
            Then - Actions
                Unit - Create 1 Dummy Unit for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing Default building facing degrees
                Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
                Unit - Add Heal to (Last created unit)
                Unit - Order (Last created unit) to Human Priest - Heal (Attacking unit)
            Else - Actions

Then just edit heal to how much you want it to heal.
 

Squll2

je'ne sais pas
Reaction score
76
Code:
    [U][B]Events[/B][/U]
        Unit - A unit Is attacked
    [U][B]Conditions[/B][/U]
        (Unit-type of (Attacking unit)) Equal to Crusader
    [U][B]Actions[/B][/U]
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Random integer number between 1 and 20) Equal to 1
            Then - Actions
                Unit - Create 1 Dummy Unit for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing Default building facing degrees
                Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
                Unit - Add Heal to (Last created unit)
                Unit - Order (Last created unit) to Human Priest - Heal (Attacking unit)
            Else - Actions

Then just edit heal to how much you want it to heal.


not really what he asked.. :rolleyes:
read again mabye aie?

hes asking how to do the Crusader Effect (like on WoW) its not a unit.. :p

anyway i dont have WE atm so i cant really help :eek:
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
608
Try This

How about this?

crusadeil9.png
 

waaaks!

Zinctified
Reaction score
255
First create an item that u want
then change all the field to anything you want and give it to your hero

Code:
Events
        Unit - A unit Is attacked
Conditions
        Attacking unit (has item of type(Healing Sword)) equal to true
Actions
        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
                Unit - Create 1 Dummy Unit for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing Default building facing degrees
                Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
                Unit - Add Holy Light to (Last created unit)
                Unit - Order (Last created unit) to Human Paladin - Holy Light (Attacking unit)
            Else - Actions
the trigger's effect: whenever a unit owns the item, he has a chance to heal him self by 100

that should do the trick...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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