Jump to content

Allbrother

Members
  • Posts

    52
  • Joined

Everything posted by Allbrother

  1. Adding a questgiver where no personal stake exists would make the answer yes to all, no?
  2. Sorry for butting in, but I got curious and took a look at that spell - it changes the target's script to kick it out of the party (if it's in it) and then to DestroySelf() and give some approximation of its xp value. Not sure if that's recoverable, but if instead it Deactivate()ed (would it still process scripts?) it and left a block to Activate() and assign join dialog when global is flipped and a freedom spell to flip that global, maybe that could work? Just spitballing here...
  3. It sounds like the same issue as this:
  4. The guide and function are a bit outdated. Try using this function: https://github.com/Argent77/A7-add_kit_ex/tree/master
  5. Maybe RemoveItem (Spear) -> CreateMagicalItem (Spider item)-> CreateItemInSlot (spear) after duration could work, but the downside would be that if something else is equipped in the targeted slot, it would be destroyed I think. edit: possibly opcode 264 on equip can address that, not sure
  6. Dual classes only get hlas for their active class, that's a typo and don't call me shirley
  7. So for example Will use frames 0-4 for walking, 8-12 for ready/head turn etc? What happens if the bam doesn't have enough frames? Will it loop or will some of the sequences cause the creature to go invisible?
  8. This is great, thank you. I understand now why my initial attempt didn't work and how I accidentally fixed it. Yes, I used FIND_FREE_ANIM (along with TO_HEX_NUMBER) after I found it digging through another mod's cellar, but didn't execute it properly for my use case. One thing specifically that's still unclear to me - under most animation types, there's animation scheme that defines which suffix covers which sequences. But in it, each sequence code is followed by "=*number range*. For example type 2000 has this: What are those number ranges? My initial assumption was orientation, but that's noted separately and the numbers for it don't reach as high
  9. Somehow I stumbled my way into getting it to work but... no idea how or why. So if anyone has any documentation or knowledge on the inis and bam setup and naming conventions for the creature animation, I'd appreciate it
  10. Okay, I worked out how to add the new line to animate.ids and name the ini correctly and now my animation is available for selection. However, ingame it's showing a completely different asset than the one I provided. The ini I copied had a 4 letter resref that pointed to two 40 frame bams with g1 and g2 suffixes so I set up mine the same way. I didn't change anything else in the INI. I don't get why it isn't working. I also tried just using a single bam with the exact same name as the resref in the ini, but that didn't help either.
  11. Hi. Long story short, there was no available animation for a creature I need, so I prepared a bam file for the job, I found a default animation to copy the ini from and now I don't know what's the next step? The ini's resref leads to 2 as best as I can tell identical bams (g1 and g2), so I assume I'd have to give my bam the same treatment and I know my new ini has to be named as the first column of the new entry in animate.ids, but how do I do that? edit: Somehow I stumbled my way into getting it to work but... no idea how or why. So if anyone has any documentation or knowledge on the inis and bam setup and naming conventions for the creature animation, I'd appreciate it
  12. And I'm failing. And I don't know why. I've looked all over the script and it all feels like it should be working. So what I've done is appended the blob below to the area scripts. It's supposed to run once, roll 1d3 essentially and on 1 spawn level appropriate quest targets and on 2/3 spawn nothing and instead increment a global that when maxed (by running in other target areas) will spawn the targets regardless of the random roll. But it's spawning the quest targets in the first area visited 100% of the time for some reason. What am I doing wrong?
  13. The tra file (and the OP) still has entries for things that are no longer in the tp2.
  14. Thank you. Took some time (and a look at the linked code) to figure out how to properly use it, so to save the effort for anyone dumb like me finding this in the future (or more likely myself in the future once I've forgotten and am referring back to this), this is what worked for me: ACTION_IF FILE_EXISTS_IN_GAME ~statdesc.2da~ BEGIN OUTER_SPRINT variable1 ~string~ OUTER_SET variable2 = RESOLVE_STR_REF (~%variable1%~) COPY_EXISTING ~statdesc.2da~ ~override~ COUNT_2DA_ROWS 3 variable3 APPEND ~statdesc.2da~ ~%variable3% %variable2% bamfile~ END Turns out I had already stored it in variable3, just putting it in parameter2 of the add_spell_effect function did the job
  15. Hi. I got a couple of questions about adding a spell and having it display a custom portrait icon while it's in effect First, (i think) I know that to add custom portrait icons, I need to add a line in statdesc.2da. The way I found to do it (via insert_2da_row) doesn't allow me to use custom strings (it just adds what I put in verbatim rather than the reference) so my first question is, what's the proper way of doing this? My second question is, once I have my custom icon with correct string in place, how do I make my spell consistently use it regardless of whether there's been other modifications to statdesc.2da or not? My assumption here is that if I add the line to statdesc and it comes in at row 207, I can have my spell use opcode 142 with value 207 and it'll work for me, but if it's then installed on a game that already has extra lines in statdesc.2da, then my spell would be pointing to a wrong icon. Is that correct and if so, how do I get around that?
  16. Title pretty much. You get to level her once like every other NPC, but unlike others, she stays at that level no matter what level player 1 is. So if you approach Khalid and Jaheira at level 5, Khalid will level as expected to your level, but Jaheir will not.
  17. Sorry, mixed up my words, meant bytes. I did not realize that at all lol. I switched the field to edit as binary, noted the 4 number strings, switched it back, made a change and checked the binaries again to compare what changed. Knowing how the columns work is much more convenient. Also, I have the offsets, but until just know I didn't understand how exactly they incremented, now I do it'll be very helpful. Thank you very much for the schooling
  18. Thank you. Since the field is 4 bits, if I needed to edit a flag that appears in a later bit, how would that be formatted? For example if I wanted to add silver property (which if I've got this right is the last number in the second bit), what would I put after the BAND? Would it be 1b followed by eight 1s?
  19. Hi. I'm trying to wrap my head around some of the code used here and I wanted to ask a couple of questions if that's ok. Specifically about this bit in component 102: PATCH_IF (%type% = 27) BEGIN // crossbows READ_LONG 0x08 gen_name_strref PATCH_IF (GAME_IS ~bgee bg2ee iwdee eet~) BEGIN PATCH_IF (gen_name_strref = %light_xbow_strref%) BEGIN READ_BYTE 0x18 handed WRITE_BYTE 0x18 (~%handed%~ BAND ~0b11111101~) FOR (index = 0x54 ; index >= 0x50 ; index -= 4) BEGIN // loop through descriptions READ_LONG "%index%" "valid" PATCH_IF ("%valid%" < 2147483646) AND ("%valid%" >= 0) BEGIN // verify description is valid READ_STRREF "%index%" "description" INNER_PATCH_SAVE new_desc ~%description%~ BEGIN REPLACE_TEXTUALLY EXACT_MATCH ~Type: Two-handed~ ~~ END SAY_EVALUATED "%index%" ~%new_desc%~ END END END END 1.Does the hex code added to handed equal "no tick on two-handed"? And if so, where/how do you get the hex values for the different flags? 2.When verifying description is valid, are the numbers valid is being compared to string references? And if so, what's the significance of 2147483646? Is it just an arbitrary large number or is there a reason to use that specific number?
  20. Works like a charm now. F me, why didn't I think of trying that?! Thank you very much
  21. Must be a 2.5 thing then, because I got hit with "You cannot cast multiple instances of the same contingency spell on yourself." when I tried that. I even tried straight up plugging your working file in my 2da in case I fucked it up somehow, but same thing. Damn... I guess I'll have to live with the cluttered log. Thanks for the help
×
×
  • Create New...