Male races

Users who are viewing this thread

Ikaguia

Grandmaster Knight
A simple solution for male races (WB consider all new skins as female):
1- in header troops, make all your male skins pair (0,2,4,6,8...) and all your female odd(1,3,5,7,9...)
2- go to module_dialogues and search for troop_get_type
3- it will be something like (troop_get_type, reg0, ":troop"),
4- add just bellow it, this line (val_mod, reg0, 2),
5- repeat steps 2,3,4 over and over...

(val_mod,destination, value), Divide destination by value and assign the remainder to destination.
 
Ikaguia said:
A simple solution for male races (WB consider all new skins as female):
1- in header troops, make all your male skins pair (0,2,4,6,8...) and all your female odd(1,3,5,7,9...)
2- go to module_dialogues and search for troop_get_type
3- it will be something like (troop_get_type, reg0, ":troop"),
4- add just bellow it, this line (val_mod, reg0, 2),
5- repeat steps 2,3,4 over and over...

(val_mod,destination, value), Divide destination by value and assign the remainder to destination.

Could you post an example of how it is done?
Whenever i speak to my custom races, the character adresses them: My Lady.....
I have tried a lot of solutions that didnt seem to work, but this looks quite simple, i just dont understand how the "
(val_mod,destination, value)" is working??

Thanks for your time

- Orbaek
 
Ørbæk said:
Ikaguia said:
A simple solution for male races (WB consider all new skins as female):
1- in header troops, make all your male skins pair (0,2,4,6,8...) and all your female odd(1,3,5,7,9...)
2- go to module_dialogues and search for troop_get_type
3- it will be something like (troop_get_type, reg0, ":troop"),
4- add just bellow it, this line (val_mod, reg0, 2),
5- repeat steps 2,3,4 over and over...

(val_mod,destination, value), Divide destination by value and assign the remainder to destination.

Could you post an example of how it is done?
Whenever i speak to my custom races, the character adresses them: My Lady.....
I have tried a lot of solutions that didnt seem to work, but this looks quite simple, i just dont understand how the "
(val_mod,destination, value)" is working??

Thanks for your time

- Orbaek
in your MS folder, there is a header_troops, you should have already set your new skins there, so, you now should only change their numbers, make all your male skins pair (0,2,4,6,8...) and all your female odd(1,3,5,7,9...)
then in module dialogs, you should look for every troop_get_type operation, and add an line after it:
(val_mod, reg0, 2), this will divide reg0 by 2 and assign the remainder to destination, so, if it is pair it will return 0, wich is the default value for male troops and if it is odd, it will return 1, wich is the default for females.
 
Great i get it now  :oops: Thanks for specifying Mate

I'll go try it right away!

EDIT:

It doesn't seem to have changed anything, maybe i'm not doing it right.
This is what i have done with all "troop_get_type operations:

                (troop_get_type, reg65, "$g_talk_troop"),
            (val_mod, reg0, 2),                   
    (try_begin),
                      (faction_slot_eq,"$g_talk_troop_faction",slot_faction_leader,"$g_talk_troop"),
                      (str_store_string,s64,"@{reg65?my Lady:my Lord}"), #bug fix
                      (str_store_string,s65,"@{reg65?my Lady:my Lord}"),
                      (str_store_string,s66,"@{reg65?My Lady:My Lord}"),
                      (str_store_string,s67,"@{reg65?My Lady:My Lord}"), #bug fix
                    (else_try),
                      (str_store_string,s64,"@{reg65?madame:sir}"), #bug fix
                      (str_store_string,s65,"@{reg65?madame:sir}"),
                      (str_store_string,s66,"@{reg65?Madame:Sir}"),
                      (str_store_string,s67,"@{reg65?Madame:Sir}"), #bug fix
                    (try_end),
 
Back
Top Bottom