Heroes level 5 buffs

Post Reply
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Heroes level 5 buffs

Post by ParaworldFan »

I added two new units in the game, but I still can’t figure out how to add them heroes 5 Lvl bonus like Cole HP bonus and etc.
example of code
AddHP_Hu_CHTR_tec_abs = '1' {
op = 'add'
path = '/Modifications/Hu/CHTR/Hitpoints/tec_abs'
value = '250.0'
}
I still don’t know how it’s works. My two new units is not getting the HP buff. How can I fix it?
User avatar
Scrat
- Mod -
Posts: 14223
Joined: Sat Jul 14, 2007 14:44 pm
Location: Bamberg / Budapest
Contact:

Re: Heroes level 5 buffs

Post by Scrat »

have you tried removing the part that says /tec_abs ? or Modifications is the wrong path?
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Heroes level 5 buffs

Post by ParaworldFan »

No I didn’t. Already, I was hoping Henry help me to figure out how this thing with tec and NATO is working.
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: Heroes level 5 buffs

Post by MrMorgana »

first things first: what do you want your heroes to do on level 5 exactly?
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Heroes level 5 buffs

Post by ParaworldFan »

I just want to add their default lvl 5 bonus to my new units, the Cole’s ones exactly. Like I want they will get an additional +250HP like all infantry units while Cole is lvl 5
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: Heroes level 5 buffs

Post by MrMorgana »

Okay, i may have misunderstood what you wanted. I thought you made 2 new heroes, and simply want to give them the same lvl5 bonus.
But now i think you made 2 new infantry units, which should get +250 hitpoints when Cole in on level 5, but they don't get it.
Which one is the case?
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Heroes level 5 buffs

Post by ParaworldFan »

hu_zombie_killer and hu_stone_statue. You can see them in Tech tree what I sended you earlier. And yes, you understood me now right^^.
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: Heroes level 5 buffs

Post by MrMorgana »

the techtree which i got from you to try making dc icespearman be producible from seas jail?
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Heroes level 5 buffs

Post by ParaworldFan »

Yes, TechTree from my Mega. There all changes what I did for future, about which you read in Changelog, what I was sending you.
User avatar
Scrat
- Mod -
Posts: 14223
Joined: Sat Jul 14, 2007 14:44 pm
Location: Bamberg / Budapest
Contact:

Re: Heroes level 5 buffs

Post by Scrat »

... i'm guessing simply adding those two units to the list at Cole's lvl5 entry didn't work?
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: Heroes level 5 buffs

Post by MrMorgana »

the bonus should be automatically working.
what is the class of hu_zombie_killer for example?

(class set in .txt file, and looks like this:
aje_archer {
classattribs {
classname = 'CAje'
gfx = 'aje_archer_s1'
}
objectattribs {
gender = 'female'
level = '0'
caste = 'tec'
tribe = 'Aje'
}
}
)
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Heroes level 5 buffs

Post by ParaworldFan »

Two new units have claws CHu. Because original ones, had specific class and used to be like standing objects, should be activated through trigger. And yes agree, it should be automatic, but it isn’t. So for better mapping, I created two new same units, but they have their own classes: zombie_killer have class CHu and hu_stone_statue have a new specific one, because of game models, it have my new created class named StoneStatue or like this.
Yes, what you mentioned I already did. I found correct files and changed them, but it didn’t helped.
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: Heroes level 5 buffs

Post by MrMorgana »

ParaworldFan, you have a bunch of questions, requests, bug reports, etc., but i don't have even enough time to respond to all of them.
Upload a package of your current version in an archive somewhere, and i will try to bug test it to find out, why it doesn't work.
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Heroes level 5 buffs

Post by ParaworldFan »

http://www.file-upload.net/download-430 ... a.ula.html Path Mirage/new units.zip
Will try to set up GitHub later
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Heroes level 5 buffs

Post by ParaworldFan »

I wanted that stina Chief bonus (lvl5) also gives armor to wild animals if they are player controlled like James warden’s pet, but seems it’s not easy. Any ideas, help? Or maybe I ve messed up with world animals weapon class idunno xD
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: Heroes level 5 buffs

Post by MrMorgana »

can't say if you messed it up or not, if i don't know how did you try to do it
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Heroes level 5 buffs

Post by ParaworldFan »

chief_mod_world_anml_close = '1' {
op = 'add'
path = '/Modifications/World/ANML/Defence/tec_rel'
value = '20'
}
chief_mod_world_anml_ranged = '1' {
op = 'add'
path = '/Modifications/World/ANML/RangedDefence/tec_rel'
value = '20'
}
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: Heroes level 5 buffs

Post by MrMorgana »

seems to be okay at first glance, but i will take a look at your files, once you upload them to dropbox
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Heroes level 5 buffs

Post by ParaworldFan »

You meant Mega. And as I mentioned, I not able to delete or replace any files. If I put the new file in the folder where the old one, it just leaves here two files with different name. If this okay, I will upload it very quick, but I think it’s a good idea, because something could be messed up
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: Heroes level 5 buffs

Post by MrMorgana »

ohh right, you said that really, i'll change it ASAP
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Heroes level 5 buffs

Post by ParaworldFan »

I uploaded new TechTree on shared Mega
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Heroes level 5 buffs

Post by ParaworldFan »

ParaworldFan wrote: Sat May 30, 2020 11:37 am chief_mod_world_anml_close = '1' {
op = 'add'
path = '/Modifications/World/ANML/Defence/tec_rel'
value = '20'
}
chief_mod_world_anml_ranged = '1' {
op = 'add'
path = '/Modifications/World/ANML/RangedDefence/tec_rel'
value = '20'
}
Nevermind, figured out all by myself, correct code is here:
chief_mod_world_anml_close = '1' {
op = 'add'
path = '/Modifications/World/ANML/Defence/tec_abs'
value = '20'
}
chief_mod_world_anml_ranged = '1' {
op = 'add'
path = '/Modifications/World/ANML/RangedDefence/tec_abs'
value = '20'
}
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Heroes level 5 buffs

Post by ParaworldFan »

MrMorgana wrote: Thu Apr 09, 2020 5:03 am the bonus should be automatically working.
what is the class of hu_zombie_killer for example?

(class set in .txt file, and looks like this:
aje_archer {
classattribs {
classname = 'CAje'
gfx = 'aje_archer_s1'
}
objectattribs {
gender = 'female'
level = '0'
caste = 'tec'
tribe = 'Aje'
}
}
)
I ve found the problem, and it’s solved. Somehow for unknown reason, probably that because I created and gave new class to hu_stone_statue the level 5 bonus is get fixed, so now it works. But buffs was still it working for hu_zombie_killer. And how I found out it was mainly because of it had class CHu....I putted code of unit in file, sl_valhalla.txt cause it’s object related by topic to here, it seems technically this file doesn’t have attach to CHu class or to the script which works for heroes Chief bonus, because all what I did just copied code of hu_zombie_killer from sl_valhalla, and paste it in mirage.txt and now level 5 bonuses works properly for this unit.
Post Reply

Return to “English”