I need help at changing HP in different units

magzhi

Warlord
Joined
May 23, 2010
Messages
197
I am doing mod which related to war and I am trying to make so different unit types had different number of HP
For example I want so mounted units had 5HP and melee units had 10 HP
I hope that someone can help me. :)
 
:confused: Am I being ignored by all community :confused: I am asking this question about being ignored because I already created topic before this and noone answered it but now I created one more topic(about another question) and again noone is answering me I am starting losing my hope in getting any help from here.
 
Or it could be a giant conspiracy by every forum member here to limit you.:mischief:
 
Kruelgor
I searched all of xml files but haven't found anything what can help me. :(

JeBuS
:lol: nice answer :D

sorry guys but I was a little mad when I was writing my previous message because my mod wasn't launching 5th time in a row.
 
I love it when that happens.

And I'd like to know the answer to this one as well, if somebody ever finds out.
 
You could hook into SerialEventOnUnitCreated or whatever it's called and set the HP manually.
 
What???? Can you explain me what does it mean "SerialEventOnUnitCreated"???
 
It's a LUA event. Check this thread out:

http://forums.civfanatics.com/showthread.php?t=385612

And, read all the threads in the tutorials and LUA subforums to really understand what you're doing. Maybe someone will write a comprehensive tutorial at some point but right now you're kind of on your own.

You might also have to handle healing somehow.
 
thanks ZanderC I think now I need to finally learn LUA scripts (I was too lazy to do it before :D)
 
Back
Top Bottom