The idea was to create builder friendly HCR-like resting script, free of common bugs. This script is designed to be a base for creating custom PW worlds. I tired of watching hundreds of PW worlds using buggy resting scripts, wich make character blind (sometimes forever), and leaves bedrolls here and there untill server crushes, thats why I decided to release my version. Main features include:
Doesn't use blindness for sleep blackout effect.
Configurable to use food and bedroll.
Reduced traffic and server load.
Easy to add to your module.
I hope this package will prove usefull. If you have any suggestions, please mail me or leave a comment.
Posted by friendlyfire at 2007-04-15 12:05:00 Voted 8.75 on 04/15/07
I think there is a small bug in the time function: (my comments and correction)
int ReadGameClockMinutes()
{
// Get total gameworld hours
int nElapsed = (8064 * GetCalendarYear()) + (672 * GetCalendarMonth()) + (24 * GetCalendarDay()) + GetTimeHour();
// Get total REAL world seconds
nElapsed = FloatToInt(HoursToSeconds(1))*nElapsed;
// Possible fix, add this line
nElapsed = nElapsed/60;
// bug
// Total REAL world seconds + current REAL world minute (as fraction of hour, default allows 0 or 1)
nElapsed += GetTimeMinute();
return nElapsed;
}
There is another minor bug in the "you need to wait X hours" bit - it says hours, but means minutes, you just need to add a conversion to that line to take it back from real world minutes to game hours, depending on the module setting. Anyway, nice work, I pinched a few bits :D
I'm having the same problem as Rush, IE an insanely high amount of hours required to rest. I'm using the script unedited, with the exeption of two added lines;
int iLevelAffected = 3;
if (GetHitDice (oPC) >= iLevelAffected)
Just trying to have it only apply to characters level 3 and up.
Looks pretty good. I'll be testing it for Myth Drannor pretty soon. I hope you made use of FadeScreenToBlack function (or similar wording).
I appreciate the ability to customize the script. I'd add a level-based length option if you have not done so already, and I think you will have covered pretty much anything I could come up with. _________________________ Lan's Placeable Groups v1.5
Posted by Sayatrist at 2005-10-08 13:29:57 Voted 10.00 on 10/08/05
Very Good
Posted by Sayatrist at 2005-10-08 13:28:50 Voted 10.00 on 10/08/05
Very good script.
Posted by andenix at 2005-03-07 19:22:00 Voted 10.00 on 01/24/05
Could you please mail me the details when whis happened? I will review the script (and the whole package) ASAP.
Kind Regards
Posted by Rush ( 81.10.xxx.xxx ) at 2005-03-01 05:49:00
I downloaded the script a while ago and when I first used it, it worked well.
But now it seems I can never rest because it always tells me "xyz is not tired, try again in 32546436 (insert insanely high number) hours". Any hint on what may have caused it? I didn't change anything in the script.
Posted by andenix at 2005-02-17 21:06:00 Voted 10.00 on 01/24/05
Let’s say blindness effect doesn't make much sense, since people do not actually go blind while sleeping.
Posted by andenix at 2005-02-17 21:03:00 Voted 10.00 on 01/24/05
If you dislike the blackout due to *sleepiness*, it is possible to turn it off by setting DARK_REST to FALSE. Be sure to preserver case since eScript is case sensitive.
Posted by andenix at 2005-02-17 20:59:00 Voted 10.00 on 01/24/05
I encourage everyone, who posts technical questions to be as specific as possible.
Thank you.
Posted by Anonymous ( 24.166.xxx.xxx ) at 2005-02-17 11:18:00
Dude this script is butt! Whats wrong with the blindness effect did someone on a server with it rape you when you was sleeping?
Posted by andenix at 2005-01-24 11:17:00 Voted 10.00 on 01/24/05
By some reason the first version did not work properly, so I posted updated script.
Posted by andenix at 2005-01-24 11:05:08 Voted 10.00 on 01/24/05
You must be Logged In to post comments in this section.