Health Regeneration

Users who are viewing this thread

Status
Not open for further replies.

Atomix

Recruit
Hello  :wink:
I'm looking for help, about editing mount&blade data, so when a king or lord is fighting on a battlefield, he has health regeneration rate, like for a example 1 hp/sec.
It's quite frustrating to avoid being hit by arrows when you are fighting like a big hord of mercenaries, sometimes it just get's annoying. So I thought, how could I implement such a thing?
You know, it would be nice, when sieging castles, I could regenerate, so I wouldn't need to retreat that often anymore.
Does anyone know how to do this?
duracell told me:
In the Expanded Gameplay 3 mod there is a regeneration amulet so it is possible, but I dont know how.  :???:
Thank you in advance.  :smile:
 
Add a trigger to your mission template, then use store_troop_health and set_troop_health appropriately.  Note that you can only set health in percentage.  Make sure you add the trigger to the mission templates you want it in.  Should be relatively straightforward in the module system. 
 
I haven't done a lot of modding in mount and blade, can you please explain me how to do that in detail?  :wink:
How can I add a trigger and what is that I have to edit exactly?
 
Atomix said:
I haven't done a lot of modding in mount and blade, can you please explain me how to do that in detail?  :wink:
How can I add a trigger and what is that I have to edit exactly?

Start with the links in my signature.
 
I just want to add this one feature to original game, I really don't want to go through all the programming and modding.
Can you please give me a hand and help me out with this one? :smile:
 
Thank you.

I no nothing about how to modd M&B, time to learn :smile:

(modding Oblivion is so much easier  :sad:)
 
Atomix said:
I just want to add this one feature to original game, I really don't want to go through all the programming and modding.
Can you please give me a hand and help me out with this one? :smile:

No short cuts that I know of for this, sorry.
 
here you go, get this mission_templates.txt file from here
http://depositfiles.com/files/hxwvvr8lh
and put into your Native directory, overwriting the old one. Should give you 1hp per second regeneration in all battles.

script:


regeneration = (1, 0, 1,[(neg|main_hero_fallen)], [
(get_player_agent_no, ":player_agent"),
(store_agent_hit_points,":life",":player_agent",1),
(val_add,":life",1),
(agent_set_hit_points,":player_agent",":life",1),
]) 


then added to all necessary missions like this:

      common_battle_tab_press,
      regeneration,
 
thank you, finally someone who actually can do something without telling you to go learn it all by yourself
 
Atomix said:
thank you, finally someone who actually can do something without telling you to go learn it all by yourself

Not to be rude, but if  everyone stopped working on their mods to make bits of code tweaks, there would be a lot less mods, and more questions about merging TXT files and the such.  I believe this forum is here for those trying to learn, not for request code to be made for you.  Just stating a fact. 

In your case, it's just one piece that (as Chel showed) is not that hard to make.  But others have come here asking for feature after feature amounting to a great deal of work.  The reason I asked to read the tutorials is that you would get an understanding of what modding in tales.  It's not easy, and many of us have been working at it for months.
 
Atomix said:
thank you, finally someone who actually can do something without telling you to go learn it all by yourself
Give a man a mod, you entertain him for a day. Teach a man to mod, you entertain him for a lifetime.
 
jik said:
Atomix said:
thank you, finally someone who actually can do something without telling you to go learn it all by yourself

Not to be rude, but if  everyone stopped working on their mods to make bits of code tweaks, there would be a lot less mods, and more questions about merging TXT files and the such.  I believe this forum is here for those trying to learn, not for request code to be made for you.  Just stating a fact. 

In your case, it's just one piece that (as Chel showed) is not that hard to make.  But others have come here asking for feature after feature amounting to a great deal of work.  The reason I asked to read the tutorials is that you would get an understanding of what modding in tales.  It's not easy, and many of us have been working at it for months.


I don't see any reason why would we need a million crappy mods, better make like 3 very good ones. It's not about quantity, but about quality.
 
Status
Not open for further replies.
Back
Top Bottom