Jump to content

New effect doesn't work


Recommended Posts

I've tried to assign the stun effect with Near Infinity to one of new mods items (Redfist Sabre), I don't know from which mode this weapon is. It's all new for me so I did it with some help. But it didn't work. I did it through savegame gam file editing the item in characters inventory.

Here are the mods if required:

  • BG1 Unfinished Business v32
  • BG1 Mini Quests and Encounters v27
  • BG1 NPC Project v32
  • BG2 Unfinished Business v.28
  • The Stone of Askavar v2.4
  • Ascalons Questpack v5.2
  • lefreut's Enhanced UI v4.8

Here is the result:

Redfist Stun Effect.png

Edited by CashDiver
Link to comment

It's those dice/level parameters. For most opcodes, including stun, those provide a level-based filter on what creatures it can effect. With the numbers you've got there, only creatures with level ≤ 1 and level ≥ 9 are affected. In other words, none of them.

Oh, and regarding the probabilities? Setting both to 100 creates an effect with a 0% chance of happening. That 30/0 is a 31% chance, and changing it to 100/0 would be a 100% chance. It's all about the range between the two numbers (and how it intersects with the range from 0 to 99).

Edited by jmerry
Link to comment
Posted (edited)

Thanks, I messed these dice/level parameters and removed them for now, the effect worked but in a completely different way. It triggers when equipped and affects the character despite the Target value is Preset target. Party members including character also try to make a saving throw when character equipping this weapon. Effect should affect the hit target. No other changes were maid.

Edited by CashDiver
Link to comment

Ah. Well, that isn't something that you can see based on the effect alone. It's about where the effect is. If you want an effect to apply to whatever a weapon hits, it needs to go on the weapon's attack ability.

Link to comment

Do you mean an order of effects? The discussed weapon already had four of them so the new effect was last in turn. I moved it closer to Item ability field by Cut/Paste, but everybody still tries to make a saving throw and the effect affects the equipped character. Here is how the things are:

Effect location.png

Effect.png

Link to comment

Yes, that's what I meant.

Top-level "Effect" entries on an item are normally equip effects. For example, this item has the "set color" effects that govern its equipped appearance. Then you get the equip-adjacent effects like that opcode 319 effect (judging by the "Redfist Sabre" name, it's probably there so shamans can't use it; shamans have the same class usability flags as druids, so anything one class can use that the other can't has to be done with 319s). Anything there with a target other than "self" or a timing other than mode 2 "when equipped" gets very wonky.

For an effect like "this weapon hits someone, and that does something", the effect has to belong to the item's attack ability. That "Melee" ability is what lets you swing the weapon and hit a target for damage; any effects you add to that ability will apply after that damage is dealt.

The order of effects can matter sometimes, but all it does intrinsically is set the order in which things are resolved. If it's earlier in the list, it gets dealt with earlier. For example, buff spells typically have an opcode 321 effect for anti-stacking purposes. As the very first thing this spell does, remove all currently ongoing effects of this spell from the target. Then apply a new set of those effects. You cast Armor of Faith last round for 25% resistance to everything - casting a new instance of Armor of Faith will just refresh the duration, not increase that resistance to 50%. What if that op321 effect weren't the first? Then we'd be removing the effects we'd applied just now - completely counterproductive.

So order matters when effects interact with other effects in the same bunch. Here, with stuff like color changes and that op319, it doesn't matter. Those would do the same thing in any order.

Link to comment

To quote the IESDP:

Quote
Note: When this field is used as Maximum Level:
  • A 7 ➔ 1 dual-class character qualifies as HD 7, even though the level 7 class is still inactive.
  • A 1/7/1 multi-class character qualifies as HD 7, not level 3 (average).
  • The 2nd/3rd class levels are NOT included for single-classes.
    • A 1/30/1 single-class character qualifies as HD 1.

And swap "Maximum" to "Minimum" for the other side.

There are a few effects - most commonly damage and HP changes - that roll the dice. Everything else uses these fields to impose a level filter, like the classic Sleep spell.

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...