Jump to content


Photo

Khalid mod for BG II released


  • Please log in to reply
175 replies to this topic

#81 Zireael

Zireael
  • Member
  • 191 posts

Posted 29 June 2011 - 10:45 PM

This is not help I afraid...


Then I am afraid we'll have to wait for Gen1e or someone else who knows his scripts better than I do...

#82 Sanctifer

Sanctifer

    Anarchiviste

  • Member
  • 137 posts

Posted 30 June 2011 - 12:49 AM

Sanctifier, did you have any issues so far?


I haven't had time to play yet, but I'll let you know, if there are bugs or if everything is fine :)

Edited by Sanctifer, 30 June 2011 - 12:50 AM.

« Regarde moi ces émincés d'oignons, je voudrais tous les enfiler sur une corde pour m'en faire une parure ! »

#83 Zireael

Zireael
  • Member
  • 191 posts

Posted 30 June 2011 - 04:40 AM

Please download fixes.zip from the same post as usual. It contains fixes for: the interjection with the slave girl; Jaheira's friendship talks; the merchant in Trademeet.

As for the flirts and romance post 'Ployer dead' talk, I hope to look into it this weekend. Sanctifier, if you get to playing, please report if those work or not.

I'm leaving for hols sometime next week and I won't be able to work on Khalid then. Just so you know ;)

#84 Senka

Senka
  • Modder
  • 134 posts

Posted 30 June 2011 - 05:06 AM

As for the flirts and romance post 'Ployer dead' talk

I saw them in previous version - two, yes? Just in process and soon after. But nothing else.

It contains fixes for: the interjection with the slave girl;

I can check it - I have very early save.
And i'd like to insist: the lock of Jaheira'hair provokes the stutter bug. I put it in Jaheira inventory, in Khalid inventory - both began to stand trying to say smth...

#85 Zireael

Zireael
  • Member
  • 191 posts

Posted 30 June 2011 - 05:56 AM

It contains fixes for: the interjection with the slave girl;

I can check it - I have very early save.
And i'd like to insist: the lock of Jaheira'hair provokes the stutter bug. I put it in Jaheira inventory, in Khalid inventory - both began to stand trying to say smth...


Please check - I'd be grateful.
As to why the lock would provoke stuttering, I have no idea. The only thing it does is add luck to the character carrying it.

#86 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 30 June 2011 - 06:29 AM

Missing lovetalks
OR(5)
Global("ZIJaheiraTalk","GLOBAL",5)
Global("ZIJaheiraTalk","GLOBAL",7)
Global("ZIJaheiraTalk","GLOBAL",11)
Global("ZIJaheiraTalk","GLOBAL",16)
Global("ZIJaheiraTalk","GLOBAL",19)
Global("ZIJaheiraTalk","GLOBAL",25)
"(5 | 7 | 11 | 16 | 19) & 25". Change OR(5) to OR(6).


Hairlock stutter
IF
  Delay(6)
  HasItem("MISC5V",Myself)
THEN
  RESPONSE #100
    ApplySpellRES("ZIKHLUCK",Myself)
END
The ApplySpell() iirc interrupts the action queue. I don't know what to suggest... Make it equippable by Khalid/Jaheira maybe - amulet or just quickslot item, iirc these work too.

Edited by GeN1e, 30 June 2011 - 06:48 AM.

Retired from modding.


#87 Senka

Senka
  • Modder
  • 134 posts

Posted 30 June 2011 - 08:11 AM

"(5 | 7 | 11 | 16 | 19) & 25". Change OR(5) to OR(6).

Oh! Number in brakes would be equal to lovetalk quantities? (you know I don't understand all this things...). Then
//Flirts started by Khalid
IF
!AreaType(Dungeon)
CombatCounter(0)
InParty(Myself)
InParty("JAHEIRA")
See("JAHEIRA")
RealGlobalTimerExpired("ZIJaheiraFlirtTime","GLOBAL")
OR(3)
Global("ZIJaheiraFlirt","GLOBAL",5)
Global("ZIJaheiraFlirt","GLOBAL",15)
Global("ZIJaheiraFlirt","GLOBAL",17)
Global("ZIJaheiraFlirt","GLOBAL",21)

OR(3) would be change to OR(4), and
//Jaheira starts the flirt
IF
!AreaType(Dungeon)
CombatCounter(0)
InParty(Myself)
InParty("JAHEIRA")
See("JAHEIRA")
RealGlobalTimerExpired("ZIJaheiraFlirtTime","GLOBAL")
OR(5)
Global("ZIJaheiraFlirt","GLOBAL",1)
Global("ZIJaheiraFlirt","GLOBAL",3)
Global("ZIJaheiraFlirt","GLOBAL",7)
Global("ZIJaheiraFlirt","GLOBAL",9)
Global("ZIJaheiraFlirt","GLOBAL",13)
Global("ZIJaheiraFlirt","GLOBAL",19)
Global("ZIJaheiraFlirt","GLOBAL",23)
OR(5) to OR(7)?
Sorry for stupid question... :rolleyes:

Please check - I'd be grateful.

Yes, girl thanks and leave, Khalid stays in party.

#88 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 30 June 2011 - 08:27 AM

OR(3) would be change to OR(4), and

OR(5) to OR(7)?

Yes

Retired from modding.


#89 Zireael

Zireael
  • Member
  • 191 posts

Posted 30 June 2011 - 08:47 AM

Thanks, Gen1e. I had no idea that the script for luck would make problems - in fact, it was suggested to me by one of the betatesters, I didn't come up with it on my own.

I fixed the script for romance & flirts (stupid of betatesters & me not to catch it). Please grab the new version of ZIKHAL.baf from the usual place.


EDIT: How do I make the item cast Luck then? Hopefully automatically? And how to make it equippable? I just realized I don't know.
I have NI, if it helps.

Edited by Zireael, 30 June 2011 - 08:53 AM.


#90 Senka

Senka
  • Modder
  • 134 posts

Posted 30 June 2011 - 08:49 AM

May be I should install PID?

#91 Zireael

Zireael
  • Member
  • 191 posts

Posted 30 June 2011 - 08:53 AM

May be I should install PID?


If you want, you can. It works now.

#92 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 30 June 2011 - 10:17 AM

How do I make the item cast Luck then? Hopefully automatically? And how to make it equippable?

This should work.
// the lock itself
COPY_EXISTING misc5v.itm override
  WRITE_SHORT 0x1c 1 // amulet
  LPF ADD_ITEM_EQEFFECT INT_VAR opcode=22 timing=2 parameter1=1 END
  SAY DESC ~This is a lock of Jaheira's hair. Somehow, this was used by the Baron to curse her.

STATISTICS:

Equipped Abilities:
 Luck: +1 bonus

Usable By:
 Jaheira
 Khalid~

And to prevent anybody else from equipping it
// only Khalid and Jaheira can equip it
COPY_EXISTING - pdialog.2da override
  COUNT_2DA_ROWS 8 row
  FOR (i=0;i<row;i+=1) BEGIN
    READ_2DA_ENTRY i 0 8 entry
    PATCH_IF ~%entry%~ STRING_CONTAINS_REGEXP ~\(jaheir\|khalid\)~ BEGIN
      SPRINT $npc("%i%") ~%entry%~
    END
  END
COPY_EXISTING_REGEXP GLOB ~.*\.cre~ override
  READ_ASCII 0x280 dv (32) NULL
  PATCH_IF ~%dv%~ STR_CMP ~~ BEGIN // if has death variable
    PHP_EACH npc AS ind => res BEGIN
      PATCH_IF ~%dv%~ STRING_EQUAL_CASE ~%res%~ BEGIN
        LPF ADD_CRE_EFFECT INT_VAR opcode=180 timing=9 STR_VAR resource=misc5v END
      END
    END
  END
BUT_ONLY

// Charname can't
<<<<<<<<inlined/hairlock0603.baf
IF
Global("zihairlock","ar0603",0)
THEN
RESPONSE #100
SetGlobal("zihairlock","ar0603",1)
ApplySpellRES("zikhluck",Player1)
END
>>>>>>>>
<<<<<<<<inlined/hairlock4000.baf
IF
Global("zihairlock","ar4000",0)
THEN
RESPONSE #100
SetGlobal("zihairlock","ar4000",1)
ApplySpellRES("zikhluck",Player1)
END
>>>>>>>>
EXTEND_BOTTOM ar0603.bcs ~inlined/hairlock0603.baf~
EXTEND_BOTTOM ar4000.bcs ~inlined/hairlock4000.baf~
New zikhluck.spl is in attachment, and you also have to actually copy it to override - the current version doesn't.

Won't affect already encountered NPCs. Otherwise play with ability score requirements and usability flags to restrict item usage as much as possible. Or use ToBEx, which I don't really advise at this moment.

Attached Files


Edited by GeN1e, 30 June 2011 - 10:19 AM.

Retired from modding.


#93 Zireael

Zireael
  • Member
  • 191 posts

Posted 30 June 2011 - 10:36 AM

The code stuff goes into Setup-Khalid.tp2, right, Gen1e?

And big thanks for helping with it. I'll be sure to credit you when v.2.5 comes out and I update the readme.

#94 Senka

Senka
  • Modder
  • 134 posts

Posted 30 June 2011 - 10:38 AM

How PID work? Do I need to do smth?
PS: I began from the very early save.

#95 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 30 June 2011 - 12:07 PM

Force-talk (F1) to them.

Retired from modding.


#96 Senka

Senka
  • Modder
  • 134 posts

Posted 30 June 2011 - 01:08 PM

Well PID for Jaheira work properly but Khalid repeats his only banter with PC...

#97 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 30 June 2011 - 04:47 PM

Khalid repeats his only banter with PC...

This ~What will you do now, Gorion's ch-child?~ one?

That's another locals/global thing. I'll simply list search results, you decide yourself how to do about them.

"ziplayertalk" - zikhal.baf (1 locals - changed to globald, I presume, - 9 global), zikhaljj.d (5 locals, 2 global).
"ziplayertalktob" - zikh25.baf (3 locals, 1 global), zikh2jj.d (5 locals).

Retired from modding.


#98 Zireael

Zireael
  • Member
  • 191 posts

Posted 30 June 2011 - 10:39 PM

Link to the new version of Khalid: http://www.shsforums...post__p__517833

Jaheira's hair fixed, looping friendship talks fixed, some more fixes in the scripts (GLOBAL vs. LOCALS)

#99 Senka

Senka
  • Modder
  • 134 posts

Posted 30 June 2011 - 10:58 PM

zikhal.baf (1 locals

There is no locals

And I don't understand what to do...

#100 Zireael

Zireael
  • Member
  • 191 posts

Posted 30 June 2011 - 11:02 PM

zikhal.baf (1 locals

There is no locals

And I don't understand what to do...


Don't worry. I fixed it for you :)
Please download the new version of Khalid. Everything you reported is now fixed.