Posted by: jastey
« on: July 03, 2014, 07:38:02 AM »(Component is included in v13.1)
when the player picks prism's pockets:
prism needs to cover the following possibilities
left gem taken, right gem in hand -- player has left gem
left gem taken, right gem in hand -- player stashed/sold left gem
left gem taken, right gem in hand -- player turned in left gem for bounty
right gem taken, left gem in hand -- player has left gem
right gem taken, left gem in hand -- player stashed/sold left gem
right gem taken, left gem in hand -- player turned in left gem for bounty
left gem taken, right gem taken -- player has both gems
left gem taken, right gem taken -- player stashed/sold both gems
left gem taken, right gem taken -- player turned them in for bounty
and i suppose out of fullness sake he should notice the following tho the statements don't have to be the same.
left gem taken, right gem taken -- player has left gem, stashed/sold right gem
left gem taken, right gem taken -- player has left gem, turned in right gem for bounty
left gem taken, right gem taken -- player has right gem, stashed/sold left gem
left gem taken, right gem taken -- player has right gem, turned in left gem for bounty
[url]http://sasha-altherin.webs.com/mods/abPrismEmeraldsv3.7z[/url]
the previous was this[url="http://sasha-altherin.webs.com/mods/abPrismEmeraldsv3.7z"]http://sasha-altherin.webs.com/mods/abPrismEmeraldsv3.7z[/url]
and the modified link is[url=http://sasha-altherin.webs.com/mods/abPrismEmeraldsv3.7z]http://sasha-altherin.webs.com/mods/abPrismEmeraldsv3.7z[/url]
which seems to work, so apparently the url tag doesn't like the "" I am very embarrassed to say, that I don't seem to have this version. At least, I cannot find the version on my computer (I was transferring my files from one to the newer so I have three disc drives where I put files currently).
So unless it's something insane like script bog down from an insane amount of mods, I think this should be working now.
http://sasha-altherin.webs.com/mods/abPrismEmeraldsv3.7z
yeah i know about the regexp section in weidu readme. it doesn't make sense to me. All I know is from my old dos days where * meant anything and I could narrow down by placing it among characters I knew were in what I wanted. Looking at what you have here I don't see how it does it. I'm not doubting that it works, I just don't understand it.REGEXP in a .d file? how?There is a regexp section in the WeiDU documentation and also a REPLACE_ACTION_TEXT example that uses regexp (sort of). Something like this should work:
do note any .d file regexp in the BG1 fixpack is copied from something else. I don't know what it means, just that it works.
REPLACE_TRANS_ACTION ~%tutu_var%oublek~ BEGIN %BGT_DiffState% END BEGIN 0 END ~GivePartyGold(\([0-9]+\))~ ~GivePartyGold(\1) TakePartyItem... etc.~
REGEXP in a .d file? how?There is a regexp section in the WeiDU documentation and also a REPLACE_ACTION_TEXT example that uses regexp (sort of). Something like this should work:
do note any .d file regexp in the BG1 fixpack is copied from something else. I don't know what it means, just that it works.
I needed to verify cause on the surface it was only set to 3 in the dialog. There is a variable that's replaced depending upon the method chosen at install time and inside the definition of said variable was where it got set to 1. Gotta remember it's been a few weeks since I'd last looked at any of this.Scoured the code and determined that I should actually set the global on those blocks to 3 after they've been activated.Isn't that sort of what jastey said? Or are you just saying you had to verify what the value should be...
Since you're not actually changing the gold amount, is it necessary to use that as the text you're replacing or is that all there is? Should be able to use regexp on it anyway, just in case some other mod's changed the gold amount.I would have simply replaced the TakePartyItem action BUT there are two of them and it would cause unneeded duplication. So I remove the existing TakePartyItem actions first from those two states and then what's left is the give gold action and some erase journal entries. Since journal strrefs can be different across platforms, it is safer to use the give gold action to tie in the new actions.
Scoured the code and determined that I should actually set the global on those blocks to 3 after they've been activated.Isn't that sort of what jastey said? Or are you just saying you had to verify what the value should be...
REPLACE_TRANS_ACTION ~%tutu_var%oublek~ BEGIN %BGT_DiffState% END BEGIN 0 END ~GivePartyGold(150)~ ~GivePartyGold(150) TakePartyItem("abgfEyeL") TakePartyItem("abgfEyeR") %ERASEJOURNALENTRY_0% %ERASEJOURNALENTRY_1% %ERASEJOURNALENTRY_2% %ERASEJOURNALENTRY_3% %ERASEJOURNALENTRY_4% %ERASEJOURNALENTRY_5%~
REPLACE_TRANS_ACTION ~%tutu_var%oublek~ BEGIN %BGT_DiffState% END BEGIN 0 END ~GiveGoldForce(150)~ ~GiveGoldForce(150) TakePartyItem("abgfEyeL") TakePartyItem("abgfEyeR") %ERASEJOURNALENTRY_0% %ERASEJOURNALENTRY_1% %ERASEJOURNALENTRY_2% %ERASEJOURNALENTRY_3% %ERASEJOURNALENTRY_4% %ERASEJOURNALENTRY_5%~
and in another spotREPLACE_TRANS_ACTION ~%tutu_var%oublek~ BEGIN 4 END BEGIN 0 END ~GivePartyGold(300)~ ~GivePartyGold(300) TakePartyItem("abgfEyeL") TakePartyItem("abgfEyeR") %ERASEJOURNALENTRY_0% %ERASEJOURNALENTRY_1% %ERASEJOURNALENTRY_2% %ERASEJOURNALENTRY_3% %ERASEJOURNALENTRY_4% %ERASEJOURNALENTRY_5%~
REPLACE_TRANS_ACTION ~%tutu_var%oublek~ BEGIN 4 END BEGIN 0 END ~GiveGoldForce(300)~ ~GiveGoldForce(300) TakePartyItem("abgfEyeL") TakePartyItem("abgfEyeR") %ERASEJOURNALENTRY_0% %ERASEJOURNALENTRY_1% %ERASEJOURNALENTRY_2% %ERASEJOURNALENTRY_3% %ERASEJOURNALENTRY_4% %ERASEJOURNALENTRY_5%~