Lauriel Posted February 18, 2020 Posted February 18, 2020 (edited) Is there a way to determine how much gold the party has? I know how to tell if they have more or less than a certain amount, but I need to determine a 'share'. So I need to know total amount of party gold, the number of party members, then be able to divide gold amount by the number of party members. I'm hoping this isn't hard to do in a script, though...I've never seen a divide script function. Am I outta luck? I might be able to hook up a recursive call to a script to get an approximation on the gold amount and the number of party members (though recursive for this is a bit of an overkill) The divide... I got nothing. Is there an easier way to do this? Is there A way to do this? The better way to do this would be to add up all the time in the group for each member and divide the party gold by that then multiply by the time that NPC has been in the group. I like that much better. Am I just howling at the moon? Edited February 18, 2020 by Lauriel Quote
lynx Posted February 18, 2020 Posted February 18, 2020 Division is possible with tobex, since it has an Eval trigger. Quote
Lauriel Posted February 18, 2020 Author Posted February 18, 2020 1 hour ago, lynx said: Division is possible with tobex, since it has an Eval trigger. I have no idea what tobex is. Quote
lynx Posted February 18, 2020 Posted February 18, 2020 a bunch of clever engine hacks for the original bg2. Quote
Lauriel Posted February 18, 2020 Author Posted February 18, 2020 Ahh, then I probably can't use that. I need this for EET. Quote
subtledoctor Posted February 18, 2020 Posted February 18, 2020 Isn’t gold a stat? (Stat 45.) You could fudge it really roughly with a bunch of CheckStatGT triggers? Quote
Lauriel Posted February 18, 2020 Author Posted February 18, 2020 (edited) Yes, there are triggers for GT and LT gold amount, so like I said, I can set up a recursive thingie to get it to estimate. I can figure out a share based on number in the party, I think, but of course this is no longer what I want to do. Why I can't leave well enough alone, I don't know, but now I want to split it based upon the time they've been in the party. I can't seem to lay my hands on that stat, though. I can see it in EEKeeper, but it doesn't seem to be documented anywhere in IESDP - that I can find. Edited February 18, 2020 by Lauriel Fixed typos Quote
subtledoctor Posted February 18, 2020 Posted February 18, 2020 (edited) I don't think it's usable, at least from a very quick perusal. Anyway from a player's perspective I'm not sure I would like that, because it might not be obvious how long someone's been in the party and thus how much gold they would take with them. A quick-and-easy rule like "whenever you dismiss a companion they will take an amount of gold roughly close to 1/6th of your current gold" is easy to remember, and pretty easy to do rough calculations in the moment. Edited February 18, 2020 by subtledoctor Quote
Lauriel Posted February 18, 2020 Author Posted February 18, 2020 I agree, it would be a lot quicker and easier. I just don't like it. Quote
Lauriel Posted February 18, 2020 Author Posted February 18, 2020 I could set up a system to do this, I've figured out how (I think), but it's overkill for what I need at the moment. I'll put this idea on hold for another mod. Thank you for the input, @subtledoctor Quote
lynx Posted February 19, 2020 Posted February 19, 2020 The time spent in party is not a CRE stat, but stored in the GAM uncalculated. So I highly doubt it's accessible. Quote
Lauriel Posted February 19, 2020 Author Posted February 19, 2020 Yeah, I'll have to use a small set of globals if I want to do this in the future. It's good to know at least, one way or another, if it's possible or not. Thank you, @lynx. Quote
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.