Page 1 of 1

Good God-Evil Race interaction

PostPosted: Friday, 1st June 2018, 16:00
by Apocolototh
Heya Everyone,
Im thinking about modding in the possibility to join good gods as an evil race on my local 0.21. With the added effect, that, when joining, you are immediately hit with a pennance event.

However, I am entirey unfamiliar with the folderstructure and would like to ask, where the event-files are placed. Recently, I got a bit more ok at programming and mostly want a pointer in the correct path-direction to hopefully figure the rest out by myself.

Actually, I´ve been thinking about a zealous "repenting" Demonspawn of TSO when I played 0.11 way back and it struck me just now ,that I should be able to mod that in....

Greetings,
Apoco

Re: Good God-Evil Race interaction

PostPosted: Monday, 4th June 2018, 01:44
by Floodkiller
Apocolototh wrote:Heya Everyone,
Im thinking about modding in the possibility to join good gods as an evil race on my local 0.21. With the added effect, that, when joining, you are immediately hit with a pennance event.

However, I am entirey unfamiliar with the folderstructure and would like to ask, where the event-files are placed. Recently, I got a bit more ok at programming and mostly want a pointer in the correct path-direction to hopefully figure the rest out by myself.

Actually, I´ve been thinking about a zealous "repenting" Demonspawn of TSO when I played 0.11 way back and it struck me just now ,that I should be able to mod that in....

Greetings,
Apoco


The method that checks for whether or not your species can worship a god is in religion.cc. As for the penance part, you would probably want to add a special case to the _join_<god name> methods in the same file for TSO, Zin, and Ely for evil races. You'll have to do some code searching to figure out how to call penance effects without actually being in penance.

Re: Good God-Evil Race interaction

PostPosted: Thursday, 7th June 2018, 15:24
by Apocolototh
Many thanks for the quick and informative answer, it helps a lot.
Ill get to it this WE and update wether and how well it works.

Have a nice day,
Apoco.

Re: Good God-Evil Race interaction

PostPosted: Tuesday, 24th July 2018, 23:58
by Apocolototh
OK, I implemented it and it works. On joining the three good gods send a god message "Prove your dedication" And you receive 10 pennance from all 3. That might need to get turned up higher, because it seemed to be over pretty fast.

Re: Good God-Evil Race interaction

PostPosted: Wednesday, 25th July 2018, 01:11
by chequers
Currently, good god penance does nothing unless you worship an evil god. You'll also need to change that to "good god penance does nothing unless you are a bad species or worship an evil god".

Re: Good God-Evil Race interaction

PostPosted: Tuesday, 31st July 2018, 01:24
by Apocolototh
Aaaah, that answers why no penal-events happened, thanks.