Chain Heal Spell

Manee

New Member
Reaction score
20
i'm confused =/

doesn't this line detects those who are near the attacked unit(500 AoE) that are:

a) unit is an ally of the attacked unit
b) has chain heal level 1
c) researched level of chain heal upgrade for the owner of this unit is level 1
d) unit should be alive

Code:
Set ChainHealGroup = (Units within 500.00 of TempPoint matching ((((Matching unit) belongs to an ally of (Owner of (Attacked unit))) Equal to True) and (((Level of Chain Heal dummy for (Matching unit)) Equal to 1) and (((Current research level of Chain Heal  for (Owner of (Matching Unit)) Equal to 1 and ((Matching Unit) is alive) Equal to True

? =/

i found the condition but i do not know where to find the Unit of Type (Wizard) for the condition
 

Expelliarmus

Where to change the sig?
Reaction score
48
Ok, now I'm confused @_@.
Whenever a unit near(500 AoE) the Wizard is attacked, there is a chance that the wizard will cast chain heal on that unit

Code:
doesn't this line detects those who are near the attacked unit(500 AoE) that are
yes it does, but why the conditions?
- has chain heal level 1
- researched level of chain heal upgrade for the owner of this unit is level 1

Are they used to detect the Wizard? If so, I don't think it will work (yet). Since this grouping's condition isolates the possibilities of being a Wizard 500.0 nearby, add an action that checks if ChainHealGroup is not empty, then follow on with your actions.
 

Manee

New Member
Reaction score
20
"yes it does, but why the conditions?
- has chain heal level 1
- researched level of chain heal upgrade for the owner of this unit is level 1"

coz a certain upgrade must be researched 1st be4 the skill may be unlocked

ok i made a new trigger to supervise my other trigger


new trigger:
Code:
Wizard Check
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Set GroupWizard = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Wizard))
        Unit Group - Pick every unit in GroupWizard and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is dead) Equal to True
                    Then - Actions
                        Unit - Remove Chain Heal dummy from (Picked unit)
                    Else - Actions
        Custom script:   call DestroyGroup (udg_GroupWizard)

old trigger:

Code:
Chain Heal
    Events
        Unit - A unit Is attacked
    Conditions
    Actions
        Set TempPoint = (Position of (Attacked unit))
        Set ChainHealGroup = (Units within 500.00 of TempPoint matching ((((Matching unit) belongs to an ally of (Owner of (Attacked unit))) Equal to True) and (((Level of Chain Heal dummy for (Matching unit)) Equal to 1) and (((Current research level of Chain Heal  for (Owner of (Matching Unit)) Equal to 1 and ((Matching Unit) is alive) Equal to True
        Unit Group - Pick every unit in ChainHealGroup and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Random integer number between 1 and 100) Equal to 5
                    Then - Actions
                        Set TempPoint2 = (Position of (Picked unit))
                        Unit - Create 1 Chain Heal Dummy for (Owner of (Attacked unit)) at TempPoint2 facing Default building facing degrees
                        Unit - Add a 4.00 second Generic expiration timer to (Last created unit)
                        Unit - Add Chain Heal  to (Last created unit)
                        Unit - Order (Last created unit) to Orc Shadow Hunter - Healing Wave (Attacked unit)
                        Custom script:   call RemoveLocation (udg_TempPoint)
                        Custom script:   call RemoveLocation (udg_TempPoint2)
                        Custom script:   call DestroyGroup (udg_ChainHealGroup)
                    Else - Actions


but the new trigger doesn't work T_T
 

Cheddar

This is the way it was meant to be.
Reaction score
126
Remove the unit when it dies... unless that will be problematic

Doesn't your Undead race use corpses? I forget :confused:
 

Manee

New Member
Reaction score
20
yes, undeads do use corpses so the one ur suggesting will cause problems XD
 

Cheddar

This is the way it was meant to be.
Reaction score
126
Ooh! I got it!

Remove Chain Heal from any Sorceresses that die! Then they don't fit the condition!

Look at me, all proud of myself :D
 

Cheddar

This is the way it was meant to be.
Reaction score
126
Oh, guess I shoulda read...

I think this was suggested before, but just slip in another condition in the old trigger: "(Matching unit) is Dead equal to False"
 

Manee

New Member
Reaction score
20
this one?

Code:
Set ChainHealGroup = (Units within 500.00 of TempPoint matching ((((Matching unit) belongs to an ally of (Owner of (Attacked unit))) Equal to True) and (((Level of Chain Heal dummy for (Matching unit)) Equal to 1) and (((Current research level of Chain Heal  for (Owner of (Matching Unit)) Equal to 1 and ((Matching Unit) is alive) Equal to True

sry that line was cut inpost before my previous one(i've edited it now)
 

Cheddar

This is the way it was meant to be.
Reaction score
126
Mm-hmm. You've got the right conditon.

Should work, if not, we'll do a bit more problem-solving. Tons of other solutions out there, but why not go with the simplest one first?
 

Manee

New Member
Reaction score
20
Mm-hmm. You've got the right conditon.

Should work, if not, we'll do a bit more problem-solving. Tons of other solutions out there, but why not go with the simplest one first?

and the simplest solution is??
 

Cheddar

This is the way it was meant to be.
Reaction score
126
Suggested one, the "unit is dead".

If that one doesn't work, just say the word. We've got more tricks than... uh... a clown (Bad analogy)
 
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