Aller au contenu

Photo

Time Passage In-Game


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Evelath

Evelath
  • Members
  • 56 messages
Hello Everyone,

I ran a search on this subject but didn't seem to get information on exactly how this might work:

I would like to extend the amount of minutes of RL time that produce an hour in-game. (ideally; 30 minutes RL = 1 hour in-game). However I know this will have an effect on numerous spells in-game and I would like to avoid having this happen.

Since I know this will require scripting knowledge I decided to post here.

Thanks for any assistance anyone can offer :)

#2
Squatting Monk

Squatting Monk
  • Members
  • 446 messages
Setting the time scale for the module is done in the Toolset, no scripting required. The setting you're looking for is under Edit -> Module Properties -> Advanced -> Minutes/Hour. The default setting is 2, but you can increase this as you wish.

However! This will affect any spells or effects that measure their duration in hours. AFAIK, there is no way around this other than modifying each spell script.

Modifié par Squatting Monk, 31 janvier 2013 - 05:07 .


#3
Squatting Monk

Squatting Monk
  • Members
  • 446 messages
An example of how to do this editing...

A spell like Bull's Strength lasts for a number of hours equal to the caster's level. We want to keep the time at 2 RL minutes per caster level. So we open nw_s0_bullstr, find the following line:

float fDuration = HoursToSeconds(nCasterLvl);

...and change it to:

float fDuration = IntToFloat(120 * nCasterLvl);

Modifié par Squatting Monk, 31 janvier 2013 - 05:05 .


#4
Evelath

Evelath
  • Members
  • 56 messages
Thank you for your timely response. I will start sifting through all the spell scripts. :) I appreciate your help!