I'm trying to enable blacksmiths to also repair guns. What I already made is a blacksmith_dialog.c and .h file changed into gunsmith_dialog.c and .h files. That seems to be working, when I assigned that dialog to Gregor Samsa. Now I would like to know how to merge that functionality in with the blade repairing dialog, so we'd have a smith capable of repairing both blades and guns.
Also: There are additional blacksmith-concerning functions in the blacksmith#_dialog.c files that migth do well to be moved over into a more general file, because there are now six dialog files using this. Into what file might I move this so that this will still work? And how should that be done? Preferrably, I would like to be able to even have those functions work in SEADOGS.c, because I could use them for improving my Quick-Equip button (by having the game tell you the actual name of the stuff you equiped, instead of telling only that you equiped something).
Anyone wanting to have the dialogfiles, just ask. As it is now, it's basically just the exact blacksmith_dialog.c/h files with everything that says blade/sword replaced with gun. Hopefully, I'll come round to doing a better version later, with better dialog, but especially with better, merged, functionality.
BTW: Anyone think it'd be nice to have at least one gun-only smith somewhere in the archipelago? Alan Smithee had been trying to put some variation into the blacksmiths, so this might play into that nicely.
Hope you can give me a hand with these things. Thanks in advance! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/bounce.gif" style="vertical-align:middle" emoid=":b:" border="0" alt="bounce.gif" />
Also: There are additional blacksmith-concerning functions in the blacksmith#_dialog.c files that migth do well to be moved over into a more general file, because there are now six dialog files using this. Into what file might I move this so that this will still work? And how should that be done? Preferrably, I would like to be able to even have those functions work in SEADOGS.c, because I could use them for improving my Quick-Equip button (by having the game tell you the actual name of the stuff you equiped, instead of telling only that you equiped something).
Anyone wanting to have the dialogfiles, just ask. As it is now, it's basically just the exact blacksmith_dialog.c/h files with everything that says blade/sword replaced with gun. Hopefully, I'll come round to doing a better version later, with better dialog, but especially with better, merged, functionality.
BTW: Anyone think it'd be nice to have at least one gun-only smith somewhere in the archipelago? Alan Smithee had been trying to put some variation into the blacksmiths, so this might play into that nicely.
Hope you can give me a hand with these things. Thanks in advance! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/bounce.gif" style="vertical-align:middle" emoid=":b:" border="0" alt="bounce.gif" />