Aller au contenu

Photo

Renaming months/years for the in-game calendar


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

#1
jackkel dragon

jackkel dragon
  • Members
  • 2 047 messages
After I copied the Storm of Zehir scripts to my own campaign's folder (mostly for the death and rest scripts), the little clock/calender in the lower left corner appeared while testing my campaign. I'm wondering if there's a way to change the names of months and such on the calender, since I'm not making a Forgotten Realms module. Is there a 2da or something I could edit to create the names I want to display?

#2
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 603 messages
There isn't a 2da. The years and months are handled in the ginc_time.nss include file function GetFRYearName and GetFRMonthName. The years it includes are 1372 to 1380. You should be able to modify the GetFRYearName function to return whatever year names you want, and modify GetFRMonthName to return whatever month names you want. You will need to recompile the scripts that use ginc_time (usually the module heartbeat script k_mod_hb is used to display the clock, so recompiling that may be enough).

Regards

Modifié par Kaldor Silverwand, 13 novembre 2011 - 02:52 .


#3
jackkel dragon

jackkel dragon
  • Members
  • 2 047 messages
Wow, that sounds much easier than I was expecting. I'll try it out and report on how it works.

#4
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 603 messages

jackkel dragon wrote...

Wow, that sounds much easier than I was expecting. I'll try it out and report on how it works.


Please do. I'll be needing to add some years for a campaign I am working on as well.

Regards

#5
jackkel dragon

jackkel dragon
  • Members
  • 2 047 messages
Editing the "ginc_time" script indeed changes the names of months and years. I ended up just using string literals to set the names, but I'd bet a custom TLK could work with some effort. The other scripts that need to be recompiled are the "k_mod_hb" and "k_mod_pc_loaded". (Technically you could get away with just the heartbeat script, but then the default dates might show up for the first few seconds.)

The things that can be edited are month names, season names, when each season occurs (by month), day names, and year names. However, only the year names and month names appear as far as I'm aware, so I think the others can be safely ignored by people who aren't using season-based scripts or custom calender GUI.

#6
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 603 messages
Good to know it works. Thanks for the report.

Regards

#7
Lance Botelle

Lance Botelle
  • Members
  • 1 480 messages
Hi,

I changed the year and time system for the module I am making to support my own world calendar. It works from Edward Becks custom content. Check out my blog entry that goes into more detail here...

http://worldofalthea...eping-date.html

The above link contains a screenshot and a link to Edward's hak.

Lance.

Modifié par Lance Botelle, 18 novembre 2011 - 02:21 .