Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Planescape: Torment: Enhanced Edition has been released! Visit www.planescape.com to purchase and check for details. Planescape: Torment: Enhanced Edition Official Soundtrack is available.
Soundtracks for BG:EE, SoD, BG2:EE, IWD:EE are now available in the Beamdog store.
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

Changing spell duration's

Necromanx2Necromanx2 Member Posts: 429
I am trying to see where spell duration's can be changed with NearInfinity. Can someone help me understand what drives spell duration and what I need to change to have a spell last 1 turn/level?

Comments

  • argent77argent77 Member Posts: 1,930
    Spell duration is applied on a per effect basis. The relevant effects can be found inside Ability structures. In NI look for the effect field "Timing mode" set to "Instant/Limited (1). In this case you will see the duration in the "Duration" field, two fields further below. (Audio-)visual or message-related effects don't usually have a duration. However, they can be triggered at a specified delay (e.g. via Timing mode "Delay/Permanent (4)") which should be adjusted as well if you want to change duration of a spell.

    Duration of timing mode 1 (Instant/Limited) is defined in seconds. One turn is 10 round, one round is 6 seconds, so duration for one turn is 60 seconds. There are also timing modes using ticks instead (1/15th seconds), but they are rarely used by spells.

    In the worst case you have to adjust dozens or hundreds of effects manually (e.g. for spells with level-dependent durations). Afaik, DLTCEP provides some kind of automatism to help set up level-dependent values quickly. But I haven't used it yet, so I can't say how useful it might be in your case.
  • subtledoctorsubtledoctor Member Posts: 7,679
    edited October 12
    Also note that if duration is going to be x time per level, the spell needs to have an ability (header) for each level (generally up to level 20) and then ineach ability there will be anywhere from one to several dozen effects (extended headers) with durations that need to be changed. It can involve a LOT of manual editing.

    If you are very clever with Weidu, you could probably automate a looping function that reads the min_level field in each header and sets the duration of all effects in that header to a mathematical operation based on that min_level field. But it would be complicated, and it could sweep up effects that are not intended to have durations related to the level, like sound effects and text displays.

    In short, it's a big PITA. Not for nothing, when I manually make/edit spells, I set their level-dependent durations and effects to something "per five levels." Like, "one hour per five levels" could be s good substitute for "one turn per level."
  • Necromanx2Necromanx2 Member Posts: 429
    I am not seeing the "Timing Mode".

    I am trying to change the duration of the Water elemental summons from FnP. So I used NI to open spell file B_PR602.SPL to try to change the spell duration to 1 turn/level. I just don't see anything that seems to show what you @argent77 and @subtledoctor note above?

    I am totally new to this modding stuff, so I am sorry that I am ignorant of even basic things.
  • argent77argent77 Member Posts: 1,930
    The procedure in screenshots:
    1. Select your spell
    2. Select ability structure and open it with double-click or "View/Edit" button
    image

    3. Select the effect to adjust (double-click or "View/Edit" button to open substructure)


    4. Look for "Timing mode" and Duration fields
    5. Select "Duration" and enter the desired value


    Rinse and repeat for all effects with duration or delay. This will add up quickly if you have to do it for multiple ability structures.

  • Necromanx2Necromanx2 Member Posts: 429
    edited October 12
    I found the screen you generously hand held me too.

    I am not sure what I need to set to make the summon last 1 turn / level?




    EDIT: I think I see the light. Let me play a bit.

    EDIT2: I see how to do it. Thanks!
  • Necromanx2Necromanx2 Member Posts: 429
    edited October 14
    @argent77, it worked!

    Can I ask your help on something else. How would I turn the summoned elemental AI off?

    EDIT: I figured it out. Thanks again for the help on changing duration!
    Post edited by Necromanx2 on
Sign In or Register to comment.