OliverFA_306 OliverFA_306

Will we be able to mod champion paths?

Will we be able to mod champion paths?

I was experimenting with modding the "Path of" abilities and unless I missed something or did something wrong, the ability to mod them is limited. I managed to change their effects, but was not able to add or remove paths, neither limit them to specific races / factions. I tried placing requisites for those abilities and they can still be chosen when levelling up. The funny thing is that for the second level up requisites work, so if the champion chooses a path that is forbidden for him he won't be able to advance through that path, but he was able to pick it in first place when he shouldn't.

I wonder if this is something due to being still in the beta or if this behaviour will stay forever.

26,224 views 37 replies
Reply #26 Top

What exactly are you trying to accomplish with removing these options? What is the end goal, or is it you want to be do that because you want to do that?

Reply #27 Top

Quoting parrottmath, reply 26

What exactly are you trying to accomplish with removing these options? What is the end goal, or is it you want to be do that because you want to do that?

In my particular case I have opted to make every troop a champion because that is the only way that I can use the A_ADDITIVE command, and I need to use that command to implement food upkeep for the army. So I blocked all champion abilities from those false champions and created a set of dummy abilities (thinking about making them actual abilities that give small bonuses later in the development process of the mod) but the problem is that each time a "false champion" unit reaches level 2 the screen for choosing path appears. I tried to make a sixth path only for false champions, but the five original paths still appear and can be chosen even if the false champion does not have the requisites for such path. Hardcoded thing X(

Reply #28 Top

What I was thinking was Path of Hero's Name for each hero, which is custom/unique.

 

Sovereigns and Level 1 Heroes would be able to use the 5 paths, unless you wanted unique paths for them as well.

 

 

Reply #29 Top

Quoting OliverFA_306, reply 27

Quoting parrottmath, reply 26
What exactly are you trying to accomplish with removing these options? What is the end goal, or is it you want to be do that because you want to do that?

In my particular case I have opted to make every troop a champion because that is the only way that I can use the A_ADDITIVE command, and I need to use that command to implement food upkeep for the army. So I blocked all champion abilities from those false champions and created a set of dummy abilities (thinking about making them actual abilities that give small bonuses later in the development process of the mod) but the problem is that each time a "false champion" unit reaches level 2 the screen for choosing path appears. I tried to make a sixth path only for false champions, but the five original paths still appear and can be chosen even if the false champion does not have the requisites for such path. Hardcoded thing

So your telling me that you cant just add an ability to each unit that is trained that has a modtype of a player changing the additive food per grain each unit has? For the most part it will be the same food cost per troop, but the same cost non-the-less.

Reply #30 Top

Quoting parrottmath, reply 29

 So your telling me that you cant just add an ability to each unit that is trained that has a modtype of a player changing the additive food per grain each unit has? For the most part it will be the same food cost per troop, but the same cost non-the-less.

Yes, that's exactly what I am saying. It took me some time until I realized that A_ADDITIVE does not work in trained units but does work with champions.

Because I really wanted to try this food upkeep I went the way of modifying each unit to make it a false champion. Then I thought that perhaps is not so bad, because I can create smaller abilities for those false champions (i.e., scouts getting extra movement as one of their level up options, spearmen getting a small amount of extra damage and so on). But this hardcoded choosing path screen at level 2 really screws everything X(

Reply #31 Top

Listen. It is not hardcoded to choose your path at level 2. I was able to get around it. All of the paths have a level requirement in them. Just set the level requirement to 1. Then you just edit the coreunits file and give the unit the ability path that you want in the file. It will now have that ability path and WILL NOT get the option to choose a path at lvl 2.

Reply #32 Top

So then how do you add new paths after you have removed the original paths you choose at 2?

Reply #33 Top

I don't know what you mean. You set the default path level requirements to 1. You then go into coreunits and edit the sovereigns with the path you want for them. When they hit level 2, they WILL NOT get an option to choose another path. They will just have the path you gave them at start. Instead, at level 2, they will get to choose a perk instead of a path.

 

Is that what you are referring to, or something else? You will have to be more specific on what you want if it is something different then this. If you mean you want to completely remove those original paths and make entirely new paths that they could choose, I have some ideas on how to do it but haven't tried it yet. So please clarify for me, thanks.

Reply #34 Top

What I mean is if you create a custom Sov how do you set its path?

Reply #35 Top

If you create a custom sovereign, it will function as normal and they will select their path from the 5 at level 2, unless you edit the sovereign in the code to have a set path.

 

So you can create sovereigns and have them choose as in the vanilla game, or edit their files so that they too will have a set path, does that explain it?


I didn't remove the path, I only "tricked" the game code so to speak. Since I set the level requirement to 1, and gave each sovereign a path to start with the AI is sort of tricked and when it reaches level two, it wont choose anything.

Reply #37 Top

I think so.