You must be logged in to post messages.
Please login or register

AI, RMS Scripting, and Modding
Moderated by Yeebaagooon, TAG

Hop to:    
Welcome! You are not logged in. Please Login or Register.5 replies
Age of Mythology Heaven » Forums » AI, RMS Scripting, and Modding » Gain hp on attacks? (Vampire)
Bottom
Topic Subject:Gain hp on attacks? (Vampire)
damaskditager
Mortal
posted 23 October 2018 12:13 PM EDT (US)         
Troll has ability to gain hp on attacks, I checked it's protox but can't find that "code". Which code gives it life stealer ability? I want to add this effect on another unit
AuthorReplies:
Izalith
Mortal
(id: Lilitu)
posted 23 October 2018 09:00 PM EDT (US)     1 / 5       
I think it's that line

<param name="ReflectDamage"></param>


But that's for modding. I don't think u can trigger this for a unit type.

What u can do is count the player kill count and heal some hero unit of the player every time the player makes a kill.

Azarath Metrion Zinthos

Steam: Order of Azarath
Twitch: twitch.tv/orderofazarath
Discord: Azarath @ https://discord.gg/3ENKJeb

[This message has been edited by Izalith (edited 10-23-2018 @ 09:02 PM).]

Hammerhands
Mortal
posted 23 October 2018 10:24 PM EDT (US)     2 / 5       
Or if you're feeling crafty, you could try to count seconds that the unit is in 'attack' mode. And using a system of triggers, add health while the character is attacking.

I don't remember the specifics, but there is a way to find the unit action. Been too long, and I'm not on my PC to look it up.
I seem to recall using it once...
damaskditager
Mortal
posted 24 October 2018 01:19 AM EDT (US)     3 / 5       
Condition name: Unit is fighting (My unit)
Condition name: Units in area (Enemy near my unit)
Condition name: Timer (Attack time)

Effect: Heal 1%
Hammerhands
Mortal
posted 24 October 2018 09:55 PM EDT (US)     4 / 5       
One percent is very fast.
I would probably use something like 2 to 5 hp per hit depending on the total health of the unit.
chriskv95
Mortal
posted 28 October 2018 01:42 PM EDT (US)     5 / 5       
It would be interesting to add it in Nordic units to make them berserker....
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Mythology Heaven | HeavenGames