Spell Duration

Everything about development and the OpenMW source code.
Post Reply
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Spell Duration

Post by Zini »

Calling upon the collective MW modding knowledge gathered in this forum: The duration of spells is given by a single integer value. What does this represent? Seconds, I presume? Is it ingame time or wall time?
User avatar
sirherrbatka
Posts: 2159
Joined: 07 Aug 2011, 17:21

Re: Spell Duration

Post by sirherrbatka »

Seconds, wall time. Ingame time would make no sens.

PS
But It seems that morrowind somehow translates spell duration to ingame time (ultra-long duration spells and resting).
ezzetabi
Posts: 407
Joined: 03 Feb 2012, 16:52

Re: Spell Duration

Post by ezzetabi »

As a matter of fact it is game time. But there is a keen conversion so that in normal play 1 unit is 1 second.

But actually 1 time unit for spells is 30 game seconds (by default, time speed can be changed).

(I think)
Last edited by ezzetabi on 13 Apr 2012, 12:45, edited 1 time in total.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Spell Duration

Post by Zini »

Makes sense. And is easy to implement.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Spell Duration

Post by Zini »

Still fiddling around with magic. From what I see when casting spell the respective skill only affects mana costs and chance of success, but not duration or strength of the generated magic effects. Can anyone confirm this?
User avatar
sirherrbatka
Posts: 2159
Joined: 07 Aug 2011, 17:21

Re: Spell Duration

Post by sirherrbatka »

The respective skill only affects chance of success. Not mana cost (there is a mod for that). It worked this way in daggerfall (but in daggerfall spell was casted with 100% chance to success).
User avatar
heilkitty
Posts: 158
Joined: 11 Aug 2011, 07:57
Location: Vivec City, MW
Contact:

Re: Spell Duration

Post by heilkitty »

sirherrbatka wrote:Not mana cost (there is a mod for that).
Does this mod use scripts or alters some GMSTs?
User avatar
sirherrbatka
Posts: 2159
Joined: 07 Aug 2011, 17:21

Re: Spell Duration

Post by sirherrbatka »

Script. Checks for spell sound and gives some percent of magicka back. Very hackish.

PS
http://www.elricm.com/nuke/html/modules ... s&lid=2042
http://planetelderscrolls.gamespy.com/V ... il&id=7807
Post Reply