object oMe = OBJECT_SELF;
object oForum = GetObjectByTag("nw_vault_forum");
int nChristmasSpirit = GetLocalInt(oForum, "MOD_XMAS_SPIRIT");
if (GetCalendarMonth() == 12 && GetCalendarDay() < 26)
{
FloatingTextStringOnCreature("Merry X-mas!", oMe);
if (nChristmasSpirit < 1)
nChristmasSpirit = 1;
else
nChristmasSpirit ++;
SetLocalInt(oForum, "MOD_XMAS_SPIRIT", nChristmasSpirit); // bugfix!
}
you forgot to set the local int on the forum at the end of the script.
It will always stay at 0 this way
But, seriously, happy holidays.
Merry Christmas and full of Community Content New Year 1389.
Merry adventures to all… Happy new heroic travels and rich undiscovered treasures ! and (of course): Enhanced magical wishes to all the NWN dreamers, builders, musicians, players… Special thanks to Neverwintervault staff for maintaining this wonderful place. And now, let’s finish the olde year with style .
Ah, good point.
It would compile, but wouldn’t perform the expected behavior. Sounds like my code alright.
Merry Christmas and Happy Holidays to everyone here. I am very thankful for this community that has kept both NWN, NWN2 and now NWN EE alive and going strong.