Changing hero attributes by trigger

eXirrah

New Member
Reaction score
51
[SOLVED] Changing hero attributes by trigger

SOLVED
How can I change the value of an attribute behavior with a trigger?

SOLUTION:
In Data Editor:
Create attribute behavior. (example: Strength)
Edit the Strength behavior to give the desired bonuses.
Add the behavior to your unit.

Create buff behavior. (example: Add Strength +1)
Find the 'Behavior - Modification+' field of 'Add Strength +1' behavior and
choose to modify it.
A dialog will show up.
Switch to Behavior tab and in the 'Attribute Changes' list add your attribute
behavior (Strength).
Below the list there is an editbox labeled 'Points'. Set the value by which
you want to change your attribute (example: 1).
(it is good to point out that you can set negative value in order to decrease attribute points)
Find the 'Stats - Maximum Stack Count' field of the buff behavior and set
it to -1 (Infinite) so you can stack it and increase you attribute as much
as you want.

In Trigger Editor:
Use the action 'Unit - Add Behavior' to increase the attribute points for the
unit.
Count - the number of attribute points to add to the hero.
Behavior - the buff behavior that adds attribute points (Add Strength + 1).
Unit - the hero

This way the trigger action will add Count number of attribute points to the attribute.
If you want to decrease the attribute points then use trigger action 'Unit - Remove Behavior'.

In the example it will add Count number of points to Strength.

This should be put in tutorial section.
 
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