Program or Quest?... Opening a Door

For builders to discuss and ask building questions.
Post Reply
Kirkus
Sword Grand Master
Sword Grand Master
Posts: 449
Joined: Mon Aug 04, 2003 8:08 pm
Location: Zhentil Keep
Contact:

Program or Quest?... Opening a Door

Post by Kirkus » Sat Jun 21, 2008 4:03 pm

This is for the Waterdeep Dungeon... but to be more exact the entrance to the castle to get to the dungeon... I want a large door as would be fitting a stronghold. So what I am picturing is the big door with one of those large beams used to lock it. And I thought it would be cool if there had to be a number of pc's grouped together to lock the door or unlock it.

Here is an attempt to describe how I want this to work...

PC A decides for some reason, quest related or otherwise, to lock the gate or unlock the gate. PC A types 'lock door' or something like that. At this point I want a check for a group. And possabily a strength check. If the PC is grouped I want the game to echo 'PC A lifts one end of the locking beam.'

At this point I want there to be some sort of time limit where the rest of the group only has so much time to join PC A in the task. Or else there is an echo like 'PC A drops the beam, as it is too unwieldy for one mere mortal.'

But if PC B, who must be grouped with PC A were to type 'lock door' within the time limit the game would echo 'PC B grabs the end of the beam opposite PC A, and as a team they successfully lock the gate securing the castle.'

As for the strength thing... I want it to be like, and this is going to be very simplified I am sure, if PC A has strength (a) and PC B has strength (b) a+b= the door weight I guess... See my idea is that if PC A and PC B combined arn't strong enough then they have to find a third person... or perhaps get the assistance of a mob guard. But I don't really know where to begin...

So as for my original question. Should I approach this as a quest or a door program of some sort?
I am ready to meet my Maker. Whether my Maker is prepared for the great ordeal of meeting me is another matter.
User avatar
Japcil
Sword Grand Master
Sword Grand Master
Posts: 1143
Joined: Fri Jun 17, 2005 5:32 pm
Location: Golden Oaks
Contact:

Re: Program or Quest?... Opening a Door

Post by Japcil » Fri Jul 18, 2008 8:42 am

PC A decides for some reason, quest related or otherwise, to lock the gate or unlock the gate. PC A types 'lock door' or something like that. At this point I want a check for a group. And possabily a strength check. If the PC is grouped I want the game to echo 'PC A lifts one end of the locking beam.'

Accomplished by:

Code: Select all

intercept_prog lock~
if group($n) >2
  if str($n) > 15
    echoat $n You lift one end of the locking beam.
    echoaround $n $N lifts one end of the beam.
  else
    echoat $n It looks too heavy.
else
  echoat $n You cannot lift that on your own!
  endif
endif
For time limits you would have to use qbits and a time prog on the room

It would look something like:

Code: Select all

Time_prog -1~
if quest(0,1,$n) == 1
  echoat $n You drop the beam, waiting for help.
  echoaround $n $N drops the beam waiting for help.
  mpmset $n quest 0 1 0
endif
You would add mpmset $n quest 0 1 1 to the lock program as well.

I dont think you can check for combined stats amongst groups without an addition of such by Marty.

Its been awhile since I've dealt out some FK code so I observe the right to be totally wrong.
Image
Post Reply