Author Topic: is there a console command to rest my character?  (Read 1507 times)

Legacy_jmlzemaggo

  • Hero Member
  • *****
  • Posts: 1869
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #15 on: February 06, 2011, 08:20:21 am »


               I'm testing those 3 right now.
(On the social.bioware download page, the "bigbagofholding" text doesn't seem complete?)

Well, I let you know, 'launching the Calgacus NWN show right... now!
I can't say how great that job is without getting banned for french cursed words, but every player will, in his very own terms... and intimacy.
Par le sang de tous les Diables! Oups... ':police:'
Thanks, Mr. ':wizard:'

[EDIT] Test done, I just PM you.
               
               

               


                     Modifié par jmlzemaggo, 06 février 2011 - 09:12 .
                     
                  


            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #16 on: February 06, 2011, 09:24:50 am »


               Hi,

could you include the source code (*.nss) of your scripts in the zip files? I am interested in how you did this, because all my tests so far with an item I called RestEnforcer worked only as long as the module creator allowed tag base scripts in his onLoadModule script.

Greetings
Skildron

Edit: After a short test, I found that the same goes for your manawand. The tag based script mana.ncs never gets executed if the module you are playing does not allow tag based scripts to execute.
               
               

               


                     Modifié par Skildron, 06 février 2011 - 09:30 .
                     
                  


            

Legacy_jmlzemaggo

  • Hero Member
  • *****
  • Posts: 1869
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #17 on: February 06, 2011, 09:53:00 am »


               Well, yeah, it's not working so far.
Maybe you should give a look at those fountains in some modules which can refresh and respell at the same time. But I'm afraid it's gonna be coded either in the module itself or its hak... I believe there is such a fountain in "A Dance with Rogues, Part One" as well as a few other modules.
I'm totally illiterate when it comes to tech in NWN. All I have is faith, and a few testimonies of its power.
That's a start.
               
               

               


                     Modifié par jmlzemaggo, 06 février 2011 - 09:53 .
                     
                  


            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #18 on: February 06, 2011, 10:46:00 am »


               Quick and dirty hack:

Create a script called restscript in the toolset with the content below. Compile this script and put the *.ncs in your override folder:

//restscript.nss

void main()
{
        object oPC = GetFirstPC();
        ForceRest(oPC);
}

This could be refined for more than one pc, etc.

In the module you are playing, enable DebugMode, and run this script with:
dm_runscript restscript

That's the only way I can think of that circumvents any restrictions a module author might try to enforce.

HTH
Greetings
Skildron

Edit: If we carry on this discussion, why should move to the tech help or the scripting forum.
               
               

               


                     Modifié par Skildron, 06 février 2011 - 10:48 .
                     
                  


            

Legacy_Calgacus

  • Full Member
  • ***
  • Posts: 195
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #19 on: February 07, 2011, 03:43:07 am »


               Yes, I should have mentioned that all the scripts require tag based scripting to be allowed in the module.  I uploaded the code the project discussions page  .

I tested these things out in the module Agrenost, and they worked there.  Also in my own small testing module, but thats all so far.
               
               

               


                     Modifié par Calgacus, 07 février 2011 - 03:45 .
                     
                  


            

Legacy_Calgacus

  • Full Member
  • ***
  • Posts: 195
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #20 on: February 07, 2011, 03:52:57 am »


               Hi Skildron, my wand script is basically the same as yours, i just put it on a wand for convenience and to allow a player to target henchies.

Thank you all for the input and let me know if you have any ideas for more little utilities.  What pet peeves do you have when playing that might be addressed with a  utility?
               
               

               
            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #21 on: February 07, 2011, 08:48:11 am »


               

Calgacus wrote...

Yes, I should have mentioned that all the scripts require tag based scripting to be allowed in the module.  I uploaded the code the project discussions page  .

I tested these things out in the module Agrenost, and they worked there.  Also in my own small testing module, but thats all so far.


I tried it in a module series called "Lords of Darkness" I'm playing atm - there it does not work, neither does my own rest enforcer (basically the same as yours, only without the nice visuals and floating texts). After checking the modules in the toolset, I found that the author used his own onItemActivate script, that allows only for certain module specific items to work. So that's another place to stop users from importing items that start tag based scripts. You can, of course, edit the module onItemActivate script to allow any item script to run and then place the changed version in your override folder so that it overrides any hak based script versions and also works in already made saves of the module. Everybody has to decide for himself if that kind of cheating is worth the effort.

Greetings
Skildron
               
               

               


                     Modifié par Skildron, 07 février 2011 - 08:49 .
                     
                  


            

Legacy_jmlzemaggo

  • Hero Member
  • *****
  • Posts: 1869
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #22 on: February 07, 2011, 11:53:19 am »


                It's not cheating. I see it more as making a module playable when it's not. Playing a module with no rest areas, and I mean none, near to 0, as a wizard doesn't make much sense. And that kind of "uneasiness"  '<img'> happens a lot. Again, there is this Alignment Manager, by Gangster No.1 which works in every module I played, modules where this manawand for instance doesn't.
And it seems to work the same way, with .ncs & .uti files.

[EDIT!!!!!!]
I tried those 3 scripts in Agrenost - Beneath the Cobbles, and the 2 I was in a situation to test worked like a charm!!! (No henchies around in that old savegame, so I can't confirm for the "wand of gather")
That's already amazing, and I know of one Bubba Thudd who's might get really happy about it!
Great job, Calgacus, already.
I'll try in HotU later...
               
               

               


                     Modifié par jmlzemaggo, 07 février 2011 - 12:57 .
                     
                  


            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #23 on: February 07, 2011, 05:08:30 pm »


               I suspect that resting restrictions are especially used by those who like to balance the game in epic levels in favour of non spell casting characters - but that is only a wild guess.

Greetings
Skildron
               
               

               
            

Legacy_jmlzemaggo

  • Hero Member
  • *****
  • Posts: 1869
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #24 on: February 07, 2011, 08:48:07 pm »


               The way I see it, Skildron, it's more like many authors don't necessarily play NWN. I made a few modules myself, but even at the time, I've always been a player at first.
And even a player needs to rest...
I want you to play a wizard forced to struggle for his life with nothing but a greatsword and see if it still sounds like a balance to you, after a couple of undeads dungeon levels... ;-)

What you guys have made here could be of a true help in a few modules I know of.
               
               

               


                     Modifié par jmlzemaggo, 07 février 2011 - 08:55 .
                     
                  


            

Legacy_Xovian

  • Full Member
  • ***
  • Posts: 158
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #25 on: February 08, 2011, 01:32:13 am »


               

Skildron wrote...

I suspect that resting restrictions are especially used by those who like to balance the game in epic levels in favour of non spell casting characters - but that is only a wild guess.

Greetings
Skildron


In the early days of NWN scripting and player made modules, many players/builders hated the OC's  way of resting and wanted it to be a lot more restricted. Personally I think many of them went over board with how rest is handled. Entire areas being unusable because of rest restrictions is boring and for lower levels, game breaking for arcane casters. The worst offenders are the modules where resting can only happen in Inns...IMO.

If it was an attempt to balance melee vs casters it was not a well done attempt.
It simply swaps the "advantaged" class (in this case melee centric)  for the module or areas.

There is a happy medium, like the potions the above potion mentioned.
A simple onheartbeat script can ensure a player gets such items in a fair moderation with out being too little or too much. It's good to keep things fun, but not let things be too easy for any one class.
               
               

               
            

Legacy_Calgacus

  • Full Member
  • ***
  • Posts: 195
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #26 on: February 08, 2011, 02:20:53 am »


               Balance is a tricky thing especially in multiplayer.   But in single player when  players can only cheat themselves I think the issue can be addressed  this way - make a level or encounter such that a rested character will find it balanced and (in the case of a level) won't need to rest until it's finished assuming if they play well.  Let them rest as often when they need to (maybe not in combat) - but rest enemies at the same time. Maybe each time a monster spawns in it can get rest effect? - so if a player leaves the area to rest and comes back in to finish off a weakened monster it turns out to be rested too?    Just make each major encounter with a rested character in mind.  Anyhoo just  a thought.    

As far as realism goes ( and how much is needed in a game about dragons and wizards?) just think of resting as a ritual and not as a nights sleep - or dole out rest potions/wands as treasure - each boss dropping one or two and a script can keep count of how many a pc has around if you don't want them piling up.



Skildron, I think I remember Lords of Darkness(which one are you playing?), is that the one with the tale of the Rock and the Bush.  i don't think I finished it because a I got either bored or frustrated with a part in which kept getting killed by illithids.  Maybe  I'm thinking of Lords of Terror.
               
               

               
            

Legacy_HipMaestro

  • Hero Member
  • *****
  • Posts: 2849
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #27 on: February 08, 2011, 03:41:40 pm »


               

jmlzemaggo wrote...
I want you to play a wizard forced to struggle for his life with nothing but a greatsword and see if it still sounds like a balance to you, after a couple of undeads dungeon levels... ;-)

Sounds like I would need to waste a feat on martial weapons but sounds like my kind of challenge... a naked wizard with only his trusty greatsword between him and the arch lich.  Sweet! '<img'>

But seriously, isn't there automatically a bias in the standard rules with regen items but no "spell casting regen" items?  That's where D&D seems to have created its own unbalanced environment.  It should have mana and then resting is essentially removed entirely from the equation.  Leave resting to address negative effects, poisoning or some such time-related ailments and stay away from interfering with the actual mechanics of an entire class.

Stockpiling wands & scrolls are a default method to deal with limited rest opportunities.  Love those feats!

That said, the so-called balancing rest restrictions on PWs I play are all dealt with the same way in this household... go make a cup of coffee and/or fold some laundry. '<img'>  Life is too brief to idle.
               
               

               


                     Modifié par HipMaestro, 08 février 2011 - 03:47 .
                     
                  


            

Legacy_Calgacus

  • Full Member
  • ***
  • Posts: 195
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #28 on: February 09, 2011, 04:42:20 am »


               I just updated the Wand of Gather, it seemed to just not work if the npc had other actions on the top of his queue, if you try it out please let me know if it ever fails.
               
               

               
            

Legacy_Bubba McThudd

  • Sr. Member
  • ****
  • Posts: 254
  • Karma: +0/-0
is there a console command to rest my character?
« Reply #29 on: February 12, 2011, 04:15:10 am »


               Greetings all,



Some cool ideas are percolating in this thread.  I would really like to see someone come up with a "mana potion" that would instantly restore all of a mages spells.  Such an item might persuade me to release a "Director's Cut" of Agrenost with it included as a quest reward.



Apologies to the mage players who are experiencing frustrations in Agrenost; I usually play characters who wield swords, so I didn't really didn't have a frame of reference for spellcasters.  Come to think of it, the first time I played a mod to completion as a mage was when I playtested Agrenost.



Having said that, there are many places for mages to rest in the mod:  In addition to your quarters at the antiquaries guild there are 4 inns, 6 squats (semi-derilict buildings full of beggars) and 2 hidden rest areas in the dungeon.



Good to see the ingenuity of the players at work!