• 0

    posted a message on Unit pitch facing

    @willuwontu: Go

    Thanks for the advice. I've already tried out, but I have no idea how the actor messages work for rotation.

    Posted in: Triggers
  • 0

    posted a message on Unit pitch facing

    Hello!

    I was wondering if there is a way to rotate an AIR units facing to the current pitch of the players camera?

    I already set up a TPS camera what works fine and WASD movement with camera yaw (the unit is facing the yaw of the camera) and pitch (the unit changes it's height based on the pitch of the camera) facing, but what I want is to tilt the unit if it goes up or down (changes it's height) because right now it looks like the unit is moving like an elevator.

    The trigger looks like this: trigger

    So any ideas how to tilt the unit based on the players current camera pitch??

    Posted in: Triggers
  • 0

    posted a message on [Triggers, Data] Dynamic Button Tooltip

    @Spoolofwhool: Go

    Yes, you have to force it, because Attribute changes doesn't work like effect upgrades.
    If you use an upgrade to scale an Effect the Buttons Tooltip will automatically refresh.

    Here is a picture of the Button in Data Editor:
    Trigger1

    I hope his is what you meant.

    Posted in: Tutorials
  • 0

    posted a message on [Triggers, Data] Dynamic Button Tooltip

    I had issues with Button Tooltips for a long time,
    because I wanted attribute scaled, ability damage effects and I just couldn't get it done.
    But finally I found a solution to get it to work.
    Maybe it's not the best, but hey it works.

    Before we start we need some things first to get the trigger to work.
    The trigger uses a behavior, inherited by a unit. Let's call it AttackDamage.
    Furthermore, you will need to duplicate the damage effect used by your ability, to set it's value back, if you drop your weapon.
    Let's call them CutDamage and CutDamage2.
    And of course you need a Button too for the tooltip, where we will use an expression with four different text:

    • A: Your hero cuts the enemy, dealing <d ref="Effect,CutDamage,Amount-
    • B: (String(AttackDamageScaled) with 0 decimal places)
    • C: "/><c val="FF8000">(+
    • B: (String(AttackDamageScaled) with 0 decimal places)
    • D: ) </c>physical damage.

    So why did we took it apart, instead of using one string?
    The answer is simple, because of the equation.
    At the end of A you can see a - mark which is followed by a linked Local Variable what we converted to String from Real.

    The trigger:

    - Events: Unit - Any Unit attribute points changed
    - Local Variables:
    AttackDamageStackCount = (Stack Count of AttackDamage on (Triggering Unit)) <Real>
    AttackDamageScaled = 0.0 <Real>
    - Conditions: (Triggering behavior) == AttackDamage
    - Actions:
    If: (Unit type of (Triggering Unit)) == (your unit type of unit)
    Then:

    If: AttackDamageStackCount > 0.0
    Then:

    Catalog - Set value of Effect,CutDamage,Amount for player (Triggering player) to (Value of Effects CutDamage2 (Damage CEffectDamage) Amount for player (Triggering player))
    Variable - Modify AttackDamageStackCount: * 1.5 (can be changed to whatever value you want it to be)
    Variable - Set AttackDamageScaled = AttackDamageStackCount
    Variable - Modify AttackDamageStackCount: + (Value of Effects CutDamage Amount for player (Triggering player) as an integer)
    Catalog - Set value of Effect,CutDamage,Amount for player (Triggering player) to (String(AttackDamageStackCount) with 0 decimal places)
    Catalog - Set value of Button,(your ability button here),Tooltip for player (Triggering player) to {~A~~B~~C~~B~~D~}

    Else:

    Catalog - Set value of Effect,CutDamage,Amount for player (Triggering player) to (Value of Effects CutDamage2 Amount for player (Triggering player))
    Catalog - Set value of Button,(your ability button here),Tooltip for player (Triggering player) to "Your hero cuts the enemy, dealing <d ref="Effect,CutDamage,Amount"/><c val="FF8000">(+)</c> damage."


    The trigger will look something like this:
    trigger


    The button tooltip will look something like this if you dont have any weapon equipped:
    ButtonTooltip1

    And this if you have a weapon:
    ButtonTooltip2
    You can copy&paste this code in your editor for other abilities or heroes, you just need to change the Unit, Effects,Button, it's tooltip and the multiplier of course.


    Please note that if anything changes your behavior stack count besides your weapons, it will change the damage of your ability too.

    PS: Sorry for my English.

    Posted in: Tutorials
  • 0

    posted a message on Dynamic Button Tooltip with current Behavior Stack

    Okay so after hours of trying and searching all the forums I managed to get it done.
    It uses a behavior inherited by a unit, let's call it AttackDamage.
    Furthermore you will need to duplicate the damage effect used by your ability to set its value back if you drop your weapon, let's call them CutDamage and CutDamage2.
    And of course you need a a Button too for the tooltip, where we will use an expression with four different text:

    • A: Your hero cuts the enemy, dealing <d ref="Effect,CutDamage,Amount-
    • B: (String(AttackDamageScaled) with 0 decimal places)
    • C: "/><c val="FF8000">(+
    • B: (String(AttackDamageScaled) with 0 decimal places)
    • D: ) </c>physical damage.

    So why did we took it apart, instead of using one string?
    The answer is simple, because of the equation.
    At the end of A you can see a - mark which is followed by a linked Local Variable what we converted to String from Real.

    The trigger looks like this:

    - Events: Unit - Any Unit attribute points changed
    - Local Variables:
    AttackDamageStackCount = (Stack Count of AttackDamage on (Triggering Unit)) <Real>
    AttackDamageScaled = 0.0<Real>
    - Conditions: (Triggering behavior) == AttackDamage
    - Actions:
    If: (Unit type of (Triggering Unit)) == (your unit type of unit)
    Then:

    If: AttackDamageStackCount > 0.0
    Then:

    Catalog - Set value of Effect,CutDamage,Amount for player (Triggering player) to (Value of Effects CutDamage2 (Damage CEffectDamage) Amount for player (Triggering player))
    Variable - Modify AttackDamageStackCount: * 1.5 (can be changed to whatever value you want it to be)
    Variable - Set AttackDamageScaled = AttackDamageStackCount
    Variable - Modify AttackDamageStackCount: + (Value of Effects CutDamage Amount for player (Triggering player) as an integer)
    Catalog - Set value of Effect,CutDamage,Amount for player (Triggering player) to (String(AttackDamageStackCount) with 0 decimal places)
    Catalog - Set value of Button,(your ability button here),Tooltip for player (Triggering player) to {~A~~B~~C~~B~~D~}

    Else:

    Catalog - Set value of Effect,CutDamage,Amount for player (Triggering player) to (Value of Effects CutDamage2 Amount for player (Triggering player))
    Catalog - Set value of Button,(your ability button here),Tooltip for player (Triggering player) to "Your hero cuts the enemy, dealing <d ref="Effect,CutDamage,Amount"/><c val="FF8000">(+)</c> damage."


    It will look something like this if you dont have any weapon equipped:
    ButtonTooltip1

    And this if you have a weapon:
    ButtonTooltip2
    You can copy&paste this code in your editor for other abilities or heroes, you just need to change the Unit, Effects,Button, it's tooltip and the multiplier of course.


    Please note that if anything changes your behavior stack count besides your weapons, it will change the damage of your ability too.

    PS: Sorry for my English.

    Posted in: Data
  • 0

    posted a message on (Solved) Duplicating Dehaka Drag

    @Shieldnutzz: Go

    What did you change exactly?

    Posted in: Data
  • 0

    posted a message on Dynamic Button Tooltip with current Behavior Stack

    Could someone send me a map with the trigger? I just can't get it to work. :D I've no idea what I'm doing wrong.

    Posted in: Data
  • 0

    posted a message on Dynamic Button Tooltip with current Behavior Stack (UI??)

    Hello!

    I want to create a dynamic button tooltip for a damage type spell what deals xxx+(BehaviorStackPoints*xx) damage. The behavior itself doesn't do a thing, I only use it for it's stacks, also the behaviors stack count changes if the player gains a level, or equips a weapon. Now, how can I set the spells button tooltip to a dynamic teyt, what changes when the behavior changes.

    I managed to refer to the behaviors minimum point, but I want to refer to the current point.

    Here is the current tooltip:

    "Deals <d ref="Effect,TestEffectDamage,Amount"/><c val="FF8000">(+<d ref="Behavior,TestBehavior,MinPoints*0.1"/>) </c>damage."

    So I want to make it like when you buy a weapon in LoL and your spells button tooltip changes. I've seen something similar in the "Boss Testing" arcade game too.

    If someone could help me, I would really appreciate it.

    Posted in: UI Development
  • 0

    posted a message on Dynamic Button Tooltip with current Behavior Stack

    Hmmm..... Could you link me a tutorial for this, or could you make an example?

    I'm just not good at U.I. editing as it seems.

    Posted in: Data
  • 0

    posted a message on Dynamic Button Tooltip with current Behavior Stack

    Hello!

    I want to create a dynamic button tooltip for a damage type spell what deals xxx+(BehaviorStackPoints*xx) damage. The behavior itself doesn't do a thing, I only use it for it's stacks, also the behaviors stack count changes if the player gains a level, or equips a weapon. Now, how can I set the spells button tooltip to a dynamic teyt, what changes when the behavior changes.

    I managed to refer to the behaviors minimum point, but I want to refer to the current point.

    Here is the current tooltip:

    "Deals <d ref="Effect,TestEffectDamage,Amount"/><c val="FF8000">(+<d ref="Behavior,TestBehavior,MinPoints*0.1"/>) </c>damage."

    So I want to make it like when you buy a weapon in LoL and your spells button tooltip changes. I've seen something similar in the "Boss Testing" arcade game too.

    If someone could help me, I would really appreciate it.

    Posted in: Data
  • To post a comment, please or register a new account.