Need help with Custom Ability

  • Thread starter Thread starter Cocopug
  • Start date Start date
C

Cocopug

Guest
I'm trying to make a custom ability to do something like a 20% chance to kill a unit with HP below a certain %, but i can't seem to get it right, can someone please help me, or give me some hints?

Thanks in advance


Cocopug.
 
Please post the trigger you have so far so we can see what you're doing.
 
Code:
Event
    A unit is attacked
Conditions
    Level of (Your ability) for (Attacking unit) greater than 0
    (Attacked unit) Life lesser than (VALUE)
Actions
    If Random number between 0 and 100 is lesser than (OTHER_VALUE)
        Order (Attacking unit) to damage unit (Attacked unit) for (A large amount)
VALUE should be replaced with some calculation using the ability level and maybe the HP of the attacking unit.
OTHER_VALUE should be a value that increases with the level of the ability
So every level you get more chances to kill the enemy.

I hope this helps
 
The player can get close to a unit bellow that hp percentage, order to attack it, instantly stop the hero, and do so and so, in less than a second the unit will die instantly without the hero even attacking it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top