Attack modifier trigger

Exogenesis

New Member
Reaction score
0
So I'm trying to make it so that a summoned unit will deal damage from auto attacks based off of the hero's strength (the hero who summoned the unit).

Trigger:
  • Event
    • Unit - A unit Spawns a summoned unit
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Summoned unit)) Equal to Bear (Level 1)
          • (Unit-type of (Summoned unit)) Equal to Raging Bear (Level 2)
          • (Unit-type of (Summoned unit)) Equal to Spirit Bear (Level 3)
          • (Unit-type of (Summoned unit)) Equal to Soul Bear (Level 4)
          • (Unit-type of (Summoned unit)) Equal to Ancient Bear (Level 5)
    • Actions
      • Unit - Cause (Summoned unit) to damage (Target unit of issued order), dealing ((Real((Strength of (Summoning unit) (Include bonuses)))) x 1.00) damage of attack type Spells and damage type Normal
 
try this...
make a hashtable, then do this:

Trigger:
  • Saving the summoner
    • Events
      • Unit - A unit spawns a summoned unit
    • Conditions
    • Actions
      • Hashtable - Save summoning unit as (whatever you want) of (key (Summoned unit)) in Hashtable_Variable_Name


Trigger:
  • Damage Dealing
    • Event
      • Unit - A unit is attacked
    • Conditions
      • Attacking unit is a summoned unit is equal to true
    • Actions
      • Unit - Cause attacking unit to damage attacked unit for (real(Strength of(Hashtable - Load Unit (Whatever it was in the first trigger) of (Key (Attacking unit))
 
try this...
make a hashtable, then do this:

Trigger:
  • Saving the summoner
    • Events
      • Unit - A unit spawns a summoned unit
    • Conditions
    • Actions
      • Hashtable - Save summoning unit as (whatever you want) of (key (Summoned unit)) in Hashtable_Variable_Name


Trigger:
  • Damage Dealing
    • Event
      • Unit - A unit is attacked
    • Conditions
      • Attacking unit is a summoned unit is equal to true
    • Actions
      • Unit - Cause attacking unit to damage attacked unit for (real(Strength of(Hashtable - Load Unit (Whatever it was in the first trigger) of (Key (Attacking unit))

Edit : Rewrite
my mistake i didn`t read well
Sry Gfreak but i must to complet your trigger
Trigger:
  • Events
    • A unit die
    • Conditions
      • (triggering unit) unit is a summoned unit is equal to true
    • Actions
      • Hashtable - Clear all child hashtable of (key(triggering unit) in Hashtable_Variable_Name

To prevent leaks :D
 
try this...
make a hashtable, then do this:

Trigger:
  • Saving the summoner
    • Events
      • Unit - A unit spawns a summoned unit
    • Conditions
    • Actions
      • Hashtable - Save summoning unit as (whatever you want) of (key (Summoned unit)) in Hashtable_Variable_Name


Trigger:
  • Damage Dealing
    • Event
      • Unit - A unit is attacked
    • Conditions
      • Attacking unit is a summoned unit is equal to true
    • Actions
      • Unit - Cause attacking unit to damage attacked unit for (real(Strength of(Hashtable - Load Unit (Whatever it was in the first trigger) of (Key (Attacking unit))

Uhhh... whats a hastable.... and how do you make one.....
 
think of a variable like a string of data, goes in one direction
think of a hashtable like an excell spread sheet
instead of having 1 identifing value or index (x) it has 2 (x,y) so it is 2 dimensional rather than 1
hashtables are also capable of saving any type of data rather than a specified one

you can create one and then just use last created hashtable for every single thing you save, but then you have to make sure nothing is overlapping, if you want to use more than 1, you have to save them to a variable to access them later, create them at map initialization, check the hashtable actions before you ask more, just so u kinda see what im saying
 
General chit-chat
Help Users
  • The Helper The Helper:
    It is weird seeing a way more realistic users online number
  • The Helper The Helper:
    Happy Tuesday Night!
    +1
  • 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 Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top