math...

sunshinex3

You can change this now in User CP.
i want to make a single ability that swaps the health of two heroes caster and target of cast ability.

Trigger:
  • RedDragTransfer
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Transfer (Red Dragon)
    • Actions
      • Set TransferRealCaster = ((Life of (Casting unit)) x 0.99)
      • Set TranferRealTarget = ((Life of (Target unit of ability being cast)) x 0.99)
      • Unit - Set life of (Target unit of ability being cast) to TransferRealCaster%
      • Unit - Set life of (Casting unit) to TranferRealTarget%
      • Unit - Set life of (Casting unit) to (Percentage life of (Target unit of ability being cast))%
      • Unit - Set life of (Target unit of ability being cast) to ((Max life of (Casting unit)) - (Life of (Casting unit)))%
      • Unit - Set life of (Casting unit) to (Life of (Target unit of ability being cast))%
      • Unit - Set life of (Target unit of ability being cast) to (Life of (Casting unit))%
      • Unit - Set life of (Casting unit) to ((Life of (Target unit of ability being cast)) / 1.00)
      • Unit - Set life of (Target unit of ability being cast) to ((Life of (Casting unit)) / 1.00)


none of these actions work, what the hell am i getting wrong, i thought this would be easy.
 

Accname

2D-Graphics enthusiast
Do you want to swap the actual hp (raw values) or in percentages? Like, if the caster had 50% of its max HP at the time of castng the target will have 50% of its max HP now.
 

sunshinex3

You can change this now in User CP.
Percentages

although raw value does sound intresting maybe i will do that ability and give it to an item.... but for now percentages.
 
General chit-chat
Help Users
  • tom_mai78101 tom_mai78101:
    Thanks for the context.
    +1
  • The Helper The Helper:
    Happy Hump Day!!!
  • Blackveiled Blackveiled:
    TH old fart gotta have a beer with me one of these days
  • The Helper The Helper:
    I am down anytime Blackveiled
  • Blackveiled Blackveiled:
    count on it then cause you don't live that far from me hah
  • The Helper The Helper:
    really that is cool!
  • The Helper The Helper:
    Hey Tom I added a new Weird tag to the News Prefixes
  • The Helper The Helper:
    What is up Blackveiled?
  • Blackveiled Blackveiled:
    Chillin', lurkin'. :D
  • The Helper The Helper:
    I am working on a bunch of site projects right now doing a bunch of behind the scenes stuff and trying to clean up some stuff that I let slide when I got lazy with the site for a few years...
  • The Helper The Helper:
    Are you in Houston Blackveiled or just in Texas?
  • Blackveiled Blackveiled:
    Houston
  • Blackveiled Blackveiled:
    I've been living here since 2014.
  • The Helper The Helper:
    OK banlord we need to get together soon! The only other member of the site I know in Houston is XXX Conan
  • The Helper The Helper:
    and he does not want none lol
  • The Helper The Helper:
    he put up a picture of his mom one time and she was HOT!
  • The Helper The Helper:
    I wish we still had that
  • Blackveiled Blackveiled:
    Lmao you scared him off I see.
  • The Helper The Helper:
    he will be back
  • The Helper The Helper:
    Conan was like 12 when he started here
  • The Helper The Helper:
    I literally think I was his male role model
  • Blackveiled Blackveiled:
    Yeah I was 12 when I started here as well.
  • The Helper The Helper:
    you guys were just kids
  • The Helper The Helper:
    I was in my 30s when i got the Blizzard MVP
  • The Helper The Helper:
    I am 53

    Staff online

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top