Making passive aoe damage share

_markone_

New Member
Reaction score
0
i would like to make sth like passive spirit link, but not like chain, to be area effect around one who have spell

any ideas??
 
Make it based on an aura that you don't use anyway and set it's data to "0".
Code:
Events
    >your unit< takes damage
Condition
    Level of (Aura) for (Triggering Unit) is not equal to 0
Action
    set unitgroup_var = Every unit within *aoe* of (Triggering Unit) matching (((Matching Unit) has buff "spirit link") equal to true) [COLOR="Lime"]and ((owner of (Matching Unit) is equal to owner of (Triggering Unit) equal to true)[/COLOR] [size=-1]// the green only if you want to make it 1 player only.[/size]
    set integer_var = number of units in unitgroup_var
    set real_var = (Damage Taken) / integer_var
    unit - set hp of (Triggering Unit) to (Current hp of (Triggering Unit) + Real(Damage Taken))
    Unit Group - Pick every unit in unitgroup_var
        Unit - order (Damage Source) to damage (Picked Unit) dealing real_var damage of type [U]"whatever you want[/U]"
    Custom Script: (call DestroyGroup (udg_unitgroup_var))

Disadvantage: this is MPI, not MUI.

frozenwind.
 
well that solve the some part of problem, thx a lot,
but how should i make this work for all units who are in area...

i mean:
if some of units in area are attacked should be shared damage too, not just share attacks of one who have spell?
 
This trigger takes all units that have the buff you want,
and they share the damage.

frozenwind.
 
thats isnt mui...., where do you find - takes damage? oO

make another trigger and do it like
Code:
E)map ini......
C)
A) 
pick evry unit in entier map and do
       trigger - add new event to (frozenwinds trigger) picked unit take damage


trigger 2
Code:
E) unit enter entier map
C)
A) trigger - add new event to (frozenwinds trigger) entering unit take damage
 
check takes damage on all units on map... wont that lag a lot??

dont think soo... becuse all unit on the map hopefull and probobly dont tke damage at same time oO
and if it do, add a unit type condition oO

offtopic: lol 444 postes, waiting for +222 postes oO
 
You should just try it, it at least can't bug since they can't attack all withing 1,0x10^-6 second at once:)

frozenwind.
 
it doesnt lagg for me atlest oO
had up to 141heroes at smae time oO
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top