Code: Select all
_hire_ task:
pay 1000 money do _hired_ otherwise do _poor_
However, when I tried to hire them, It did both: it gave me the mercenaries as companions and then displayed the "you don't have enough money" message. And then when I checked my inventory most of my gold was gone.
So, I checked a few things in the quest´s code and the quest debugger, and turns out what was happening was that, instead of charging me the money once, the "pay x gold" command kept charging me 1000 gold over and over again as long as the _hire_ task was active until I didn't have enough to pay the 1000 gold, at which point it displayed the "you don't have enough money" message.
Anyway, I can fix it by making it so that the _hired_ task deactivates the _hire_ task, so it's no big deal, but it's still weird because this wasn't the case before. Back when I first wrote this mod it just used to charge the money only once regarldless of wether the task kept activated afterwards or not, which makes me think that maybe something about the way this quest command works got changed in the newer vessions of the game? I'm not exactly sure when this started being an issue because I haven't been playing daggerfall much in the last few months, but I remember it working correctly in the alpha versions at least.
EDIT: I modified my mods to stop this issue from affecting them, but I still think it might be worth looking into this quest command because other quests that do the same thing (using this command and then not clearing the task that calls for it) might have gotten broken in the same way and started charging the player infinitely.