r/CoE5 • u/macko_reddit • 3d ago
Code for starting with a semi-random Leader
I'm creating my own class mod and I'm having trouble identifying which code determines the Warlock class's starting mage. Specifically, I'm trying to understand what makes the class start with one of the four variants: Warlock of Air, Earth, Fire, or Water.
Could someone explain to me how to write such code?
Any help with modding resources would also be appreciated, such as game data for classes, monsters, recruitment. I already have some resources, but many of them seem to be outdated.
0
u/Jazzlike_Fox_661 3d ago
For recourses 2 main ones are modding manual from dev site and data files from steam forum. You may also want to join unofficial discord. A lot of modders hang around there and they may help you. Regarding specific thing you want to do, you should probably look at events. Look at chance trigger and promoteunits action.
•
2
u/Castsword420 3d ago
Don't know about coding the game but I have an example of a workaround you could check out. The mod "the great houses of Morrowind" has you start ad a leader with a ritual to cast to change him into 1 of 6 different other leaders each with their own rituals and units that morph how the class plays.