AoE stat based damage

Angel_Island

Much long, many time, wow
Reaction score
56
2 things.

1. Don't bump within 24 hours.

2. Try making bladestorm with 0 damage target yourself. Maybe that will give a buff on the caster.
 
Reaction score
149
Base your spell of Besrserk
Code:
AOE register
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Berserk
    Actions
        Unit Group - Add (Triggering unit) to castGroup

Code:
Periodic damage
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in castGroup and do (Actions)
            Loop - Actions
                Set tempUnit = (Picked unit)
                Set tempPoint = (Position of tempUnit)
                Set tempGroup = (Units within 512.00 of tempPoint matching ((((Matching unit) belongs to an enemy of (Owner of tempUnit)) Equal to True) and (((Matching unit) is alive) Equal to True)))
                Unit Group - Pick every unit in tempGroup and do (Actions)
                    Loop - Actions
                        Unit - Cause (tempUnit) to damage (Picked unit), dealing (300.00 + (0.50 x (Real((Strength of tempUnit (Include bonuses)))))) damage of attack type Spells and damage type Normal
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((tempUnit) has buff Berserk) Equal to False
                    Then - Actions
                        Unit Group - Remove (tempUnit) from castGroup
                    Else - Actions
                Custom script:   call RemoveLocation(udg_tempPoint)
                Custom script:   call DestroyGroup(udg_tempGroup)

tempPoint - Point variable
tempGroup and castGroup - Unit group variables
 

guneruh

Member
Reaction score
1
Base your spell of Besrserk
Code:
AOE register
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Berserk
    Actions
        Unit Group - Add (Triggering unit) to castGroup

Code:
Periodic damage
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in castGroup and do (Actions)
            Loop - Actions
                Set tempUnit = (Picked unit)
                Set tempPoint = (Position of tempUnit)
                Set tempGroup = (Units within 512.00 of tempPoint matching ((((Matching unit) belongs to an enemy of (Owner of tempUnit)) Equal to True) and (((Matching unit) is alive) Equal to True)))
                Unit Group - Pick every unit in tempGroup and do (Actions)
                    Loop - Actions
                        Unit - Cause (tempUnit) to damage (Picked unit), dealing (300.00 + (0.50 x (Real((Strength of tempUnit (Include bonuses)))))) damage of attack type Spells and damage type Normal
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((tempUnit) has buff Berserk) Equal to False
                    Then - Actions
                        Unit Group - Remove (tempUnit) from castGroup
                    Else - Actions
                Custom script:   call RemoveLocation(udg_tempPoint)
                Custom script:   call DestroyGroup(udg_tempGroup)

tempPoint - Point variable
tempGroup and castGroup - Unit group variables

If i do this, it won't show the animation of Bladestorm, also it would cause problems with other habilities that i already based on berserk.
 
Reaction score
149
Very well, Bladestorm version:

Code:
Begin
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Bladestorm
    Actions
        Unit Group - Add (Triggering unit) to castGroup
        Countdown Timer - Start CastTimer[(Player number of (Owner of (Triggering unit)))] as a One-shot timer that will expire in <Bladstorm duration> seconds

Code:
Periodic damage
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
   Unit Group - Pick every unit in castGroup and do (Actions)
            Loop - Actions
                Set tempUnit = (Picked unit)
                Set tempPoint = (Position of tempUnit)
                Set tempGroup = (Units within 512.00 of tempPoint matching ((((Matching unit) belongs to an enemy of (Owner of tempUnit)) Equal to True) and (((Matching unit) is alive) Equal to True)))
                Unit Group - Pick every unit in tempGroup and do (Actions)
                    Loop - Actions
                        Unit - Cause (tempUnit) to damage (Picked unit), dealing (0.50 x (Real((Strength of tempUnit (Include bonuses))))) damage of attack type Spells and damage type Normal
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Remaining time for CastTimer[(Player number of (Owner of tempUnit))]) Less than 1.00
                    Then - Actions
                        Unit Group - Remove (tempUnit) from castGroup
                    Else - Actions
                Custom script:   call RemoveLocation(udg_tempPoint)
                Custom script:   call DestroyGroup(udg_tempGroup)

CastTimer is a Timer variable array
 

DK's Pride

New Member
Reaction score
7
Unless same player has more than 1 of each unit, then MPI would be enough for a spell thats based on bladestorm :p
 

guneruh

Member
Reaction score
1
well, each player can have 1 hero only, but many players can select the same hero, would it be ok MPI on that case?
 

guneruh

Member
Reaction score
1
sry, long time i don't post. how i put [(Player number of (Owner of (Triggering unit)))]??? it doesn't let me ad anything more than CastTimer
 
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