Glitch with player made spells

Post here if you need help getting started with Daggerfall Unity or just want to clarify a potential bug. Questions about playing or modding classic Daggerfall should be posted to Community.
Ommamar
Posts: 541
Joined: Thu Jul 18, 2019 3:08 am

Re: Glitch with player made spells

Post by Ommamar »

D
Last edited by Ommamar on Sat Apr 18, 2020 2:14 am, edited 1 time in total.

User avatar
Teralitha
Posts: 359
Joined: Wed Jul 17, 2019 3:44 pm

Re: Glitch with player made spells

Post by Teralitha »

Wouldnt the +10 apply to lvl 1, making the duration 11? And then apply again lvl 6 and 12 etc. I could check, but I always thought it did. Ive never made a spell with such a high interval though, because it doesnt really help.

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: Glitch with player made spells

Post by Interkarma »

The duration formula is:

Code: Select all

totalRounds = DurationBase + DurationBonus * FloorInt(CasterLevel / DurationPerLevelValue)
You always start with the base value, and the bonus is only applied as character reaches those level multiplier thresholds.

Otherwise, they could simply make a spell that gives them a bonus every 20 levels. Then the spell will be even cheaper with a larger bonus, and the character is still at level 1.

Ommamar
Posts: 541
Joined: Thu Jul 18, 2019 3:08 am

Re: Glitch with player made spells

Post by Ommamar »

Teralitha wrote: Thu Aug 01, 2019 9:21 pm Wouldnt the +10 apply to lvl 1, making the duration 11? And then apply again lvl 6 and 12 etc. I could check, but I always thought it did. Ive never made a spell with such a high interval though, because it doesnt really help.
Last edited by Ommamar on Sat Apr 18, 2020 2:14 am, edited 1 time in total.

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: Glitch with player made spells

Post by Interkarma »

Jay is correct, the division is floored (truncated). This is clearly shown in formula above. If you have a spell that gives you a bonus every 6 levels, you will get your first bonus at level 6, the next at level 12, and so on.

When you cast the spell sequentially, each cast will stack duration onto the incumbent. For simplicity: if each cast gives you 1 round and you cast it twice, then 1+1=2.

But don't forget that first round can last less than 5 seconds as magic rounds are synchronised to game minutes (5 seconds of real-time). That's why a 1-round duration spell can expire anywhere from 0-5 seconds, as first round is always the remainder of current game minute. Jay also explained this correctly earlier.

Ommamar
Posts: 541
Joined: Thu Jul 18, 2019 3:08 am

Re: Glitch with player made spells

Post by Ommamar »

D
Last edited by Ommamar on Sat Apr 18, 2020 2:14 am, edited 1 time in total.

User avatar
Jay_H
Posts: 4072
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Glitch with player made spells

Post by Jay_H »

Ommamar wrote: Fri Aug 02, 2019 12:43 am Ok so lets work it in seconds. Using your example say cast gets 4 second of actual time one first cast but only 3 seconds of use time on second cast giving a one second recast time that is 6 seconds of time you would actually see the spell displayed. So my understanding is that would be considered two rounds but not necessarily 10 seconds of use that you would see.
Yes.
I am assuming that the higher your wisdom is the closer you would get to the 5 second threshold which is one of the reasons that a spell seems to last longer then it did on the previous level if you upgraded wisdom.
No, Wisdom is irrelevant. The closer you cast the spell to the five-second tick, the longer it'll last.

Grab a metronome online and set it to tick every 5 seconds. Every tick you hear is the length of a magic round. If you cast the spell right before the tick, it'll last 0.2 seconds. If you cast it right after the tick, it'll last 4.9 seconds.

If you want a good spell, forget the /X levels thing and just do:

Code: Select all

Duration:
1-1 plus (5-5) per 1 level
That means, at level 1, it'll be fractioned seconds; at level 2 it'll be 25+fraction seconds; at level 3 it'll be 50+fraction seconds, level 4 is 75+fraction seconds and so on. The fractioning only happens on the first round.

Ommamar
Posts: 541
Joined: Thu Jul 18, 2019 3:08 am

Re: Glitch with player made spells

Post by Ommamar »

D
Last edited by Ommamar on Sat Apr 18, 2020 2:16 am, edited 1 time in total.

User avatar
Jay_H
Posts: 4072
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Glitch with player made spells

Post by Jay_H »

For a level one or two character a front-loaded spell (ie: 10-10 + 1 per level) is better. Once you get to higher levels, a back-loaded spell (ie: 1-1 + 10 per level) is better.

Ommamar
Posts: 541
Joined: Thu Jul 18, 2019 3:08 am

Re: Glitch with player made spells

Post by Ommamar »

D
Last edited by Ommamar on Sat Apr 18, 2020 2:16 am, edited 1 time in total.

Post Reply