Item increase percentage of hero stats

Discussion in 'World Editor Help' started by paylong08, Nov 7, 2017.

  1. paylong08

    paylong08 New Member

    Ratings:
    +0 / 0 / -0
    Can anyone give me a sample for Trigger that when hero acquire an item it will increase percentage of stats but when the item drops hero will lose the increased stats.
    Thanks in advance!
     
  2. sunshinex3

    sunshinex3 You can change this now in User CP.

    Ratings:
    +4 / 0 / -0
    example i found just change condition to hero manipulates or picks up certan item triggering unit needs to bee hero manipulating item, after the trigger below you have to make a similar trigger for when the hero drops the item to remove the stat.
    • [​IMG]Increase Strength
      • [​IMG][​IMG]Events
        • [​IMG][​IMG][​IMG]Unit - A unit Starts the effect of an ability
      • [​IMG][​IMG]Conditions
        • [​IMG][​IMG][​IMG](Ability being cast) Equal to Increase Strength
      • [​IMG][​IMG]Actions
        • [​IMG][​IMG][​IMG]Set IncreaseStrength = ((Strength of (Triggering unit) (Include bonuses)) / 2)
        • [​IMG][​IMG][​IMG]Hero - Modify Strength of (Triggering unit): Add IncreaseStrength
     
  3. Inflicted

    Inflicted Currently inactive

    Ratings:
    +63 / 0 / -0
    Note that the above will only increase the value in proportion to the current stats, any stats gained at a later point would not be proportionally added.

    If this is acceptable, I'd recommend storing the values that were gained and removing those when the item is dropped (rather than a new calculation as the values are likely to have changed).
     

Share This Page