Hi everybody. I would like to add the "customize your own soldiers" feature to the Diplomasy module system. But there is a code conflict. Does anyone know how I can fix this? Or how can I add soldier customization like in floris mod? Please excuse my english
Solution
I found a much simpler way without using OSP. What we need to do is add a few new conversation lines from the Module Dialog. For example:
Analysis;
trp_esir: Troop I created. Here you can write the name of troop you want.
speech: Dialog hierarchy. You can search the forum for more details.
(change_screen_view_character): The screen we use to see and improve the stats of the troops. If you only give experience to the troops you create, you can select their attributes here. I will add feature reset in the future.
(change_screen_equip_other): The screen where we give items to NPCs.
close_window: Ends the conversation
(change_screen_trade): With this screen, we can access the troops' inventory. So we can give much more items. But it doesn't save its inventory. When we close and open the save file, the items are deleted. I couldn't find the solution. If you know, please specify below.
Please message me if you are using the codes in your mods. I want to review your mod. And if you have a better solution or if you have improved the codes please mention it below. Good battles!
Solution
I found a much simpler way without using OSP. What we need to do is add a few new conversation lines from the Module Dialog. For example:
Code:
[trp_esir|plyr,"member_chat",[],"Soldier!", "speech2",[]],
[trp_esir,"speech2",[],"I am at your disposal sir...","speech3",[]],
[trp_esir|plyr,"speech3",[],"Show the weapons you use!","speech4",[(change_screen_equip_other)]],
[trp_esir|plyr,"speech3",[],"What features do you have?","speech5",[(change_screen_view_character)]],
[trp_esir|plyr,"speech3",[],"Nothing else. Get to your task!","close_window",[]],
[trp_esir,"speech4",[],"That's it sir","speech6",[]],
[trp_esir,"speech5",[],"That's it sir","speech6",[]],
[trp_esir|plyr,"speech6",[],"Ok, now you can return to your task!","close_window",[]],
Analysis;
trp_esir: Troop I created. Here you can write the name of troop you want.
speech: Dialog hierarchy. You can search the forum for more details.
(change_screen_view_character): The screen we use to see and improve the stats of the troops. If you only give experience to the troops you create, you can select their attributes here. I will add feature reset in the future.
(change_screen_equip_other): The screen where we give items to NPCs.
close_window: Ends the conversation
(change_screen_trade): With this screen, we can access the troops' inventory. So we can give much more items. But it doesn't save its inventory. When we close and open the save file, the items are deleted. I couldn't find the solution. If you know, please specify below.
Please message me if you are using the codes in your mods. I want to review your mod. And if you have a better solution or if you have improved the codes please mention it below. Good battles!
Last edited: