• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] + Damage Issue

Status
Not open for further replies.
Level 8
Joined
Jul 22, 2008
Messages
331
You know Nightmare's ability which gives +/- damage?
that's the one...
I need it just to give + damage when hero kills 100 units
I know everything but how to do + damage thing.
Now as I say, I have no idea how to do it in jass.
But can it be done with GUI...?
If it can can you give me some main actions?
Although I have that ability in JASS from the newest dota template
I do not know what to delete what to add to make it func.
I can repay you with my ability.
My ability has no name but instead of giving + damage it
gives + reputation points
 
Level 12
Joined
Aug 18, 2006
Messages
1,193
well, okay, ill guess i can give you a more in-depth helping

some things i need to know before i can help you more

- is the skill learnable? is it a hero skill? if so, how many levels?
- is it supposed to show? like, when the hero kills 100 units, will he gain an icon to display it?
- is there only 1 level? is it like, 100 kills = +10 damage, 200 kills = +20 damage?
 
Level 8
Joined
Jul 22, 2008
Messages
331
Sorry for waiting (or not waiting).
1. It is a Hero skill
2. Is learnable
3. it has 6 Levels
4. it has an icon when learned.
5. Icon should be... :xxd:
6.
- Level 1 should give +1 damage = 100 no-creep kills/-6% max hit points = 1 death;
- Level 2 should give +1 damage = 100 no-creep kills/-5% max hit points = 1 death;
- Level 3 should give +1 damage = 100 no-creep kills/-4% max hit points = 1 death;
- Level 4 should give +1 damage = 100 no-creep kills/-3% max hit points = 1 death;
- Level 5 should give +1 damage = 100 no-creep kills/-2% max hit points = 1 death;
- Level 6 should give +1 damage = 100 no-creep kills/-1% max hit points = 1 death.

BTW i tried... works ok but how to do this with percentage HP?
 
Level 12
Joined
Aug 18, 2006
Messages
1,193
i must say, i dont frankly understand what you mean by the description

for every 100 Creep Kill, the hero shall gain +1 Damage, but what are those "1 death" and "-x% max hit points doing there? how are they supposed to be implemented?
 
Level 8
Joined
Jul 22, 2008
Messages
331
Thanks Pika, i've figure it out. regarding the Razorbrain's post,what I meant is you kill 100
units which are not creeps you gain +1 damage. you die - your max hit point is reduced by
%... get it now... it's ok for killing, but that percentage - should it go
  • Unit - set units max hit points to (max hit points - (max hit points * 0.9))

I didn't tried it yet...
 
Level 5
Joined
May 6, 2008
Messages
175
ooo i get it now if you kill 100 units that are not creeps you gain 1% on max hitpoints but if you die you lose 1%? and the trigger is right(i think)
 
Level 12
Joined
Aug 18, 2006
Messages
1,193
you cant set Max Hitpoints with triggers

you can, on the other hand, make a ability that adds 1 to Max Hitpoints per level, make it have like 1000 levels or something and then set the level of the spell when 100 creeps have died
 
If i understand you right this is really easy

You need two spells for that
1. You heros Ability which does nothing - just for leveling ("HeroAbility")
2. An ability based on the Item Ability to add Damage ("Damage")

  • Event
    • Unit - A unit dies
  • Conditions
    • (Unit-type of (Killing unit)) equal YourHero
    • (Level of HeroAbility for (Triggering unit)) unequal 0
    • (Level of Damage for (Triggering unit)) <= ((Level of HeroAbility for (Triggering unit)) x 10) // just an example what the maximum of additional damage could be - remember that your damage spell must have this amount of levels
  • Actions
    • Unit - Set level of Damage for (Triggering unit) to ((Level of Damage for (Triggering unit)) + 1)
 
Level 8
Joined
Jul 22, 2008
Messages
331
Thanks Johny... but I know already damage thingy.
problem is % of max HP
EDIT: What is maximum number of abilities for hero without Shiftclicking?
6 i think, right.
My heroes have 5 abilities. that should mean that, inluding +damage ability which would have 2 sub-abilies, I 've hit the max of abilities.
 
Status
Not open for further replies.
Top