Jump to content


Photo

How to disable resting in an area ?


  • Please log in to reply
7 replies to this topic

#1 aVENGER

aVENGER
  • Modder
  • 1680 posts

Posted 21 October 2003 - 05:59 PM

So far, I've found only two ways to effectively disable resting, but both of them are useless to me. <_< Number one would be to check the 'No Save' flag in the ARE file, but I can not use it since it disables saving the game as well (even a scripted Autosave gets corrupted). Number two would be flagging the area as 'Indoors' since all indoor areas seam to be hardcoded to limit resting (what a stupid thing to do BTW) but I can't do that either since my area is clearly an Outdoors and I want the Weather effects to be visible as well. Checking/unchecking the 'Can Rest' flag in the ARE apparently does nothing! (?)

Now, I've been digging through script commands and found something interesting - SetAreaRestFlag(I:CanRest*) so I've tried using that in my area script. As far as I can see, parameter '0' should disallow resting while parameter '1' should allow it, but sadly, that doesn't seam to work for me (no efect at all). Any suggestions here ?

#2 aVENGER

aVENGER
  • Modder
  • 1680 posts

Posted 23 October 2003 - 11:19 AM

Erm...could someone help me out here?

I'm finalizing my mod at the moment, and it should be ready in a few days. Although it's not really critical, I'd still like to resolve this issue before publishing the next revision.

#3 Alan M.C.

Alan M.C.

    What I can have a title?

  • Member
  • 327 posts

Posted 23 October 2003 - 01:12 PM

I'm not really a specialist in this *area*. But if it's so important for your MOD the PC can't get sleep in the outdoor area you're planning, why don't you use sleep interruption in IETME?
If sleeps gets interrupted all the time, it nearly comes to the same. ;)

NB: romance events which are spawn from the MyNpcD.bcs file are still happening. ;)

Alan M.C.

#4 aVENGER

aVENGER
  • Modder
  • 1680 posts

Posted 23 October 2003 - 02:39 PM

Simple...even if their sleep is interrupted the party still gets 'rested' i.e. the spells are re-memorized, the characters are healed...etc and that was the main reason why I wanted to disable resting in the first place. Also, passing a lot of time in that particular area (even without resting) would not make sense from a RP perspective.

Of course, I could always do something cheesy like creating a bunch of invisible creatures with the ENEMY allegiance and bird avatars and then place them all over the area but that's not really what I was looking for, I wanted a real solution. *Sigh*, I still can't believe that limiting something as basic as resting is so difficult within the IE :rolleyes:

#5 Alan M.C.

Alan M.C.

    What I can have a title?

  • Member
  • 327 posts

Posted 24 October 2003 - 02:15 PM

even if their sleep is interrupted the party still gets 'rested' i.e. the spells are re-memorized, the characters are healed


As far as I know you don't get your spells back nor get healed unless you are fully rested.


Of course, I could always do something cheesy like creating a bunch of invisible creatures with the ENEMY allegiance and bird avatars and then place them all over the area


That wouldn't be necessary. One spawn added in IETME is enough to interrupt sleep at any given time.

Another *area* you could look at is to disable the rest button itself, using IEEP and choosing <Disable Buttons> (it can disable spell, talk...) but I am not sure about the *rest* button though a lot of buttons nos are unknown.

Alan M.C.

#6 aVENGER

aVENGER
  • Modder
  • 1680 posts

Posted 24 October 2003 - 02:52 PM

As far as I know you don't get your spells back nor get healed unless you are fully rested.


You do, if you pause the game before you rest. That may be an exploit but still...

Anyway, for fun try it in a city area a couple of times and watch 10-15 Amnish Centurions spawn arround you while you happily rest and regain your spells. :P

Another *area* you could look at is to disable the rest button itself, using IEEP and choosing <Disable Buttons> (it can disable spell, talk...) but I am not sure about the *rest* button though a lot of buttons nos are unknown


Just tried this, but the 'Rest' button doesn't show up on the list. I tried some 'unknowns' too but that didnt help either :(

BTW, I'm sorry if my earlier reply came of as a bit rude. It wasn't directed against your comment specifically, but rather at the apparent inability of the IE to do something as simple as make an area 'unrestable'.

I mean, that is a very basic feature for D&D cRPGs, and one would think they would have a simple 'rest/no rest' flag in the .ARE but noo...I have to find a workaround even for that. :rolleyes:

#7 Alan M.C.

Alan M.C.

    What I can have a title?

  • Member
  • 327 posts

Posted 25 October 2003 - 01:52 PM

You could try "StartCombatCounter()" in the area script, in principle being in combat disables all rest possibilities. If it works the only problem will be the annoying: "Monsters are about to...." each time someone presses the Rest button.

Alan M.C.

#8 Andyr

Andyr

    HERR RASENKOPF

  • Member
  • 2318 posts

Posted 25 October 2003 - 03:32 PM

This may be silly of me, but how do the random encounters stop you resting? Flagged as indoor (which you said you didn't want to do)?
"We are the Gibberlings Three, as merry a band as you ever did see..." - Home of IE mods

< jcompton > Suggested plugs include "Click here so Compton doesn't ban me. http://www.pocketplane.net/ub"