Need help on ability stuffx

  • Thread starter Thread starter h-kid
  • Start date Start date
H

h-kid

Guest
Could someone helpe me out here with this...
I want to make a ability that when deal damage it deals in % of hero's orginal attack damage or make the damage based on hero's stats (str,agi,int). Is there anyway to achieve either one of the above?
 
Triggers... set the dmg of the ability to 0 and use this trigger.
Code:
Attacks
Event: Unit finish/begins casting an ability (use which ever 1 u want)
Conds: Ability being cast = (ability)
Acts: Pick every unit matching matching unit = attacked unit and do *
[indent]*set picked unit health = picked unit health - hero dmg[/indent]
Sry i cant tell u the exact actions, im in school lol
 
thx 4 da help but hmmm
set picked unit health = picked unit health - hero dmg
how do u set up dat? sry 4 botherin again

also how do i make the damage % of orginal hero atk change with the changes of the ability level
 
I use a item ability called "Conjuro de reducción de daño" (in english I think it's Damage reduction spell" or something similar)
It has two data fields, one called "Damage bonus" and other called "Damage reduction".
Create a custom ability based of this, set Damage reduction to 0 and Damage bonus to the percent you want to add to damage.
 
the formula is amount * 0.percent
if you want 30% out of 400, do 400 * 0.30

so if you want the damage to be dealt as half, everytime a target is damaged, increase its health by half of the damage dealt.
but how will you determine the amount of damage dealt you might be asking..
well, you cant make an event of "A unit is damaged" without pre setting the unit, so its a problem.
The only way to do it is through jass.

The alternative way is, when you cast your ability, create a dummy unit for the enemy and a dummy cripple ability, add it, and order the dummy to cripple your hero for the amount of duration of your spell.
cripple reduces a percentage damage of the hero. :)
 
arit thx every1 but wut im sayin is that i want a skill work like blademasta's critical strike but only it can be activated -- workin like moutainking's hammer or somethin...

also how do i make a skill that the damage is based on hero's crurrent stats? (str,int,agi)

ex. if DemonHunter have 50 agi... i want the skill to do 2x the amount of damage that DemonHunter's agi is at ------- dealing 100 damage
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Staff online

  • Ghan
    Administrator - Servers are fun

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top